Genomics MCP
OfficialGenomics MCP lets an agent discover public genomic datasets and files, retrieve bounded genomic regions or downloads from local/remote sources, and look up source-attributed reference evidence.
Discover sources, search datasets, describe studies/datasets, and list files, samples, and sample metadata from EGA, ENA, ENCODE, GEO, NCBI Datasets, local, and S3 sources.
Start, check, and cancel bounded, checksummed file downloads to a local work directory.
Read indexed genomic data over explicit 0-based half-open intervals: BAM/CRAM reads, coverage, and pileup; VCF/BCF variants and genotypes; FASTA sequence; BED/GFF3/GTF/bigBed features; bigWig signal.
Combine multiple files at a locus and compare genotypes/coverage across samples or files.
Resolve identifiers, normalize variants, and look up variant, gene, and protein evidence from sources such as ClinVar, gnomAD, Ensembl, HGNC, UniProt, and Open Targets.
Receive provenance, per-source status, truncation/error details, and applied limits with tool results; external annotation of private values requires explicit consent.
Enables the server to access genomic data files stored in MinIO (S3-compatible object storage) using named storage profiles with environment-variable credentials.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Genomics MCP Show variants in BRCA1 at chr17:43044295-43125465."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Genomics MCP
Let your AI assistant retrieve real genomic data and reference evidence, with the sources it came from.
Genomics MCP is a local Model Context Protocol server. An agent can use it to find public datasets and read a bounded region from archive, remote or local files. It can also look up variants and genes in public reference databases. Region queries use an explicit assembly and 0-based half-open coordinates. Where the format and server support range reads, a region is read without downloading the whole file. Whole-file downloads are a separate, budgeted step. Results report which sources were consulted (provenance and per-source status), with accessions, versions and retrieval times where the source provides them.
It is a research tool. It retrieves and reports data. It does not give clinical interpretation, call variants or draw biological conclusions.
Read the blog article: Genomics MCP: genomic data access for AI agents, including an agent case study at the BCL11A enhancer.
Who it is for
Computational biologists and researchers who want an agent to pull data from EGA, ENA, ENCODE, GEO, NCBI or their own indexed files without writing integration code. It also suits people building agents or evaluations who need real data with traceable sources. It does not generate benchmarks itself.
Related MCP server: civic
Example requests
Illustrative prompts; results depend on your client and model. Intervals are 0-based half-open (start included, end excluded); VCF-style variant positions are 1-based.
"Show the reads from EGA file EGAF00007243773 (dataset EGAD00001003338) overlapping GRCh38 chr10:[10000, 10050)." Needs
GENOMICS_MCP_EGA_PUBLIC_TEST_ACCOUNT=1, EGA's documented public test account."What is the mean signal of ENCODE file ENCFF792QDS over GRCh38 chr1:[1000000, 1001000)?"
"Check the reference base of GRCh38 variant 7-140753336-A-T against NCBI, then list its ClinVar records with germline, somatic and oncogenicity classifications kept separate."
"Download the ENA FASTA for DQ285577.1 and show its first 30 bases."
"Compare genotypes in chr1:[100000, 200000) across the two VCFs in my data folder."
Measured example
The ENCODE request above, run through a clean install on 2026-09-25 with live data:
File: ENCODE ENCFF792QDS, GRCh38 bigWig, 1,413,106,336 bytes
Interval: chr1:[1000000, 1001000)
Result: exact mean 26.361254017233847, from HTTP range reads. The workspace held 0 bytes afterwards (nothing written to disk; network reads still happened).
Four other live demonstrations ran with the same install: an EGA test BAM region, an ENA sequence download, a reference check with ClinVar, and local MinIO. Commands and machine-readable results: docs/demos.md.
Agent case study: a Claude Code agent, limited to this server's tools, compares ENCODE DNase-seq signal at the BCL11A erythroid enhancer across 26 files, with a transcript and a model-free replay: examples/agent-case-study/.
Quickstart
Container (Linux x86_64 with Docker)
The image is linux/amd64. It is tested on Linux x86_64; Docker on macOS is untested. Create the data folder first; it is mounted read-only.
{
"mcpServers": {
"genomics": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"--mount", "type=bind,source=/path/to/your/data,target=/data,readonly",
"--mount", "type=volume,source=genomics-mcp-work,target=/work",
"ghcr.io/rewire-bio/genomics-mcp:0.1.0"
]
}
}
}From source (macOS arm64, Linux x86_64)
Needs Python 3.12, uv, a C compiler, and libcurl and zlib development files (pyBigWig is built from source for remote-file support).
git clone https://github.com/rewire-bio/genomics-mcp
cd genomics-mcp && git checkout v0.1.0
uv sync --locked --no-dev
uv run --no-dev genomics-mcp --check-config{
"mcpServers": {
"genomics": {
"command": "uv",
"args": ["--directory", "/path/to/genomics-mcp", "run", "--no-dev", "genomics-mcp"],
"env": { "GENOMICS_MCP_ALLOWED_ROOTS": "/path/to/your/data" }
}
}
}There is no PyPI package yet. Wheel, Linux MCPB bundle, pinned uvx command, Windows (WSL2) and platform notes: docs/install.md.
Coverage
Area | Sources and formats |
Discovery | EGA, ENA (incl. SRA accessions), ENCODE, GEO, NCBI Datasets: studies, datasets, samples, phenotypes as supplied, files |
Genomic data | BAM/CRAM, VCF/BCF, FASTA, BED/GFF3/GTF, bigWig/bigBed on local disk, HTTPS or S3; EGA regions via htsget |
Transfers | Budgeted, resumable, checksummed downloads returned as local paths; optional SRA run to FASTQ with SRA Toolkit (unreleased) |
Reference | HGNC, Ensembl, ClinVar, gnomAD, UniProt, Open Targets; optional AlphaGenome Atlas with your own key |
Synthetic data (unreleased) | Catalogue of published spike-in, read-mixture and simulation protocols; pinned GIAB and HPRC HG002 truth files with digests. Read-only: nothing is simulated |
Group | Tools |
Discovery |
|
Transfers |
|
Genomics |
|
Composition |
|
Reference |
|
Synthetic data (unreleased) |
|
Resources: genomics://capabilities, genomics://status, genomics://schemas, genomics://schemas/{name}.
Defaults and safety
Limits: 1 Mb regions, 10,000 records, 1 MiB responses and a 30 s deadline; calls may lower these. Transfers are capped at 100 MiB unless a call sets a larger budget. Truncation is reported. Nothing is lifted over between assemblies.
Local only: stdio, or Streamable HTTP with a bearer token on 127.0.0.1. There is no hosted service. Local reads are limited to the folders you allow, and source files are never modified.
Credentials and egress: ambient AWS credentials are never used; private S3 and EGA need explicit configuration. Values from files not marked
publicgo to external APIs only when a call setsallow_external_annotation.Cache (unreleased; development checkout only, not in v0.1.0): a bounded in-memory cache reuses byte ranges of public HTTPS files marked
public(revalidated by ETag on every call) and public API responses. It is never used for private, signed or authenticated requests. Turn it off with[cache] enabled = false; restarting clears it. Details and measurements: performance.SRA Toolkit (unreleased; optional):
convert_sra_runturns a public SRR/ERR/DRR run into local FASTQ files with NCBI'sprefetchandfasterq-dump, as a budgeted, cancellable job. It is never started by discovery. ENA FASTQ files need no toolkit. Installation, container variant, limits and current verification status: SRA Toolkit.
Configuration: config.example.toml. Scope and known limits: PRD.md. Directory and PyPI status: publication ledger. Technical details: data access, synthetic data, archives, references, composition. Security: SECURITY.md.
Development
uv sync --locked
uv run ruff check . && uv run ruff format --check .
uv run pytestLicence
MIT. See LICENSE. Data from each source is subject to that source's own terms.
Available Tools
23 toolscancel_transferB
Cancel a running transfer. Available for: default.
Inputs: transfer_id (required). Returns: Envelope returned by every tool, as structured content and as JSON text.
compare_samplesCRead-only
Compare genotypes/coverage at an interval across files or samples. Available for: default.
Inputs: files (required), interval (required), samples, reference, +1 more. Returns: Envelope returned by every tool, as structured content and as JSON text.
describe_datasetARead-only
Describe a study/dataset by native accession, with linked entities. Available for: ega, ena, encode, geo, ncbi_datasets.
Inputs: source (required), accession (required). Returns: Envelope returned by every tool, as structured content and as JSON text.
fetch_fileA
Start a bounded download of a file (and index) to the local work dir. Returns a transfer job; files above the default limit need budget_bytes. Available for: default.
Inputs: file (required), prepare, budget_bytes, include_index, +1 more. Returns: Envelope returned by every tool, as structured content and as JSON text.
get_coverageBRead-only
Read depth over an interval from indexed BAM/CRAM (default excludes UNMAP, SECONDARY, QCFAIL, DUP, like samtools depth). Available for: bam, cram.
Inputs: file (required), interval (required), bin_size, reference, +4 more. Returns: Envelope returned by every tool, as structured content and as JSON text.
get_featuresBRead-only
Features overlapping an interval from indexed BED/GFF3/GTF or bigBed. Available for: bed, bigbed, gff3, gtf.
Inputs: file (required), interval (required), max_records, feature_types. Returns: Envelope returned by every tool, as structured content and as JSON text.
get_pileupBRead-only
Per-position base counts over an interval from indexed BAM/CRAM. Available for: bam, cram.
Inputs: file (required), interval (required), max_depth, reference, +4 more. Returns: Envelope returned by every tool, as structured content and as JSON text.
get_readsBRead-only
Alignments overlapping an interval from indexed BAM/CRAM. Flag filters follow samtools -f/-F. CRAM needs a matching reference unless self-contained. Available for: bam, cram.
Inputs: file (required), interval (required), reference, max_records, +4 more. Returns: Envelope returned by every tool, as structured content and as JSON text.
get_sample_metadataARead-only
Get one sample's metadata and phenotype values exactly as supplied by the source. Available for: ega, ena, encode, geo, ncbi_datasets.
Inputs: source (required), accession (required). Returns: Envelope returned by every tool, as structured content and as JSON text.
get_sequenceBRead-only
Reference sequence for an interval from an indexed FASTA. Available for: fasta.
Inputs: file (required), interval (required). Returns: Envelope returned by every tool, as structured content and as JSON text.
get_signalBRead-only
Signal values or binned summaries over an interval from bigWig. Available for: bigwig.
Inputs: file (required), interval (required), bins, summary, +1 more. Returns: Envelope returned by every tool, as structured content and as JSON text.
get_transfer_statusBRead-only
Get progress/result of a transfer started by fetch_file. Available for: default.
Inputs: transfer_id (required). Returns: Envelope returned by every tool, as structured content and as JSON text.
get_variantsBRead-only
Variant records and optional genotypes overlapping an interval (VCF/BCF). Available for: bcf, vcf.
Inputs: file (required), interval (required), samples, pass_only, +2 more. Returns: Envelope returned by every tool, as structured content and as JSON text.
inspect_locusBRead-only
Combine data from several files at one locus, plus public evidence. Values derived from private files are only sent to external sources if allow_external_annotation is true. Available for: default.
Inputs: interval (required), files, reference, max_records, +2 more. Returns: Envelope returned by every tool, as structured content and as JSON text.
list_filesARead-only
List files of a study/dataset with format, size, checksums, index and readiness. Available for: ega, ena, encode, geo, local, ncbi_datasets, s3.
Inputs: source (required), accession (required), cursor, formats, +2 more. Returns: Envelope returned by every tool, as structured content and as JSON text.
list_samplesBRead-only
List samples of a study/dataset as supplied by the source. Available for: ega, ena, encode, geo, ncbi_datasets.
Inputs: source (required), accession (required), cursor, max_records. Returns: Envelope returned by every tool, as structured content and as JSON text.
list_sourcesBRead-only
List data and reference sources, their state and supported operations.
Inputs: kind. Returns: Envelope returned by every tool, as structured content and as JSON text.
lookup_geneCRead-only
Gene identifiers, transcripts and source-attributed annotations. Available for: default.
Inputs: gene (required), include, sources, assembly. Returns: Envelope returned by every tool, as structured content and as JSON text.
lookup_proteinCRead-only
Protein identity, function and features from UniProt and cross-references. Available for: default.
Inputs: protein (required), sources. Returns: Envelope returned by every tool, as structured content and as JSON text.
lookup_variantCRead-only
Source-attributed evidence for a variant (ClinVar, gnomAD, Ensembl, optional Atlas). No consensus or clinical verdict. Available for: default.
Inputs: hgvs, rsid, include, sources, +2 more. Returns: Envelope returned by every tool, as structured content and as JSON text.
normalize_variantCRead-only
Normalize a variant (VCF-style, HGVS or rsID) on an explicit assembly with a trace. Available for: default.
Inputs: hgvs, rsid, sources, variant, +2 more. Returns: Envelope returned by every tool, as structured content and as JSON text.
resolve_identifierBRead-only
Resolve a gene/transcript/protein/variant identifier; reports ambiguity. Available for: default.
Inputs: identifier (required), sources, assembly, target_types. Returns: Envelope returned by every tool, as structured content and as JSON text.
search_datasetsBRead-only
Search one archive/catalog for studies or datasets by text query. Available for: ega, ena, encode, geo, ncbi_datasets.
Inputs: query (required), source (required), cursor, assembly, +2 more. Returns: Envelope returned by every tool, as structured content and as JSON text.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 23 tools
Each tool targets a distinct data type or action: sequence, features, signal, reads, coverage, pileup, variants, samples, metadata, transfers, locus inspection, sample comparison, identifier resolution, variant normalization, variant/gene/protein lookups, source listing, dataset search/description, and file listing. Overlaps like get_reads/get_coverage/get_pileup are differentiated by output, and resolve_identifier vs lookup_* by scope.
All tool names follow a consistent snake_case verb_noun pattern (e.g., get_sequence, list_samples, fetch_file, normalize_variant, lookup_protein). No mixing of conventions or vague verbs; the pattern is predictable across all 23 tools.
23 tools is slightly above the ideal 3-15 range but reasonable given the breadth of genomics data formats (FASTA, BED, GFF, bigWig, BAM, CRAM, VCF) and operations (access, lookup, transfer, inspection). Each tool appears to earn its place, though some consolidation of similar BAM/CRAM tools could reduce count.
The surface covers core genomics workflows: sequences, features, signal, reads, coverage, pileup, variants, samples, datasets, files, transfers, identifier resolution, variant normalization, and lookups for variants/genes/proteins. Minor gaps exist, such as searching genes by keyword or listing variants by gene without a locus, but agents can work around these.
Maintenance
Related MCP Connectors
Machine-readable entity discovery with provenance, trust and verified source evidence.
Read-only U.S. lab-test catalog, collection-site search, and reference-range context.
Multi-engine scholarly research server for search, traversal, full text, and reading lists.
Query Health Gorilla FHIR patients, conditions, medications and lab results.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables researchers to query DigitalBrain data catalogs, brain region profiles, gene expression summaries, and paper evidence, and download approved results through MCP-compatible clients.MIT
- AlicenseNot gradedqualityCmaintenanceEnables searching cancer genes and curated variants from CIViC, retrieving associated diseases, therapies, and graded evidence items and assertions for clinical interpretation.58 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables querying UCSC Genome Browser assemblies, annotation tracks, track data over genomic intervals, and raw DNA sequences across ~250 species without authentication.76 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables authenticated, permission-bound read-only queries across registered repositories for inventory, ranking, impact analysis, tracing, and result interpretation.Apache 2.0