Skip to main content

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] (https://marketplace.visualstudio.com/items?itemName=GitHub.copilot-chat)

Similar extensions, such as Cline, may also work.

Add server to Copilot Chat in VS Code

Adding MCP to Copilot Chat

  • 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nwb_mcp_server-0.1.1.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nwb_mcp_server-0.1.1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file nwb_mcp_server-0.1.1.tar.gz.

File metadata

  • Download URL: nwb_mcp_server-0.1.1.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.8.6

File hashes

Hashes for nwb_mcp_server-0.1.1.tar.gz
Algorithm Hash digest
SHA256 afd49fe32e0f42a63b4d2698d9658dc6ef52b685e9f1ea7d9714db9b4618c142
MD5 9ea834b3daf2787d6e5bc4ecb87005f3
BLAKE2b-256 73f4e1f8ab121fcf70bca66fca9d0e141cbb9a1bb1fbe1b2f48865d662b7f212

See more details on using hashes here.

File details

Details for the file nwb_mcp_server-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for nwb_mcp_server-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 41f988987c804487d2d32777fa996fe1a44f1113066b7e46c9f95ebc0e02215b
MD5 4f12de6a137d9d5db2b1ee3fbb54fc68
BLAKE2b-256 8cec6fb32b558ad95fa044bb40ea5b9c6941c6d4313145a1a5b5edd1300f0ae6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page