← Tutorials

How to Query ClinVar and gnomAD Using MCP (Step-by-Step Guide for Life Scientists)

Published Oct 30, 2026

0 0 Link copied

1. Introduction: Why Life Scientists Need MCP for Variant Interpretation

  • The Problem: Manually cross-referencing genetic variants across ClinVar, gnomAD, Ensembl, and OMIM to assess pathogenicity (using ACMG guidelines) is tedious, repetitive, and time-consuming. Researchers waste hours copying and pasting coordinates between browser portals.
  • The Solution: Model Context Protocol (MCP) acts as a secure data bridge, allowing Claude to talk directly to genomic databases in real time. Instead of relying on static training memory, Claude can instantly fetch population allele frequencies and clinical assertions for any variant you provide.

This guide uses the open-source gnomAD genetics MCP server listed in the BenchNBots directory. It combines gnomAD population data from the Broad Institute with ClinVar clinical significance from NCBI.

Research use only: The results are for research and education. They are not a clinical variant classification. Applying the ACMG/AMP guidelines to a patient's variant still needs review by a qualified expert.

2. What You Will Achieve in This Tutorial

By the end of this guide, you will:

  1. Connect Claude Desktop to a live gnomAD and ClinVar server.
  2. Query specific genetic variants via natural language chat.
  3. Automatically aggregate allele frequencies, disease associations, and supporting evidence into a structured markdown report.

3. Prerequisites: What Is Needed

Before getting started, make sure you have:

  • The Claude Desktop App installed on macOS or Windows (Option A also works on claude.ai in your browser).
  • 5 minutes of setup time.
  • For Option B only: Node.js version 24 or later installed on your computer (downloadable for free from nodejs.org).

4. Which Setup Option Should You Choose?

There are two ways to connect Claude to gnomAD and ClinVar. Both give Claude the same variant tools.

Option A: Connector (recommended) Option B: Config file (advanced)
What you do Add one URL in Claude's connector settings Edit a JSON file and restart Claude
Install needed None Node.js 24 or later
Where the server runs A public server hosted by the server's developer On your own computer
Works on Claude Desktop and claude.ai Claude Desktop only
Setup time About 2 minutes About 5 minutes

Choose Option A if you want the quickest setup. Choose Option B if you'd rather your variant queries don't pass through a third-party server, or your organisation doesn't allow custom connectors.

5. Option A: Add gnomAD & ClinVar as a Connector (No Install)

Prefer to watch? This 56-second video with voiceover shows every step below, from opening Customize to Claude's first variant report.

▶ Watch this video on YouTube

Step 1: Open Your Connectors

In Claude Desktop (or on claude.ai), click Customize in the sidebar and select the Connectors tab.

Claude's Customize page with Customize selected in the sidebar, the Connectors tab open, and the Add button highlighted

Step 2: Add a Custom Connector

Click + Add, then Add custom connector.

The Add menu on Claude's Customize page showing the Add custom connector option

Fill in the form and click Continue:

  • Name: gnomAD & ClinVar
  • MCP server URL:
https://gnomad-genetics.caseyjhand.com/mcp

The Add custom connector form filled in with the name gnomAD & ClinVar and the gnomAD MCP server URL

Step 3: Keep "No sign-in" and Click Add

Claude detects that this server needs no account and selects No sign-in for you. Leave it as it is and click Add. No API key is needed.

The connector authentication options with No sign-in selected and detected, and the Add button highlighted

Step 4: Connect

Click Connect on the new connector page.

The gnomAD & ClinVar connector page saying you're not connected yet, with the Connect button highlighted

You'll see Connected to gnomAD & ClinVar and the server's 7 read-only tools, including get variant, get gene constraint, and search clinvar. They are set to Needs approval, so Claude asks before each lookup.

The connected gnomAD & ClinVar connector showing its read-only tools set to Needs approval

Step 5: Turn the Connector On in a Chat

Start a new chat, click + below the message box, open Connectors, and make sure gnomAD & ClinVar is switched on. Then go to Run Your First Test Prompt.

The chat tools menu with Connectors open and the gnomAD & ClinVar connector switched on

6. Option B: Run the Variant Server on Your Computer (Advanced)

Step 1: Open Your Claude Desktop Configuration File

The easiest way to open it on any computer is in Claude Desktop: go to Settings → Developer → Edit Config. This creates the file if it doesn't exist yet.

  • For macOS users: If you use VS Code, you can also open your terminal and paste this command:
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
  • For Windows users: Press Win + R, paste %APPDATA%\Claude, and open claude_desktop_config.json in any text editor.

Step 2: Add the Variant Annotation MCP Configuration

Copy and paste the following snippet into your configuration file:

{
  "mcpServers": {
    "gnomad": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/gnomad-genetics-mcp-server"
      ]
    }
  }
}

If your file already has an "mcpServers" section, add the "gnomad" entry inside it instead of pasting a second one.

Save and close the file.

Step 3: Restart Claude Desktop

Completely quit the Claude Desktop app (ensure it is closed from your system tray or menu bar) and reopen it so it can load the new variant tool.

7. Run Your First Test Prompt

Whichever option you chose, paste this exact prompt into a new chat to test your setup:

"Query ClinVar and gnomAD for variant information regarding the BRCA1 c.5266dupC (p.Gln1756ProfsTer74) mutation. Retrieve its clinical significance, review status, and global population allele frequencies, and summarize the findings in a clean markdown table."

Claude asks before using each tool, showing exactly what it will look up. Here it first converts the variant to its dbSNP ID, rs80357906, and checks it in gnomAD v4. Click Allow once each time, or Always allow if you don't want to be asked again. A detailed question like this one can take several lookups.

Claude asking permission to use the gnomAD get variant tool for rs80357906, with Allow once highlighted

8. Expected Outcomes

When working correctly, Claude will query the live gnomAD and ClinVar databases instead of relying on static training memory, and output a structured report with the variant's official ClinVar classification and real-world allele frequencies.

For this variant, Claude reports that ClinVar classifies BRCA1 c.5266dupC as Pathogenic, reviewed by an expert panel (3 stars), under ClinVar variation ID 17677.

Claude's answer marked Used gnomAD & ClinVar, with a ClinVar table showing the variant as Pathogenic and reviewed by expert panel

It then adds gnomAD v4 allele frequencies by ancestry: 109 of about 1.6 million alleles overall, and about 20 times more common in Ashkenazi Jewish individuals, consistent with its known role as a founder variant (also called 5382insC).

The gnomAD v4 allele frequency table by ancestry group, with the overall and Ashkenazi Jewish rows highlighted

We checked these numbers directly against the gnomAD and ClinVar databases, and they match. Still, check the linked ClinVar record and gnomAD variant page before you rely on a result.

9. Troubleshooting & FAQs

Q: I can't find "Add custom connector" (Option A).

Fix: On Team and Enterprise plans, only organisation owners can add custom connectors, so ask your admin to add it. If connectors are turned off for your organisation, use Option B instead.

Q: Claude says "Tool execution failed" or cannot find the tool (Option B).

Fix: Ensure Node.js 24 or later is installed (run node --version to check) and that your configuration file contains valid JSON formatting (no trailing commas or unclosed brackets).

Q: Can I analyze private patient VCF files this way?

A: Not with this server. It only queries the public gnomAD and ClinVar databases. With Option A, your variant queries also pass through the developer's hosted server, and with either option, your prompts and results are processed by Claude like any other conversation. Don't put patient identifiers or private genomic data into your prompts. For private clinical data, teams typically run their own MCP server inside their secure environment.

10. Quick Quiz: Test Your Knowledge

  1. True or False: Variant MCP servers allow Claude to fetch real-time population allele frequencies from databases like gnomAD. (Answer: True)
  2. Which setup option needs no software installed on your computer? (Answer: Option A, adding the server as a custom connector.)
  3. What local file do you edit to add an MCP server to Claude Desktop? (Answer: claude_desktop_config.json)
  4. What is the major advantage of using variant MCPs over standard text chatting? (Answer: Direct access to live clinical database records and accurate genomic coordinates, instead of the model's memory.)

Taxonomies