Skip to main content

hca-anndata-mcp

MCP server for interactive exploration of AnnData h5ad files.

Usage

# Run the MCP server
hca-anndata-mcp

Point an MCP client at the venv binary directly, not at a wrapper command:

{
  "mcpServers": {
    "hca-anndata-mcp": {
      "command": "/abs/path/to/packages/hca-anndata-mcp/.venv/bin/hca-anndata-mcp"
    }
  }
}

uv run hca-anndata-mcp (like poetry run before it) does not work here. An MCP client needs a stable executable to spawn, and a wrapper command that resolves and syncs an environment first is not one.

Parallel reads

Read tools run in worker processes, in two lanes, so a quick read never waits behind a read that takes minutes. Three settings, checked at startup:

Variable Default Meaning
HCA_ANNDATA_MCP_READ_WORKERS 16 N, the reads that run at once; at least 2
HCA_ANNDATA_MCP_SLOW_WORKERS N ÷ 2, rounded down S, how many of them may be slow reads (whole-file loads, full matrix passes and folder scans); 1 to N - 1
HCA_ANNDATA_MCP_RETIRE_GIB 3 a worker left holding more than this many GiB after a read exits

Each slow read can hold a whole file in memory, so size S to the machine. Write tools run one at a time, and never while a read in the same server is running. The rules, and which tools are slow, are in docs/anndata-mcp-concurrency-contract.md.

Tools

  • locate_files — Find all .h5ad files in a directory
  • get_summary — Structural overview: cell/gene counts, columns, embeddings, layers
  • get_storage_info — HDF5 compression, chunking, sparse format details
  • get_descriptive_stats — Descriptive statistics and value counts for obs/var columns
  • view_data — View slices of any attribute (obs, var, X, obsm, uns, etc.)
  • plot_embedding — UMAP/PCA scatter plots colored by obs column or gene
  • get_cap_annotations — Inspect CAP cell annotation metadata, marker genes, rationale

Metadata

Release files for hca-anndata-mcp 0.10.0

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

Source distribution (sdist)

Source distribution for hca-anndata-mcp 0.10.0
File Size Uploaded Provenance Actions
hca_anndata_mcp-0.10.0.tar.gz 49.7 kB With provenance Details for hca_anndata_mcp-0.10.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hca-anndata-mcp 0.10.0
File Interpreter ABI Platform Actions
hca_anndata_mcp-0.10.0-py3-none-any.whl Python 3 none any Details for hca_anndata_mcp-0.10.0-py3-none-any.whl

Total release size: 73.5 kB

Release files / hca_anndata_mcp-0.10.0.tar.gz

Download URL hca_anndata_mcp-0.10.0.tar.gz
Size 49.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d198f481cb2249211fdcbdd459d63d0329f8545becb032aa55761266c3fa44d8
BLAKE2b-256 checksum
How to use checksums
2f703434676a89b1f41db29d885d4a7bc57a315c3bf5dfcaaafae05faf5847c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / hca_anndata_mcp-0.10.0-py3-none-any.whl

Download URL hca_anndata_mcp-0.10.0-py3-none-any.whl
Size 23.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e6b8acd93c1754e762f56c5355d3083a22ba1f28aa324e8e22f1241954c073c9
BLAKE2b-256 checksum
How to use checksums
d8d957b696b78eeb819d15ad337a0f05c83b668f0936e6b9496466a5f257ae74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Security for hca-anndata-mcp 0.10.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for hca_anndata_mcp-0.10.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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