← Tutorials

How to Query Genome Portals and Sequence Data 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 Genome Portals

  • The Problem: Exploring reference genomes typically means navigating heavy web portals (like Ensembl, NCBI, or the UCSC Genome Browser), writing REST API calls, or parsing GTF and BED annotation files just to check a gene's coordinates or its transcripts.
  • The Solution: Model Context Protocol (MCP) bridges the gap between AI assistants and foundational biological databases. Instead of clicking through a genome browser, you can ask Claude in plain English to look up genes, pull reference sequences, or list the features in a genomic region, and it fetches the answer from the live database.

This guide uses the open-source Ensembl MCP server listed in the BenchNBots directory. It connects Claude to the Ensembl REST API, covering humans, other vertebrates, and model organisms. Its tools can:

  • look up a gene by symbol or Ensembl ID, with its location, biotype, and transcripts
  • fetch DNA, cDNA, CDS, or protein sequences
  • find genes, transcripts, variants, and regulatory features in a genomic region
  • predict a variant's effect with the Ensembl Variant Effect Predictor (VEP)
  • find orthologs and paralogs across species
  • retrieve cross-references to HGNC, UniProt, RefSeq, OMIM, and other databases

2. What You Will Achieve in This Tutorial

By the end of this guide, you will:

  1. Connect Claude Desktop to the live Ensembl genome database.
  2. Retrieve gene models, transcripts, and genomic coordinates via natural language chat.
  3. Get sequence data and database cross-references formatted cleanly in your chat.

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 Ensembl. Both give Claude the same genome 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 queries don't pass through a third-party server, or your organisation doesn't allow custom connectors.

5. Option A: Add Ensembl 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 gene summary.

▶ 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: Ensembl
  • MCP server URL:
https://ensembl.caseyjhand.com/mcp

The Add custom connector form filled in with the name Ensembl and the Ensembl 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 Ensembl connector page saying you're not connected yet, with the Connect button highlighted

You'll see Connected to Ensembl and the server's 7 read-only tools, including Lookup Gene, Get Sequence, and Query Genomic Region. They are set to Needs approval, so Claude asks before each lookup.

The connected Ensembl connector showing its 7 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 Ensembl is switched on. Then go to Run Your First Test Prompt.

The chat tools menu with Connectors open and the Ensembl connector switched on

6. Option B: Run the Ensembl 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 Ensembl MCP Configuration

Copy and paste the following snippet into your configuration file:

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

If your file already has an "mcpServers" section, add the "ensembl" 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 genome tools.

7. Run Your First Test Prompt

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

"Look up the human TP53 gene using Ensembl. Give me its Ensembl stable ID, GRCh38 coordinates and strand, biotype, the number of transcripts and the canonical transcript, plus its HGNC and UniProt cross-references, in a clean markdown summary table."

Claude asks before using each tool, showing exactly which gene and species it will look up. Click Allow once each time, or Always allow if you don't want to be asked again. For this prompt, Claude looks up the gene first, then fetches its HGNC and UniProt cross-references, so expect three approvals. The cross-reference lookups can take a minute.

Claude asking permission to use the Ensembl Lookup Gene tool for TP53 in homo_sapiens, with Allow once highlighted

8. Expected Outcomes

When working correctly, Claude queries the live Ensembl database instead of relying on its training memory, and returns a summary table like this one:

Field Value
Ensembl stable ID ENSG00000141510
Location (GRCh38) chr17:7,661,779–7,687,546, reverse strand
Biotype protein_coding
Transcripts 40 (34 protein-coding)
Canonical transcript ENST00000269305 (TP53-201), 2,512 bp
HGNC HGNC:11998
UniProt P04637 (Cellular tumor antigen p53)

Claude's answer: a TP53 summary table from Ensembl with the stable ID, location and canonical transcript highlighted

We checked every value directly against the Ensembl REST API, and they match. Ensembl updates its gene models with each release, so transcript counts can change over time. Check the gene's Ensembl page before you rely on a result.

Why not ask for protein domains? This server covers genes, sequences, regions, variants, homology, and cross-references, but not protein domains. If you ask for domains, Claude would have to answer from memory. Use the UniProt accession it returns to look domains up in UniProt or InterPro.

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 query mouse, zebrafish, or plant genomes?

A: Yes. Name the species in your prompt, for example "Look up Brca1 in mouse". The server covers the Ensembl vertebrate species by default and can also list species in Ensembl Plants, Fungi, Metazoa, and Protists.

Q: Can I run sequence alignment tools like BLAST or BWA this way?

A: Not with this server. It only reads data from Ensembl. Running BLAST, BWA, or other command-line tools from chat needs a separate MCP server built for that tool. Check the MCP directory for options, and only install servers from developers you trust, since they run commands on your computer.

10. Quick Quiz: Test Your Knowledge

  1. True or False: A genome portal MCP server lets Claude query live databases like Ensembl instead of relying only on its training data. (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 main advantage of using a genome portal MCP over manual web browsing? (Answer: Instant retrieval of precise coordinates, transcripts, and sequence features directly inside your chat.)

Taxonomies