Allen Brain API MCP Server

Allen Brain API MCP Server

Provides access to the Allen Institute for Brain Science API, enabling queries of datasets such as Cell Types, Mouse Connectivity, Atlases, and more via RMA queries and high-level tools.

Category
Visit Server

README

Allen Brain API MCP Server

A comprehensive Model Context Protocol (MCP) server for querying the Allen Institute for Brain Science API. This server provides access to the Allen Brain API using the RESTful Model Access (RMA) format and high-level endpoints for various Allen Brain Institute datasets, including Cell Types, Mouse Connectivity, Ontologies, Image Downloads, Grid Data, and Neuronal Models.

Features

  • execute_rma_query: Allows sending raw, generic RMA queries for maximum flexibility. You can query models like Specimen, SectionDataSet, Structure, and filter them dynamically.
  • get_cell_specimens: A convenient tool to query cell specimens from the Cell Types Database by species (e.g., Mus musculus or Homo Sapiens).
  • get_mouse_connectivity_experiments: A high-level tool to quickly fetch projection/injection experiments from the Mouse Brain Connectivity Atlas.
  • get_atlases: Retrieve atlases available through the API.
  • get_structure_graphs: Retrieve structure graphs.
  • get_structures: Retrieve data about anatomical structures, with optional filtering by graph ID.
  • get_atlas_images: List atlas images belonging to a specified atlas.
  • get_section_images: List section images belonging to a specified section data set.
  • get_grid_data_download_url: Returns the URL to download 3-D expression grid data for a section data set.
  • get_neuronal_models: Fetch biophysically detailed neuronal model records.

Installation

This project is built using TypeScript. To install dependencies:

cd allenbrain-mcp
npm install

Build

Compile the TypeScript code:

npm run build

Running the Server

Start the server using node:

npm start

Or run in development mode with tsx watch:

npm run dev

Testing

Tests are written using Vitest. Mocked axios is used to prevent actual network calls during the test suite.

npm run test

Adding to an Agent (e.g., Gemini CLI)

To integrate this MCP server with an agent like the Gemini CLI, you need to configure your agent to recognize and execute the server.

  1. Ensure the server is built:

    cd /path/to/allenbrain-mcp
    npm run build
    
  2. Configure your agent: You will typically need to provide a path to the server's executable. For the Gemini CLI, this is usually done via a configuration file (e.g., tool-code-interpreter.json or similar, depending on your setup). Add an entry that points to the compiled server.

    Example configuration entry (adjust /path/to/allenbrain-mcp to your actual directory):

    {
      "mcpServers": {
        "allenbrain-api": {
          "command": "node",
          "args": ["/path/to/allenbrain-mcp/build/index.js"]
        }
      }
    }
    

    Once configured, your agent should be able to list and call the tools provided by this MCP server.

Disclaimer and Support

This project is a work in progress, and not all functionality has been exhaustively tested with live data. While efforts have been made to accurately reflect the Allen Brain API based on available documentation, this project is not officially linked to or endorsed by the Allen Institute for Brain Science.

Feedback, bug reports, and contributions are welcome and encouraged to improve its completeness and reliability.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured