Skip to main content

🌱 plant-genomics-mcp

Plant gene lookup over the Model Context Protocol. Give Claude, or any MCP client, a locus and it can query 23 free, public databases, from Ensembl Plants and UniProt to KEGG, STRING and AlphaFold, with curated coverage of 12 plants.

PyPI CI Docker Python License Glama DOI

Claude Code (Opus 5.5) with plant-genomics-mcp 1.29.1 answering a prompt about Arabidopsis NAC001 (AT1G01010): the Ensembl Plants record (Chr 1:3,631-5,899, protein_coding) and UniProtKB entry Q0WV96 (NAC1_ARATH, reviewed, 429 aa). Real output, trimmed

📦 Install

# Zero-install — uv fetches and runs it on demand
claude mcp add plant-genomics --scope local -- uvx plant-genomics-mcp
Other install paths (pipx, Docker, from source)
# pipx — installs the CLI onto your PATH
pipx install plant-genomics-mcp
claude mcp add plant-genomics --scope local -- plant-genomics-mcp

# GHCR Docker image
docker pull ghcr.io/musharna/plant-genomics-mcp:latest
claude mcp add plant-genomics --scope local -- \
  docker run --rm -i ghcr.io/musharna/plant-genomics-mcp:latest

# From source
git clone https://github.com/musharna/plant-genomics-mcp.git
cd plant-genomics-mcp
python -m venv .venv && .venv/bin/pip install -e .
claude mcp add plant-genomics --scope local -- "$(pwd)/.venv/bin/plant-genomics-mcp"

💬 Try it

Ask in plain language; you don't name the tools or chain them:

"Tell me everything about the Arabidopsis gene AT1G01010 — its function, GO terms, KEGG pathways, protein-interaction partners, and recent papers."

The client picks which tools to call. For another species, name it or pass organism= (e.g. rice Os01g0100100, oryza_sativa).

Asked for NAC001's orthologs in rice and maize, a second recorded run (prompts and full text in examples/assets/cards/RUN.md) checked three sources and said which one does not back the rice match:

Claude Code (Opus 5.5) after 6 plant-genomics-mcp calls: AT1G01010's rice ortholog is Os07g0683200 (Gramene v69 ortholog_one2many, the only rice member of Ensembl gene tree EPlGT01160000455820); no maize ortholog in either; OrthoDB's NAC group has no rice or maize member, so it does not back the rice match

A worked 64-call run over 114 genes in three organisms, with the 51 gaps it logged (39 since closed), is in examples/arf_family/PAGE.md. Per-tool walkthroughs with real upstream transcripts, including the one-call gene dossier gene_report_AT1G01010.md, are in examples/.

📊 Does it help?

We asked Claude Opus 5.5, in Claude Code, 52 plant gene-lookup questions (location, protein length, name → locus, UniProt accession, ortholog; 12 genomes), three times each. Alone, it declined most of them. With web search it got 48 of the 52 right in every run, mostly by calling the Ensembl and UniProt REST APIs itself. With this server it got all 52 right in every run, and its slowest answer took 86 s, against 705 s with web search. The answer key comes from the databases the server reads, so this measures whether lookups are done correctly. Cost, timings and caveats: benchmarks/agent_qa/.

Bar chart of 156 answers per setup. Claude alone: 36 right, 3 wrong, 117 declined. Claude with web search: 151 right, 4 wrong, 1 declined. Claude with plant-genomics-mcp: 156 right

🛠️ Tools

56 tools across 23 backends: Ensembl Plants, Phytozome BioMart, UniProtKB, Europe PMC, QuickGO, Planteome, PlantCyc/PMN, g:Profiler, AlphaFold DB, PDBe, InterPro, JASPAR, PANTHER, OrthoDB, AraGWAS, 1001 Genomes, NCBI BLAST, Gramene, KEGG, STRING-DB, ATTED-II, ThaleMine and BAR. That is 29 single-locus + 1 motif lookup + 1 region query + 1 assembly listing + 1 release report + 1 variant annotator + 1 gene-set enrichment + 1 BLAST search + 2 member lists + 13 parallel-batch + 5 cross-source synthesis.

Most take a locus (e.g. AT1G01010) and an optional organism=: a slug, scientific or common name, or NCBI taxid (the 12-plant coverage matrix is the pgmcp://organisms/coverage resource). Every tool is marked read-only and publishes a JSON outputSchema.

Full tool matrix
# Category Tool What it does
1 Gene metadata (live) ensembl_plants_lookup_locus Fetches gene record from Ensembl Plants REST (any plant species).
2 Cross-references (live) get_gene_xrefs Fetches cross-DB references (UniProt, NCBI Gene, TAIR, GO, …) from Ensembl.
3 Gene metadata (live) phytozome_lookup_locus Fetches gene record from Phytozome BioMart (any Phytozome proteome).
4 Protein (live) resolve_locus_to_uniprot Resolves a locus to its UniProtKB record (Swiss-Prot preferred, TrEMBL OK).
5 Literature (live) locus_literature Searches Europe PMC for papers mentioning the locus (free, no API key).
6 GO annotations (live) locus_go_annotations Fetches QuickGO GO annotations (locus → UniProt → QuickGO).
7 Sequence search (live) blast_sequence NCBI BLAST URLAPI — async Put/Get polling with progress notifications.
8 Homology (live) gramene_homologs Fetches Gramene v69 homology entries (ortholog / paralog) with gene_tree_id.
9 Pathways (live) kegg_pathways Fetches KEGG pathway memberships. 7 organisms: Arabidopsis (ath:, native AGI), + rice (osa:), maize (zma:), soybean (gmx:), barley (hvg:), poplar (pop:), brachypodium (bdi:) bridged via Ensembl → Entrez ID.
10 Interactions (live) string_interactions Fetches STRING-DB first-neighbor interaction partners with per-channel score.
11 Coexpression (live) atted_coexpression Fetches ATTED-II top-N coexpression neighbors with a score: z-score for Arabidopsis, logit score (LSmr) for the other releases.
12 Curator summary (live) bar_gene_summary Fetches BAR ThaleMine + GAIA-aliases curator summary for an Arabidopsis locus.
13 Expression (live) bar_efp_expression Fetches BAR eFP-Browser expression profile (mean ± SD per tissue) for a locus.
14 Interactions (live) bar_aiv_interactions Fetches BAR AIV interaction partners (Arabidopsis + rice) with confidence + papers.
15 Curator summary (live) tair_locus_info Silent upgrade — alias of bar_gene_summary. MCP tool name preserved for clients.
16 Metabolism (live) plantcyc_locus_info Walks gene → enzyme → reactions → PlantCyc/PMN pathways (free BioCyc web-services API). The metabolic-pathway view KEGG/GO lack; found=false for non-enzymatic genes. 11 species have a PGDB.
17 Sequence (live) get_sequence Fetches a locus's sequence (genomic / cds / cdna / protein) from Ensembl /sequence/id — the fetch half of lookup → fetch → BLAST; feed sequence to blast_sequence.
18 Region query (live) ensembl_region_query Lists gene/transcript/cds/exon features overlapping a genomic interval (chr:start-end) via Ensembl /overlap/region — "what's in this QTL interval" without a per-locus lookup.
19 Enrichment (live) go_enrichment GO + KEGG over-representation for a gene list via g:Profiler g:GOSt — "what is my DE / co-expression set enriched for?" Reports unmapped loci; optional custom background. All 12 organisms.
20 Plant ontology (live) locus_plant_ontology Plant Ontology (anatomy / dev-stage) + Trait Ontology annotations for a locus via Planteome (Solr) — the plant-specific ontologies GO doesn't cover. by_ontology rollup; taxon-filtered. Strong for 6 species.
21 Structure (live) alphafold_structure AlphaFold DB predicted 3D model for a locus (locus → UniProt → model): global mean pLDDT, per-band confidence, modelled span, and mmCIF / PDB / PAE URLs. found=false when no model is deposited. All 12 organisms.
22 Structure (live) experimental_structures PDBe experimentally-solved (X-ray / cryo-EM / NMR) structures for a locus (locus → UniProt): best-first PDB id, chain, method, resolution, coverage, residue span. found=false when none deposited (common for plants). All 12 organisms.
23 Domains (live) interpro_domains InterPro domain / family architecture (locus → UniProt): each entry's accession, name, type, source_database (Pfam included), integrated InterPro id, and residue spans, plus a count_by_type rollup. All 12 organisms.
24 TF motifs (live) tf_binding_motifs JASPAR curated TF DNA-binding profiles for a locus (locus → UniProt → symbol search, then UniProt-confirmed): matrix id, TF class/family, assay type (SELEX / ChIP-seq / PBM / DAP-seq), IUPAC consensus, PubMed refs, logo URL. Fuzzy name hits for other genes are quarantined in name_only_matches. Arabidopsis-heavy coverage.
25 TF motifs (live) jaspar_motif One JASPAR profile by matrix id (e.g. MA0570.1, or MA0570 for the newest version) including the raw position-frequency matrix — the drill-down companion to tf_binding_motifs.
26 Interactions (live) experimental_interactions ThaleMine CURATED EXPERIMENTAL interaction partners (BioGRID / IntAct / PSI-MI) for an Arabidopsis locus — per partner: detection method (two hybrid, pull down, ...), PSI-MI relationship type, physical vs genetic, source DB, PubMed IDs, and an evidence count. The experimental counterpart to string_interactions (predicted / text-mined). Arabidopsis only.
27 Function (live) locus_gene_rifs ThaleMine curated GeneRIF statements — one-sentence, manually curated descriptions of what the gene does, each tied to a PubMed ID (HY5 has 114). Citable functional context that GO terms and raw abstracts don't provide. Arabidopsis only.
28 Variation (live) locus_variants Natural (EVA/dbSNP) variants overlapping a locus's genomic span via Ensembl /overlap/region — id, source, consequence class, alleles, clinical significance. variant_count + truncated. All 12 organisms.
29 Variation (live) vep_annotate Ensembl VEP consequence prediction for a variant (region + allele, not locus) — most-severe consequence + per-transcript SO terms, IMPACT, SIFT. All 12 organisms.
30 Orthology (live) panther_family PANTHER protein family + subfamily (id + name), GO terms by aspect, protein class, and pathways. found=false when unmapped. All 12 organisms.
31 Orthology (live) orthodb_orthologs OrthoDB ortholog group (name, evolutionary rate) + cross-species member genes at the Viridiplantae level. organism_count + truncated. All 12 organisms.
32 Diversity (live) aragwas_associations AraGWAS genome-wide association hits per locus — score, MAF, SNP effect, phenotype/study. Arabidopsis-only.
33 Diversity (live) arabidopsis_natural_variation 1001 Genomes natural-variation SNP effects across 1135 accessions — chr, position, effect, impact, amino-acid change, transcript + gene span. Arabidopsis-only.
34 Batch (live) batch_* (twelve dedicated variants) Parallel per-locus fanout for tools 1–6, 8–12, 14. Up to 50 loci per call.
35 Batch (live) batch_locus_call Runs any tool whose only required argument is locus (33 tools, including gene_report and the synthesis tools) over up to 50 loci; the shared args are checked against that tool's schema once, before any call.
36 Synthesis (live) *_synth / consensus_homologs (four) Compose 2–5 backends in parallel, return a SynthesisEnvelope with per-step status.
37 Synthesis (live) gene_report One-shot "tell me about this gene" dossier — annotation + xrefs + protein + domains + GO + KEGG + STRING + literature composed into a rendered Markdown result.markdown (+ structured result.sections).
38 Families (live) entry_members Every protein in one organism carrying an InterPro / Pfam / PANTHER entry, with the locus each maps to (entry → genes; the reverse of tools 23 and 30). UniProt total + cursor paging; reviewed-only by default.
39 Families (live) gene_tree_members Every gene in the Ensembl Compara gene tree a locus is in now (or a gene_tree_id), with locus, protein id, species and organism; target_organism keeps one organism's members. total + limit.
40 Homology (live) ensembl_plants_paralogs Paralogues Ensembl Compara records for a locus — within_species_paralog and the other_paralog ("ancient paralogues") that gramene_homologs drops — closest first, with perc_id, taxonomy level and protein id. Not a family list: test membership with interpro_domains. total + limit.
41 Region query (live) ensembl_plants_assembly An organism's Ensembl assembly — name, GCA accession, karyotype — and every top-level seq-region with its length: the region names ensembl_region_query takes, chromosomes first, so a region walk is planned before its first call. total + limit.
42 Provenance (live) upstream_release The release a backend's own endpoint calls current (Ensembl, STRING, QuickGO, JASPAR, KEGG), for the backends whose answers state none; PDBe, AraGWAS and Europe PMC publish none and say why. A separate request, so read it before and after a run: equal values mean no release changed.

📚 Resources & prompts

Four read-only MCP resources + three parameterized prompts

Clients discover them via resources/list and prompts/list.

Resources (resources/read):

URI What
pgmcp://cache/stats Per-backend TTLCache rollup — {hits, misses, size} for each live backend.
pgmcp://organisms/phytozome Slug → Phytozome organism_id map.
pgmcp://backends/status Static per-backend roster — name, base_url, citation DOI, subscription_gated, kind. Nothing is probed: kind is always "live" and says nothing about whether the backend is up right now.
pgmcp://organisms/coverage Markdown table of all 12 supported plants × 9 ID slots (ncbi_taxid / ensembl / phytozome / string / europe_pmc / kegg / atted / gprofiler / plantcyc).

Prompts (prompts/get):

Name Required Optional Chains
analyze_locus locus organism (default arabidopsis_thaliana) Ensembl → xrefs → UniProt → Europe PMC → QuickGO.
find_homologs sequence program (default blastp) blast_sequence → per-hit resolve_locus_to_uniprot for UniProt-shaped accessions.
biological_context locus top_n (default 10) Gramene → KEGG → UniProt → STRING → ATTED-II.

🔌 Transports and configuration

stdio (plant-genomics-mcp, the default) needs no configuration. plant-genomics-mcp-http serves stateless streamable HTTP at http://host:port/mcp. There is no public endpoint: you run it yourself, behind your own token.

Variable When Effect
PLANT_GENOMICS_MCP_HTTP_TOKEN HTTP transport only Bearer token for /mcp; must be ≥32 chars or the HTTP server aborts at startup. Generate openssl rand -hex 32.
PLANT_GENOMICS_MCP_NCBI_EMAIL If you use BLAST NCBI etiquette contact. Unset → placeholder + per-call warning; NCBI may throttle.
All env vars (HTTP bind, body cap, cache, BLAST concurrency)
Variable Default Effect
PLANT_GENOMICS_MCP_HTTP_HOST 127.0.0.1 HTTP bind address.
PLANT_GENOMICS_MCP_HTTP_PORT 8765 HTTP TCP port.
PLANT_GENOMICS_MCP_HTTP_MAX_BODY 2097152 (2 MiB) Reject POSTs with Content-Length larger than this.
PLANT_GENOMICS_MCP_HTTP_STATELESS 1 0 keeps per-client session state (SSE-style).
PLANT_GENOMICS_MCP_HTTP_JSON 1 0 switches the response shape to streaming SSE events.
PLANT_GENOMICS_MCP_BLAST_CONCURRENCY 2 Max in-flight BLAST searches per process (NCBI per-IP rate limit).
PLANT_GENOMICS_MCP_CACHE_TTL 600 Per-backend TTL+LRU cache entry lifetime, in seconds. 200-only.
PLANT_GENOMICS_MCP_CACHE_SIZE 256 Max entries per backend before LRU eviction.
PLANT_GENOMICS_MCP_CACHE_DISABLED unset Any non-empty value makes every cache a no-op.

The cache is per process; restart the server to clear it. Long calls (BLAST, Phytozome BioMart) send MCP progress notifications when the request carries a progressToken.

⚠️ Error model

Wire-prefix taxonomy + batch result shape

All live tools raise PlantGenomicsError subclasses; the MCP SDK stringifies them into the wire content with a [ClassName] prefix so clients can route on failure kind without parsing the message:

Wire prefix When
[NotFoundError] 404 / empty BioMart row / invalid locus identifier
[RateLimitError] 429 retry budget exhausted — back off and retry
[UpstreamUnavailableError] 5xx past retry budget — service outage, try a peer backend
[PlantGenomicsError] Other (BioMart Query ERROR: body, unexpected column count, etc.)

Batch tools return {tool, count, results, errors}: each results[locus] has the single-locus shape and each errors[locus] is the same [ClassName] message string.

🧪 Development

.venv/bin/pip install -e '.[dev]'                         # or: uv sync --extra dev
.venv/bin/pytest -q                                       # unit tests
PLANT_GENOMICS_MCP_LIVE=1 .venv/bin/pytest -q             # adds live network probes
PLANT_GENOMICS_MCP_STDIO_SMOKE=1 .venv/bin/pytest -q      # adds stdio smoke
.venv/bin/ruff check .

A bare uv sync omits the test dependencies. CI runs the unit suite and the stdio smoke on Python 3.11–3.14 with the network blocked, plus a non-required live-smoke job against the real services. A weekly job checks 27 loci against a frozen snapshot and pages on drift (docs/benchmarking.md). Setup: CONTRIBUTING.md. Release notes: CHANGELOG.md.

MCP registry

Listed in the official MCP registry; mcp-publisher verifies ownership from this line:

mcp-name: io.github.musharna/plant-genomics-mcp

License

MIT — see LICENSE. Underlying services (Ensembl Plants, Phytozome, TAIR, PlantCyc, BAR) have their own terms of use; consult each before bulk querying.

Metadata

Release files for plant-genomics-mcp 1.29.3

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

Source distribution (sdist)

Source distribution for plant-genomics-mcp 1.29.3
File Size Uploaded
plant_genomics_mcp-1.29.3.tar.gz 4.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for plant-genomics-mcp 1.29.3
File Interpreter ABI Platform
plant_genomics_mcp-1.29.3-py3-none-any.whl Python 3 none any Details

Total release size: 4.6 MB

Release files / plant_genomics_mcp-1.29.3.tar.gz

Download URL plant_genomics_mcp-1.29.3.tar.gz
Size 4.3 MB
Tags Source
SHA-256 checksum
How to use checksums
8d963b803739952d65d90cde1340a5b2925bb33edfba69066d310979acc5b7af
BLAKE2b-256 checksum
How to use checksums
4fe83c202895ce4b2e8ccbdb1cf23b0e2c5a724679b6a9ee3fc977410e6c4c7f
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 Oct 17, 2026.

Transparency log

Release files / plant_genomics_mcp-1.29.3-py3-none-any.whl

Download URL plant_genomics_mcp-1.29.3-py3-none-any.whl
Size 237.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f9b243796e4056947dee5bbef2ee2c716389afa5b128201aa5b677f026452f04
BLAKE2b-256 checksum
How to use checksums
d1b2f4bf67ceef8efb14e587b89d386d58ea156e62bc6b7ad434370450fa7053
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 Oct 17, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.29.3 This release

2 release files

1.29.2

2 release files

1.29.1

2 release files

1.28.0

2 release files

1.27.0

2 release files

1.26.0

2 release files

1.25.0

2 release files

1.24.0

2 release files

1.23.0

2 release files

1.22.0

2 release files

1.20.0

2 release files

1.19.5

2 release files

1.19.4

2 release files

1.19.3

2 release files

1.19.2

2 release files

1.19.1

2 release files

1.19.0

2 release files

1.18.2

2 release files

1.18.1

2 release files

1.18.0

2 release files

1.17.0

2 release files

1.16.0

2 release files

1.15.0

2 release files

1.8.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.4

2 release files

1.0.3

2 release files

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