An MCP server for accessing NWB (Neurodata Without Borders) files, providing AI agents with easy access to neuroscience data.
Project description
NWB Model Context Protocol (MCP) Server
An MCP server for accessing NWB (Neurodata Without Borders) files, providing AI agents easy access to neuroscience data.
Features
- 🚀 Rapid exploration of new datasets
- 🗂️ Automatically-generated analysis reports
- 🧠 Prompt templates instruct agents to get the most from the tools
- 💡 "No Code" mode allows analysis without modifying the local filesystem
- ⚡️ Uses lazynwb for efficient data access across multiple NWB files
- ☁️ Supports local and cloud data (e.g. on AWS S3)
- 🔒 Read-only access to NWB data
- 🛠️ Easy setup
Requirements
1. uv
uv is used to run the server with the required dependencies, in an isolated virtual environment.
See the uv installation guide for platform-specific instructions for a system-wide installation.
Alternatively, install with pip in your system Python environment:
pip install uv
2. Copilot Chat extension
Available on the VS Code extensions marketplace
Similar extensions, such as Cline, may also work.
Add server to Copilot Chat in VS Code
- ensure MCP is enabled in settings
- the first startup may take a few seconds as it downloads packages
Configuration Parameters
| Parameter | Description | Default |
|---|---|---|
| root_dir | Root directory to search for NWB files (forward slash ok on Windows) | "data" |
| glob_pattern | A glob pattern to apply to root_dir to locate NWB files. Use "**/*.nwb" for sub-directories. |
"**/*.nwb" |
| tables | Restrict the list of NWB tables to use, e.g. ["trials", "units"] |
null |
| infer_schema_length | Number of NWB files to scan to infer schema for all files | 1 |
| unattended | Run the server in unattended mode (no user prompts, for automation) | false |
| table_element_limit | Max elements (columns x rows) allowed in a table returned by a SQL query | 500 |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nwb_mcp_server-0.1.2.tar.gz.
File metadata
- Download URL: nwb_mcp_server-0.1.2.tar.gz
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
193539722f29d2e5f4fba4ee2df8e633cc99b8bf2b748a9059d08e8766a0eb02
|
|
| MD5 |
40fe5777c75f57e54da7d4719ac1dc6d
|
|
| BLAKE2b-256 |
dceabf6299dd2a6ba5ad308988ad7c257d21983db9444324588a829d833135c7
|
File details
Details for the file nwb_mcp_server-0.1.2-py3-none-any.whl.
File metadata
- Download URL: nwb_mcp_server-0.1.2-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
354d300cfe562652a892131004c082d84a4ad9af5177639570f561760a2c7756
|
|
| MD5 |
7f5177497e94e8c9ea749f35ae89e7e0
|
|
| BLAKE2b-256 |
ed87824366624a82eb52c677b21633f5bd5733933a0ea57a6069b5f7b9c10d41
|