Skip to main content
Glama

AnnData MCP

BioContextAI - Registry Tests Documentation

Allows to retrieve information about an AnnData object via MCP using the read_lazy function from anndata.

Getting started

Please refer to the documentation, in particular, the API documentation.

You can also find the project on BioContextAI, the community-hub for biomedical MCP servers: anndata-mcp on BioContextAI.

Related MCP server: Scanpy-MCP

Installation

You need to have Python 3.11 or newer installed on your system. If you don't have Python installed, we recommend installing uv.

There are several alternative options to install anndata-mcp:

  1. Use uvx to run it immediately:

uvx anndata-mcp
  1. Include it in one of various clients that supports the mcp.json standard, please use:

{
  "mcpServers": {
    "anndata-mcp": {
      "command": "uvx",
      "args": ["anndata-mcp"]
    }
  }
}
  1. Install it through pip:

pip install --user anndata-mcp
  1. Install the latest development version:

pip install git+https://github.com/biocontext-ai/anndata-mcp.git@main

Contact

If you found a bug, please use the issue tracker.

Citation

If this MCP server is useful to your research, please cite the BioContextAI and the anndata publications:

@article{BioContext_AI_Kuehl_Schaub_2025,
  title={BioContextAI is a community hub for agentic biomedical systems},
  url={http://dx.doi.org/10.1038/s41587-025-02900-9},
  urldate = {2025-11-06},
  doi={10.1038/s41587-025-02900-9},
  year = {2025},
  month = nov,
  journal={Nature Biotechnology},
  publisher={Springer Science and Business Media LLC},
  author={Kuehl, Malte and Schaub, Darius P. and Carli, Francesco and Heumos, Lukas and Hellmig, Malte and Fernández-Zapata, Camila and Kaiser, Nico and Schaul, Jonathan and Kulaga, Anton and Usanov, Nikolay and Koutrouli, Mikaela and Ergen, Can and Palla, Giovanni and Krebs, Christian F. and Panzer, Ulf and Bonn, Stefan and Lobentanzer, Sebastian and Saez-Rodriguez, Julio and Puelles, Victor G.},
  year={2025},
  month=nov,
  language={en},
}
@article{Virshup2024,
  title = {anndata: Access and store annotated data
matrices},
  volume = {9},
  ISSN = {2475-9066},
  url = {http://dx.doi.org/10.21105/joss.04371},
  DOI = {10.21105/joss.04371},
  number = {101},
  journal = {Journal of Open Source Software},
  publisher = {The Open Journal},
  author = {Virshup,  Isaac and Rybakov,  Sergei and Theis,  Fabian J. and Angerer,  Philipp and Wolf,  F. Alexander},
  year = {2024},
  month = sep,
  pages = {4371}
}

Available Tools

3 tools
get_descriptive_statsA

Provide basic descriptive statistics (e.g., count, mean, std, min, max, etc. or value counts) for an attribute or attribute value of an optionally filtered AnnData object.

Inputs: path (required), attribute (required), key, filter_value, +5 more. Returns: error, description, value_counts

get_summaryB

Get a summary of an AnnData object from a file or URL.

Inputs: path (required). Returns: error, n_obs, X_type, layers, +10 more

view_raw_dataC

View the raw data of an AnnData object.

Inputs: path (required), attribute (required), key, filter_value, +7 more. Returns: data, error, data_type, full_shape, +1 more

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 3 tools

    Disambiguation4/5

    The three tools have distinct purposes: view_raw_data displays raw data, get_summary provides a structural overview, and get_descriptive_stats computes statistical summaries. While summary and stats could overlap slightly, their focus on structure vs. attribute-level statistics keeps them distinguishable.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern using 'view_' or 'get_' prefixes, making the naming predictable and easy to understand.

    Tool Count3/5

    With only 3 tools, the server is on the thin side but appropriate for a focused read-only inspection toolset. It is not too sparse to be useless, but it offers limited functionality.

    Completeness2/5

    The server is missing common AnnData operations such as listing attributes, accessing subsets, or modifying/saving data. This creates significant gaps for users expecting a more complete workflow, though basic inspection is covered.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Enables AI agents to read and understand local Mendix project structure and logic by connecting directly to the .mpr file via MCP. Allows querying microflows, entities, attributes, and modules in read-only mode without requiring cloud access.
      4
      1
      ISC
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides a natural language interface for scRNA-Seq analysis using the Scanpy library, supporting operations such as data preprocessing, clustering, and visualization. It enables AI agents and clients to perform complex single-cell transcriptomics workflows through the Model Context Protocol.
      2
      BSD 3-Clause
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables interaction with AnnData objects via the Model Context Protocol, allowing querying and manipulation of annotated data matrices for single-cell genomics.
      2
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to discover and inspect research datasets via a read-only MCP server, offering search, variable listing, and metadata retrieval without reading data files.
      -