Skip to main content

Generated from aind-library-template

Project description

AIND Data 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. This server targets the V2 aind-data-schema format.

Installation

{
    "servers": {
        "aind-data-mcp": {
            "url": "https://metadata-portal.allenneuraldynamics.org/mcp/",
            "type": "http"
        }
    },
    "inputs": []
}

Features

This MCP server provides the following tools:

Data Retrieval & Querying

  • get_records — Query MongoDB collections using filters and projections
  • aggregation_retrieval — Execute complex MongoDB aggregation pipelines
  • count_records — Count documents matching a filter
  • flatten_records — Retrieve and flatten records into dot-notation for easier inspection
  • get_project_names — List all project names in the database
  • get_summary — Generate an AI-powered summary for a specific data asset

Schema Navigation

  • get_top_level_nodes — Explore the top-level fields of the V2 metadata schema
  • get_additional_schema_help — Query-writing guidance for V2 aggregations
  • get_modality_types — List all available data modality names and abbreviations

Schema Examples (one tool per document type)

  • get_acquisition_example, get_data_description_example, get_instrument_example, get_procedures_example, get_subject_example, get_processing_example, get_model_example, get_quality_control_example

NWB File Access

  • identify_nwb_contents_in_code_ocean — Load an NWB file from the /data directory in a Code Ocean capsule
  • identify_nwb_contents_with_s3_link — Load an NWB file from an S3 path

Resources (accessible via the MCP protocol)

  • resource://aind_api — Context and usage patterns for the AIND data access API
  • resource://load_nwbfile — Reference script for loading NWB files

Development

To develop the code, run

uv sync --extra dev

To run tests:

uv run coverage run -m unittest discover && uv run coverage report

To run linting:

uv run flake8 . && uv run interrogate --verbose .

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

aind_data_mcp-0.4.2.tar.gz (22.6 kB view details)

Uploaded Source

Built Distribution

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

aind_data_mcp-0.4.2-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

Details for the file aind_data_mcp-0.4.2.tar.gz.

File metadata

  • Download URL: aind_data_mcp-0.4.2.tar.gz
  • Upload date:
  • Size: 22.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aind_data_mcp-0.4.2.tar.gz
Algorithm Hash digest
SHA256 a6ba372a16c1aace376481f7c1bf913e636b6ae59cc06f21cf31dfca7c7a852d
MD5 6fcc8846a86e92d91235ba4b9c688370
BLAKE2b-256 d65320301185a972189267aae3d9a63e0be418e83c8c8863c4859fc3d31d4a13

See more details on using hashes here.

File details

Details for the file aind_data_mcp-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: aind_data_mcp-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 21.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aind_data_mcp-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4c97fbeb175f82d4c4e31132ef3f4ecdb3a7f4ffc9b08a41d5cac00e881079c8
MD5 c9039e0713d3aa0315a7b4adaff45f1f
BLAKE2b-256 9e87213635e41badb0b2636fdd1e89805c0fbebb3a9a1c66580e70125d91c645

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