Skip to main content

Archive Notice

This repo is being archived.

AIND Metadata MCP Server

License Code Style semantic-release: angular Interrogate Coverage Python

An MCP (Model Context Protocol) server that provides access to AIND (Allen Institute for Neural Dynamics) metadata and data assets through a comprehensive set of tools and resources.

[!WARNING] This MCP server is deprecated. You can continue using it to access V1 metadata.
For V2 metadata, please see aind-data-mcp.

Features

This MCP server provides tools for:

  • Data Retrieval: Query MongoDB collections with filters and projections
  • Aggregation: Execute complex MongoDB aggregation pipelines
  • Schema Exploration: Access detailed schema examples and documentation
  • NWB File Access: Load and explore NWB (Neurodata Without Borders) files
  • Data Summaries: Generate AI-powered summaries of data assets

Installation

Install uv if you haven't already - following this documentation

Install the MCP server using uv:

uv tool install aind-metadata-mcp

Or using pip:

pip install aind-metadata-mcp

Configuration

For Cline (VSCode Extension)

In order to ensure that the MCP server runs in your preferred client, you will have to download the aind-metadata-mcp package to your console. If space is an issue, please set UV_CACHE_DIR and UV_TOOL_DIR to locations that have capacity before proceeding with the next step.

  1. Simpler version of install Run uv tool install aind-metadata-mcp on your terminal and proceed below to configuring your MCP clients.

  2. If the above step didn't work:

Create virtual environment with python 3.11 in IDE

# Instructions for Conda
conda create -n <my_env> python=3.11
conda activate <my_env>

# Instructions for virtual environment
py -3.11 -m venv .venv
# Windows startup
.venv\Scripts\Activate.ps1 
# Mac/ Linux startup
source .venv/bin/activate 

Run the following commands in your IDE terminal.

pip install uv
uvx aind-metadata-mcp

If all goes well, and you see the following notice - Starting MCP server 'aind_data_access' with transport 'stdio'-, you should be good for the set up in your client of choice!

Cursor IDE

  1. Install the MCP server:

    uv tool install aind-metadata-mcp
    
  2. Create the MCP configuration file:

    mkdir -p ~/.cursor
    
  3. Create ~/.cursor/mcp.json with the following content:

    {
      "mcpServers": {
        "aind-data-access": {
          "command": "aind-metadata-mcp",
          "args": [],
          "env": {}
        }
      }
    }
    
  4. Important: Replace aind-metadata-mcp with the full path if needed:

    which aind-metadata-mcp
    

    Use the full path (e.g., /Users/username/.local/bin/aind-metadata-mcp) in the command field.

  5. Restart Cursor completely (Cmd+Q then reopen)

Note: Cursor uses a different MCP configuration system than VSCode. The configuration must be in ~/.cursor/mcp.json, not in the main settings.json file.

Instructions for use in MCP clients

JSON Config files to add MCP servers in clients should be structured like this

{
    "mcpServers": {

    }
}

Insert the following lines into the mcpServers dictionary

"aind_data_access": {
      "disabled": false,
      "timeout": 300,
      "type": "stdio",
      "command": "aind-metadata-mcp"
}

Note that after configuring the JSON files, it will take a few minutes for the serve to populate in the client.

Claude Desktop App

  • Click the three lines at the top left of the screen.
  • File > Settings > Developer > Edit config

Cline in VSCode

  • Ensure that Cline is downloaded to VScode
  • Click the three stacked rectangles at the top right of the Cline window
  • Installed > Configure MCP Servers
  • Close and reopen VSCode

Github Copilot in VSCode

  • Command palette (ctr shift p)
  • Search for MCP: Add server
  • Select Manual Install / stdio
  • When prompted for a command, input uvx aind-data-access
  • Name your server
  • Close and reopen VSCode
  • In Copilot chat -> Select agent mode -> Click the three stacked rectangles to configure tools
  • In order to enable the agent to reply with context of the AIND API, you'll have to manually add the .txt files (under resources) in this repository

For use in Code Ocean

  • Locate the following capsule, to spin up Cline and Co-pilot with the aind-metadata-mcp pre-installed.
  • Refer the the code ocean MCP server for additional support
  • Either pin version 4.2, or 4.5

Metadata

Release files for aind-metadata-mcp 0.5.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aind-metadata-mcp 0.5.4
File Size Uploaded
aind_metadata_mcp-0.5.4.tar.gz 154.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aind-metadata-mcp 0.5.4
File Interpreter ABI Platform
aind_metadata_mcp-0.5.4-py3-none-any.whl Python 3 none any Details

Total release size: 192.4 kB

Release files / aind_metadata_mcp-0.5.4.tar.gz

Download URL aind_metadata_mcp-0.5.4.tar.gz
Size 154.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8b354b472ff00eba70827d6c3a6d270af6482d365fbb08c1d131f9c501b35de5
BLAKE2b-256 checksum
How to use checksums
e67a7e1b06019f5de17aefd361229de83ce407700941f5fb64c425d74efde4ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / aind_metadata_mcp-0.5.4-py3-none-any.whl

Download URL aind_metadata_mcp-0.5.4-py3-none-any.whl
Size 37.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dbb30567ebc42f957791bd35a4242356a1eb518ef00b801619707d1ba131e4f3
BLAKE2b-256 checksum
How to use checksums
23826bc00f74e2dbb6d070dbfc4c5b0137e354254778c939e56ef9042904c372
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.5.4 This release

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page