nwb-mcp-server: Skill for Claude Code

.claude/skills/nwb-mcp-analysis/SKILL.md

nwb-mcp-analysis is a skill for Claude Code from bjhardcastle/nwb-mcp-server. It costs 83 tokens per session (868 once invoked), scanned A, original, MIT.

A skill for exploring and analyzing neuroscience data stored in NWB files through an MCP server. NWB is a file format for sharing neural recordings and related experimental data.

In plain words
What is it for?
Use it to select a local dataset or Dandiset, inspect its structure, run SQL queries, and build analysis code when needed.
Why use it?
It helps inspect the dataset and its tables before writing more complex, repeatable analysis code.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is bjhardcastle/nwb-mcp-server's own configuration. It tells Claude Code how to work on nwb-mcp-server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything nwb-mcp-server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to bjhardcastle/nwb-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/bjhardcastle/nwb-mcp-server/main/.claude/skills/nwb-mcp-analysis/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/bjhardcastle/nwb-mcp-server

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for nwb-mcp-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/bjhardcastle/nwb-mcp-server/nwb-mcp-analysis/github.svg)](https://agentmods.dev/skills/bjhardcastle/nwb-mcp-server/nwb-mcp-analysis)
Your own site
<a href="https://agentmods.dev/skills/bjhardcastle/nwb-mcp-server/nwb-mcp-analysis"><img src="https://agentmods.dev/badge/skills/bjhardcastle/nwb-mcp-server/nwb-mcp-analysis/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for nwb-mcp-analysis

Your own site · 80×15
<a href="https://agentmods.dev/skills/bjhardcastle/nwb-mcp-server/nwb-mcp-analysis"><img src="https://agentmods.dev/badge/skills/bjhardcastle/nwb-mcp-server/nwb-mcp-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 868 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00083 $0.00868
Opus 5 $0.00042 $0.00434
Sonnet 5 $0.00017 $0.00174
Haiku 4.5 $0.00008 $0.00087

Measured 11d ago against content hash 6859d9af0858, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

nwb-mcp-analysis scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/nwb-mcp-analysis/SKILL.md · 74 lines

How it starts

The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.

NWB MCP Analysis

Two-phase workflow: explore with SQL first, then incorporate findings into code if the user needs more complex analysis or re-runnable code.


Phase 0: Confirm The Active Source

The server may start with no dataset configured at all. Do not assume a preset root_dir or dandiset_id exists.

Recommended order before any schema or SQL work:

  1. Call get_active_source
  2. If the source is unset, choose one in chat:
    • use_local_source(root_dir="...")
    • use_dandiset_source(dandiset_id="000363")
  3. If the user wants to go back to any startup preset, call reset_active_source

Important behavior:

  • Source selection is scoped to the current chat session, not global across all clients. You can still change the active source multiple times within the same chat session if needed, accepting the cost of rescanning or reinitializing the new dataset.
  • nwb_file_search_code_snippet depends on the active source and will fail until one is selected.
  • If a dataset-dependent tool says no dataset is active, switch sources first instead of retrying the same query.

Phase 1: Explore

Recommended order:

  1. get_active_source if you have not checked the source yet
  2. get_tables to see what is available
  3. get_nwb_paths to check how many files are in the dataset before diving in; the count shapes how you interpret aggregate results
  4. get_table_schema on tables of interest
  5. execute_query for targeted analysis

Avoid preview_table_values unless you need actual cell values. get_table_schema is faster and cheaper for schema discovery.

TimeSeries tables (those with timestamps and data columns) can be huge when concatenated across many files or sampled at high rates. Before querying them, warn the user and propose a strategy:

  • slice to specific time windows
  • subsample every Nth row for a representative overview

Ask which approach they prefer unless the context already makes the choice obvious (e.g. slicing is a natural fit for trial-aligned analysis).

Read the full file on GitHub · 74 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 74 lines · 83 tokens per session scan A 6859d9af0858

Subscribe to this mod's changes

nwb-mcp-analysis is a skill published in the GitHub repository bjhardcastle/nwb-mcp-server (2 stars, last pushed 3mo ago), licensed MIT. It adds 83 tokens to every session and 868 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…

anthropics/knowledge-work-plugins · 123 tokens

exploratory-data-analysis

Perform bounded, local exploratory analysis of explicitly supported scientific files. Use for redacted CSV/TSV/JSON profiles; optional NumPy, HDF5, FASTA/FASTQ, and basic image metadata inspection; missingness/leakage audits; outlier and transformation sensitivity; and rigorous EDA report scaffolds. Other domain…

K-Dense-AI/scientific-agent-skills · 83 tokens

matlab

Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.

K-Dense-AI/scientific-agent-skills · 42 tokens

phylogenetics

Build and analyze phylogenetic trees using MAFFT (multiple alignment), IQ-TREE 2 (maximum likelihood), and FastTree (fast NJ/ML). Visualize with ETE3 or FigTree. For evolutionary analysis, microbial genomics, viral phylodynamics, protein family analysis, and molecular clock studies.

K-Dense-AI/scientific-agent-skills · 68 tokens

research-engineer

An uncompromising Academic Research Engineer. Operates with absolute scientific rigor, objective criticism, and zero flair. Focuses on theoretical correctness, formal verification, and optimal implementation across any required technology.

davila7/claude-code-templates · 43 tokens

mapping-to-snomed

Maps clinical concept spans extracted by OpenMed to SNOMED CT concepts through a USER-SUPPLIED terminology server (the user's own Ontoserver, Snowstorm, or UMLS/UTS), never a bundled vocabulary. Use when the user wants to code findings, disorders, procedures, body structures, or substances to SNOMED CT, run an ECL…

maziyarpanahi/openmed · 205 tokens