Skip to main content

Add your description here

Project description

NWB Model Context Protocol (MCP) Server

An MCP server for accessing NWB (Neurodata Without Borders) files, providing AI agents access to neuroscience data.

Features

  • 🚀 Rapid exploration of new datasets.
  • 🧠 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

uv is used to run the server with required dependencies.

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

Configure Copilot Chat

To make the server available in VS Code, create a configuration file at .vscode/mcp.json in your project's root directory.

Example .vscode/mcp.json

{
    "servers": {
        "nwb": { // the name Copilot will use to refer to this server: can be customized
            "command": "uvx",
            "args": [
                "nwb-mcp-server @ git+https://github.com/bjhardcastle/nwb-mcp-server", // will be distributed on PyPI soon
                "--root_dir", "data",       // local or cloud directory containing your NWB files
                "--glob_pattern", "*.nwb"   // pattern to match files (can be applied recursively with `**/*.nwb`)
            ]
        }
    }
}

! Check MCP is enabled in settings ! Update the --root_dir and --glob_pattern arguments to point to your NWB files. ! Screenshot of mcp.json with start buttons

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.0.tar.gz (775.9 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.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nwb_mcp_server-0.1.0.tar.gz
  • Upload date:
  • Size: 775.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.2

File hashes

Hashes for nwb_mcp_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 18d9da5ae1b5d7a5e9349db562dd663b9969c33beab4888e3aaa7ee95bc1f6a8
MD5 d2b9b9c7b13f3743cb55c8b049706be5
BLAKE2b-256 a637a79dfe399ad3876044ae4112c5d291d9acbcb39c1658f56bc82d81129a10

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nwb_mcp_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48802f029264b2927dee2e5106c1060abaaecf55880c580782b78ba49d606d21
MD5 cad306430aff3d41aefdfb899ea4d087
BLAKE2b-256 5e1333a1095c1e3609d451c8f5140fbecc598b20041650611403ff9bae8780ad

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