Allows to retrieve information about an AnnData object via MCP using the read_lazy function from anndata.
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.
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:
- Use
uvxto run it immediately:
uvx anndata-mcp- Include it in one of various clients that supports the
mcp.jsonstandard, please use:
{
"mcpServers": {
"anndata-mcp": {
"command": "uvx",
"args": ["anndata-mcp"]
}
}
}- Install it through
pip:
pip install --user anndata-mcp- Install the latest development version:
pip install git+https://github.com/biocontext-ai/anndata-mcp.git@mainIf you found a bug, please use the issue tracker.
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}
}