@cyanheads/gnomad-genetics-mcp-server
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., "@@cyanheads/gnomad-genetics-mcp-serverget variant frequencies for rs11591147"
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.
Public Hosted Server: https://gnomad-genetics.caseyjhand.com/mcp
Overview
Population genetics over gnomAD (Broad Institute), with ClinVar clinical significance joined in from NCBI. Look up per-ancestry allele frequencies, gene loss-of-function constraint, gene variant catalogs, and sequencing coverage, then query large result sets with SQL.
Tools
Tool | Description |
| Full population record for one or more variants — AC/AN/AF overall and per genetic-ancestry group, homozygote/hemizygote counts, quality flags, transcript consequence, in-silico predictors, and joined ClinVar significance. |
| Gene loss-of-function constraint — pLI, LOEUF ( |
| Every variant in a gene, transcript, or region with allele frequencies and predicted consequences, filterable by consequence class and max allele frequency. |
| Sequencing coverage across a gene, transcript, or region — mean/median depth and the fraction of samples over depth thresholds, per callset track. |
| Gene-level ClinVar detail via NCBI E-utilities — classified variants, review status, conditions, submission counts, and gnomAD-compatible variant IDs, paged by offset. |
| Run a read-only SQL |
| List the tables staged on a canvas and their columns before writing SQL. |
| Drop a named table from a canvas to reclaim memory. Opt-in via |
Resources
Resource | Description |
| Population record for one variant — mirrors |
| Gene loss-of-function constraint — mirrors |
All resource data is also reachable via tools. The list tools (gnomad_list_gene_variants, gnomad_get_coverage, gnomad_search_clinvar) return analytical row sets rather than stable single-URI documents, so they are not exposed as resources — call the tools instead.
Prompts
Prompt | Description |
| Guided rare-disease variant-triage workflow: population frequency → gene constraint → callability check, in order. |
Related MCP server: EVEE MCP Server
Capability reference
gnomad_get_variant tool
Up to 25 IDs per call (raise via
GNOMAD_MAX_VARIANT_BATCH), each achrom-pos-ref-altvariantId on chromosome1–22,X, orYwith an optionalchrprefix (e.g.1-55051215-G-GA) or an rsID (e.g.rs11591147)A bad or absent ID lands in
failed[]as{ variant, error, reason, recovery }without failing the rest; mitochondrial IDs (M,MT,chrM) fail asmitochondrial_unsupported, and an ambiguous rsID addscandidatesReturns the full per-ancestry frequency vector, the callset(s) carrying the variant, quality flags, consequence, predictor scores, and ClinVar significance. If ClinVar is unavailable (or the lookup passes 45 s), the record returns with
clinvar: nullandclinvar_unavailable: trueAn empty
found[]means the variant is not in the chosen dataset; checkgnomad_get_coveragebefore concluding true absence
gnomad_get_gene_constraint tool
Accepts an HGNC symbol (
PCSK9) or an Ensembl gene ID (ENSG00000169174)Returns pLI (>0.9 intolerant), LOEUF /
oe_lof_upperwith its lower bound, observed/expected ratios for LoF / missense / synonymous, the three Z-scores, andconstraint_flags(e.g.no_exp_lof,syn_outlier)constraint_releasenames the release the metrics come from. Many genes have null constraint, reported as null:datasetSource
constraint_releaseLoF-intolerance guidance
gnomad_r4GRCh38 gnomAD constraint
gnomAD v4.1.2LOEUF < 0.45
gnomad_r3GRCh38 gnomAD constraint (gnomAD publishes no v3 constraint)
gnomAD v4.1.2LOEUF < 0.45
gnomad_r2_1GRCh37 gnomAD constraint
gnomAD v2.1.1LOEUF < 0.35
exacGRCh37 ExAC constraint
ExAC r0.3pLI only
On
exacthe ratios and LOEUF are null andconstraint_flagsis empty
gnomad_list_gene_variants tool
Supply exactly one of
gene,transcript_id, orregion(chrom-start-stop, 1-based inclusive, chromosome1–22,X, orYwith an optionalchrprefix); a blankgeneortranscript_idcounts as omittedA region must span less than 2,500,000 bp and hold at most ~30,000 variants, otherwise it fails as
invalid_regionorregion_too_large; mitochondrial targets fail asmitochondrial_unsupportedOptional filters: one
consequence_class(lof/missense/synonymous/other) and/or a maximum allele frequencyA result too large to inline is staged on the
gene_variantscanvas table, returned ascanvas_idandtable_namebeside a preview; inspect it withgnomad_dataframe_describeand query it withgnomad_dataframe_query. Passing acanvas_idalways writesgene_variantsthere, replacing the previous table. With the canvas disabled (CANVAS_PROVIDER_TYPE!=duckdb), only the capped preview is returned
gnomad_get_coverage tool
Supply exactly one of
gene,transcript_id, orregion(samechrom-start-stopform and 2,500,000 bp limit asgnomad_list_gene_variants); a blankgeneortranscript_idcounts as omitted. Bad regions fail asinvalid_regionorregion_too_large, and mitochondrial targets asmitochondrial_unsupportedReturns mean and median read depth plus the mean fraction of samples covered at each threshold (1× through 100×), summarized per callset track, with
bucket_size,bucket_count, andpositionsfor eachcoverage_sourcenarrows to one track (exome/genome); omit to return every available track
gnomad_search_clinvar tool
Takes an HGNC symbol only (an Ensembl gene ID returns guidance and searches nothing). Optional filters:
clinical_significance(e.g.pathogenic) andmin_review_stars(0–4)Returns clinical significance, review status with a 0–4 star rating, conditions, molecular consequences, submission counts, and gnomAD-compatible identifiers (
canonical_spdi,rsids,grch38_variant_id). IDs ClinVar has no summary for are listed inunavailable_idsPages up to 500 records per call with
offset/limit(1–500);total_found,truncated, andnext_offsetsay whether more remain.limitcounts records before the filters, so a window can return fewer rowsA window too large to inline is staged on the
clinvar_variantscanvas table (query it withgnomad_dataframe_describeandgnomad_dataframe_query); passing acanvas_idalways writes it there, replacing the previous table.NCBI_API_KEYraises the rate limit from 3 to 10 req/s
gnomad_dataframe_query tool
Runs single-statement, read-only SQL
SELECTs against a table staged bygnomad_list_gene_variantsorgnomad_search_clinvar(gene_variantsorclinvar_variants); writes, DDL, and file/HTTP table functions are rejectedPages with
offset(default 0) andlimit(default 100, max 500); returnsrows,columns,total,truncated, andnext_offset(follow it untilnull). Use anORDER BYon a unique key for stable paging, and filter or aggregate in SQL to get past theCANVAS_DEFAULT_ROW_LIMITcap (10,000 by default)A row over the 10,000-character page budget fails with
row_too_large; withoutCANVAS_PROVIDER_TYPE=duckdbit fails withcanvas_disabled
gnomad_dataframe_describe tool
Lists every table staged on a canvas with its row count and column schema (name and DuckDB type)
Call it before writing SQL for
gnomad_dataframe_queryRequires
CANVAS_PROVIDER_TYPE=duckdb— otherwise fails with acanvas_disablederror
gnomad_dataframe_drop tool
Drops a named table from a canvas to reclaim memory (
destructiveHint: true)Opt-in via
GNOMAD_DATAFRAME_DROP_ENABLED=true; absent fromtools/listwhen offAn unknown or expired
canvas_idfails ascanvas_not_found; withoutCANVAS_PROVIDER_TYPE=duckdbit fails withcanvas_disabled
gnomad://variant/{dataset}/{variantId} resource
Population record for one variant as
application/json, mirroringgnomad_get_variant;variantIdtakes a chrom-pos-ref-alt ID or an rsIDTyped errors:
invalid_variant_id,mitochondrial_unsupported,variant_not_found,ambiguous_rsid(withcandidates),graphql_error,upstream_build_mismatch,upstream_unavailable,upstream_timeout,upstream_access, andinvalid_upstream_response, each with a recovery hint
gnomad://gene/{dataset}/{gene}/constraint resource
Gene loss-of-function constraint as
application/json, mirroringgnomad_get_gene_constraint(sameconstraint_releaseperdataset);genetakes an HGNC symbol or Ensembl gene IDTyped errors:
gene_not_found,invalid_constraint_data,graphql_error,upstream_unavailable,upstream_timeout,upstream_access, andinvalid_upstream_response, each with a recovery hint
gnomad_variant_triage prompt
Arguments:
variantrequired (chrom-pos-ref-alt or rsID; a malformed one is rejected);geneanddatasetoptional.datasetis one ofgnomad_r4,gnomad_r3,gnomad_r2_1,exac, and the server default applies when omittedEmits a three-step chain as one user message: population frequency (
gnomad_get_variant) → gene constraint (gnomad_get_gene_constraint) → callability check (gnomad_get_coverageon the exact position)
Features
Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.
gnomAD-specific:
Single keyless GraphQL source for the entire core surface — ClinVar significance is joined per variant inside gnomAD's own response
datasetandreference_genomeare distinct, coherence-validated parameters (v4/v3 ⇒ GRCh38, v2.1/ExAC ⇒ GRCh37); both are echoed in every tool's output so a wrong-build coordinate mismatch is visiblePolite client — conservative concurrency cap (
GNOMAD_MAX_CONCURRENCY, default 2) and exponential backoff against a community-funded, rate-limited APIIn-conversation SQL analytics:
gnomad_list_gene_variantsandgnomad_search_clinvarstage results too large to inline on a DuckDB-backed canvas table —gnomad_dataframe_describelists its columns,gnomad_dataframe_queryruns SQL over every row
Agent-friendly output:
Per-ancestry allele-frequency vector returned in full, never collapsed to a single global AF
gnomad_get_variantreturns per-itemfailed[]rows instead of failing the whole batchEffective
datasetandreference_genomeechoed on every response; null upstream fields stay nullEvery error carries a typed
reason(e.g.incoherent_build,invalid_target,variant_not_found,upstream_timeout,canvas_disabled) and a recovery hint
Getting started
Public Hosted Instance
A public instance is available at https://gnomad-genetics.caseyjhand.com/mcp — no installation required. Point any MCP client at it via Streamable HTTP:
{
"mcpServers": {
"gnomad-genetics-mcp-server": {
"type": "streamable-http",
"url": "https://gnomad-genetics.caseyjhand.com/mcp"
}
}
}Self-Hosted / Local
Add the following to your MCP client configuration file. gnomAD is a free, keyless API — no credentials required.
{
"mcpServers": {
"gnomad-genetics-mcp-server": {
"type": "stdio",
"command": "bunx",
"args": ["@cyanheads/gnomad-genetics-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info"
}
}
}
}Or with npx (no Bun required):
{
"mcpServers": {
"gnomad-genetics-mcp-server": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@cyanheads/gnomad-genetics-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info"
}
}
}
}Or with Docker:
{
"mcpServers": {
"gnomad-genetics-mcp-server": {
"type": "stdio",
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "MCP_TRANSPORT_TYPE=stdio",
"ghcr.io/cyanheads/gnomad-genetics-mcp-server:latest"
]
}
}
}For Streamable HTTP, set the transport and start the server:
MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 bun run start:http
# Server listens at http://localhost:3010/mcpTo enable the SQL analytics path, also set CANVAS_PROVIDER_TYPE=duckdb — @duckdb/node-api ships as a dependency, so nothing extra to install.
Prerequisites
Bun v1.4.0 or higher (or Node.js v24+).
No API key — gnomAD's GraphQL endpoint is keyless. An optional
NCBI_API_KEYraises thegnomad_search_clinvarrate limit.
Installation
Clone the repository:
git clone https://github.com/cyanheads/gnomad-genetics-mcp-server.gitNavigate into the directory:
cd gnomad-genetics-mcp-serverInstall dependencies:
bun installConfigure environment:
cp .env.example .env
# all vars are optional — the server runs keyless out of the boxConfiguration
All variables are optional; the server runs keyless with the defaults below.
Variable | Description | Default |
| gnomAD GraphQL endpoint. Override for a private mirror or testing. |
|
| Dataset used when a tool call omits |
|
| Per-request timeout against the GraphQL endpoint, in milliseconds. |
|
| Cap on concurrent upstream requests — politeness against a community-funded API. |
|
| Maximum variant IDs accepted per |
|
| NCBI E-utilities base URL for |
|
| Optional NCBI key. Raises the E-utilities rate limit from 3 to 10 req/s. | — |
| Set to |
|
| Gate for the opt-in |
|
| Transport: |
|
| Port for the HTTP server. |
|
| Auth mode: |
|
| Log level (RFC 5424). |
|
| Enable OpenTelemetry instrumentation. |
|
See .env.example for the full list of optional overrides.
Running the server
Local development
Build and run:
# One-time build bun run rebuild # Run the built server bun run start:stdio # or bun run start:httpRun checks and tests:
bun run devcheck # Lint, format, typecheck, security bun run test # Vitest test suite bun run lint:mcp # Validate MCP definitions against spec
Docker
docker build -t gnomad-genetics-mcp-server .
docker run --rm -e MCP_TRANSPORT_TYPE=http -p 3010:3010 gnomad-genetics-mcp-serverThe Dockerfile defaults to HTTP transport, stateless session mode, and logs to /var/log/gnomad-genetics-mcp-server. OpenTelemetry peer dependencies are installed by default — build with --build-arg OTEL_ENABLED=false to omit them.
Project structure
Directory | Purpose |
|
|
| Server-specific environment variable parsing and validation with Zod. |
| Tool definitions ( |
| Resource definitions ( |
| Prompt definitions ( |
| gnomAD GraphQL client, query documents, and domain types. |
| NCBI E-utilities client for the optional ClinVar tool. |
| Module-level accessor for the framework's optional DataCanvas. |
Development guide
See CLAUDE.md/AGENTS.md for development guidelines and architectural rules. The short version:
Handlers throw, framework catches — no
try/catchin tool logicUse
ctx.logfor request-scoped logging,ctx.statefor tenant-scoped storageRegister new tools and resources in the
createApp()arrays insrc/index.tsWrap external API calls: validate raw → normalize to domain type → return output schema; never fabricate missing fields
Data attribution
gnomAD data is provided by the Genome Aggregation Database (Broad Institute). ClinVar data is provided by NCBI.
Contributing
Issues are welcome. Run checks and tests before submitting:
bun run devcheck
bun run testLicense
Apache-2.0 — see LICENSE for details.
This server cannot be deployed
Maintenance
Related MCP Connectors
Bioinformatics MCP for genomic variant interpretation, gene-disease evidence and literature.
MyVariant.info MCP. Aggregated human genetic-variant annotation: dbSNP, ClinVar clinical…
gnomAD MCP — Broad Institute Genome Aggregation Database (GraphQL).
MCP gateway federating 22 biomedical MCP servers behind one endpoint: gnomAD, ClinVar, HPO, VEP.
Related MCP Servers
FlicenseNot gradedqualityDmaintenanceAnnotate variants by with a deep and rich set of data. Can annotate: genetic change, rsID, CAid, HGVS (g./c./p.), protein change.6-- FlicenseAqualityFmaintenanceProvides interpretable variant effect predictions for 4.2 million ClinVar variants using the EVEE API. Enables searching, comparing, and analyzing genetic variants with AI-generated mechanistic interpretations and disruption profiles.618-
- AlicenseNot gradedqualityAmaintenanceEnables querying ClinGen curated evidence for gene-disease validity, dosage, actionability, and variant pathogenicity via MCP tools.MIT
- AlicenseNot gradedqualityAmaintenanceFederates 13 gene-related MCP backends (gnomAD, GTEx, etc.) behind a single Streamable HTTP endpoint with collision-free namespacing and search-based tool discovery.6MIT