gnomAD MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
uv sync
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add gnomad -- node "<FULL_PATH_TO_GNOMAD_MCP>/dist/index.js"

Replace <FULL_PATH_TO_GNOMAD_MCP>/dist/index.js with the actual folder you prepared in step 1.

README.md

Programmatic interface to the Genome Aggregation Database (gnomAD) API

gnomAD MCP Server

Overview

This MCP server provides a programmatic interface to the Genome Aggregation Database (gnomAD) API, supporting multiple API versions (v2.1.1, v3.1.2, v4.1.0).
It abstracts version-specific field and schema differences, exposing a unified API for downstream tools and users.

Status

🚧 Under Active Development 🚧

This project is under active development. APIs and features may change without notice.

Supported gnomAD API Versions

  • v4.1.0 (gnomad_r4)
  • v3.1.2 (gnomad_r3)
  • v2.1.1 (gnomad_r2_1)

Supported Queries by Version

The following table summarizes which queries are available for each gnomAD API version:

Query Type Description v2 v3 v4
get_gene_info Retrieve gene metadata and constraint metrics (direct lookup by gene_id/gene_symbol) āŒ āŒ āœ…
get_region_info Retrieve variant and summary information for a genomic region āŒ āŒ āœ…
get_variant_info Retrieve variant metadata and population frequency data (by variantId) āœ… āœ… āœ…
get_clinvar_variant_info Retrieve ClinVar variant data and clinical significance āœ… āœ… āœ…
get_mitochondrial_variant_info Retrieve mitochondrial variant data and population frequencies āŒ āŒ āœ…
get_structural_variant_info Retrieve structural variant (SV) data and population frequencies āœ… āŒ āœ…
get_copy_number_variant_info Retrieve copy number variant (CNV) data and population frequencies āŒ āŒ āœ…
search_for_genes Search for genes by symbol or name (no direct gene_id lookup in v2/v3) āœ… āœ… āœ…
search_for_variants Search for variants by ID, gene, or region āœ… āœ… āœ…
get_str_info Retrieve short tandem repeat (STR) data and population frequencies āŒ āŒ āœ…
get_all_strs Retrieve all STRs in the dataset āŒ āŒ āœ…
get_variant_liftover Retrieve liftover mapping for a variant between genomes āœ… āŒ āŒ
get_metadata Retrieve gnomAD browser metadata and API version info āœ… āœ… āœ…
  • āœ… = Supported in this version
  • āŒ = Not supported in this version

Dependencies

  • Python >= 3.13
  • aiohttp >= 3.11.18
  • fastmcp >= 2.2.1
  • gql >= 3.5.2
  • httpx >= 0.28.1
  • mcp[cli] >= 1.6.0
  • nest-asyncio >= 1.6.0
  • pytest >= 8.3.5
  • pytest-asyncio >= 0.26.0

Directory Structure

.
ā”œā”€ā”€ gnomad/              # Main package
│   ā”œā”€ā”€ __init__.py
│   ā”œā”€ā”€ types.py         # Type definitions
│   ā”œā”€ā”€ queries/         # GraphQL query templates
│   │   ā”œā”€ā”€ v2/         # v2.1 specific queries
│   │   ā”œā”€ā”€ v3/         # v3 specific queries
│   │   └── v4/         # v4 specific queries
│   └── schemas/         # Versioned schema files
ā”œā”€ā”€ tests/               # Test code and data
│   ā”œā”€ā”€ input/          # Test input data
│   │   ā”œā”€ā”€ analyzed_schemas/  # Analyzed schema data
│   │   ā”œā”€ā”€ schema2query/     # Schema to query conversion
│   │   └── schemas/          # Raw schema files
│   ā”œā”€ā”€ output/         # Test output data
│   │   ā”œā”€ā”€ server/     # Server test outputs
│   │   ā”œā”€ā”€ v2/         # v2.1 test outputs
│   │   ā”œā”€ā”€ v3/         # v3 test outputs
│   │   └── v4/         # v4 test outputs
│   ā”œā”€ā”€ scripts/        # Test utility scripts
│   └── tests/          # Additional test modules
ā”œā”€ā”€ server.py           # FastMCP server entrypoint
ā”œā”€ā”€ pyproject.toml      # Project metadata
ā”œā”€ā”€ README.md           # This file
└── README_tests.md     # Testing documentation

Setup

Install dependencies

uv sync

Activate the virtual environment

. .venv/bin/activate

Test the server

uv --directory ./ run mcp dev server.py

Add the MCP server to your MCP server list (Claude, Cursor, etc.)

{
    "mcpServers": {
      "gnomad": {
        "command": "uv",
        "args": ["--directory", "where you cloned the repo", "run", "server.py"],
        "env": {}
      }
    }
}

Run tests

Please see README_tests.md

Query & API Design

  • Uses the QueryTemplateEngine pattern to manage version-specific GraphQL query templates.
  • Currently, queries are fixed; see (./gnomad/queries)
  • MCP tool endpoints are documented with detailed parameter and output descriptions.

License

This MCP server itself is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE

Tools (5)

get_gene_infoRetrieve gene metadata and constraint metrics by gene_id or gene_symbol.
get_variant_infoRetrieve variant metadata and population frequency data by variantId.
get_clinvar_variant_infoRetrieve ClinVar variant data and clinical significance.
search_for_genesSearch for genes by symbol or name.
search_for_variantsSearch for variants by ID, gene, or region.

Configuration

claude_desktop_config.json
{"mcpServers": {"gnomad": {"command": "uv", "args": ["--directory", "where you cloned the repo", "run", "server.py"], "env": {}}}}

Try it

→Search for the gene BRCA1 and retrieve its metadata and constraint metrics.
→Get variant information for the variant ID rs123456789.
→Find clinical significance data for the variant associated with ClinVar ID 12345.
→Search for genes related to the symbol 'TP53'.

Frequently Asked Questions

What are the key features of gnomAD MCP Server?

Unified API access to gnomAD versions v2.1.1, v3.1.2, and v4.1.0. Supports gene metadata and constraint metric lookups. Provides variant metadata and population frequency data. Integrates ClinVar variant data and clinical significance. Enables searching for genes and variants by symbol, name, or ID.

What can I use gnomAD MCP Server for?

Quickly looking up gene constraint metrics during genomic data analysis. Retrieving population frequency data for specific variants in research studies. Cross-referencing clinical significance of variants using ClinVar data. Automating the retrieval of variant metadata for bioinformatics pipelines.

How do I install gnomAD MCP Server?

Install gnomAD MCP Server by running: uv sync

What MCP clients work with gnomAD MCP Server?

gnomAD MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep gnomAD MCP Server docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare