← Tutorials

How to Query Protein Structures and AlphaFold Databases 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 Structural Biology

  • The Problem: Analyzing protein structures usually means switching between web browsers (RCSB PDB, AlphaFold DB), downloading coordinate files manually, and writing custom PyMOL or BioPython scripts just to inspect active sites or parse confidence scores.
  • The Solution: Model Context Protocol (MCP) acts as a bridge between your AI assistant and structural databases. Instead of navigating complex portals manually, you can ask Claude to check structure availability, report confidence scores, and look up domains and ligands in plain English.

This guide uses the open-source protein MCP server listed in the BenchNBots directory. It connects Claude to experimental structures in the PDB and predicted models in AlphaFold DB. Its tools can:

  • search experimental and predicted structures by text, sequence, organism, method, or resolution
  • fetch structure metadata, confidence scores, and coordinate file links
  • find sequence and fold homologs
  • find structures containing a ligand and map its binding site
  • align and compare structures
  • retrieve UniProt features and InterPro domains

Research use only: A prediction is a model, not an experimental result. Check it against experimental structures before you rely on it for design or interpretation.

2. What You Will Achieve in This Tutorial

By the end of this guide, you will:

  1. Connect Claude Desktop to live PDB and AlphaFold data.
  2. Query protein predictions and structural metadata using UniProt identifiers or PDB codes.
  3. Get clean structural summaries and confidence metrics directly 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 these structure databases. Both give Claude the same 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 Protein Structures 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 structure 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: Protein Structures
  • MCP server URL:
https://protein.caseyjhand.com/mcp

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

You'll see Connected to Protein Structures and the server's 7 read-only tools, including get structure, search structures, and track ligands. They are set to Needs approval, so Claude asks before each lookup.

The connected Protein Structures 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 Protein Structures is switched on. Then go to Run Your First Test Prompt.

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

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

Copy and paste the following snippet into your configuration file:

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

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

7. Run Your First Test Prompt

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

"Check the AlphaFold database availability for the human TP53 protein (UniProt ID: P04637). Retrieve its prediction metadata, overall confidence metrics, and summarize its structural reliability features in a clean markdown table."

Claude asks before using each tool, showing exactly which protein it will look up. Click Allow once each time, or Always allow if you don't want to be asked again. In our run, Claude fetched the structure first and then its InterPro domains, so expect about two approvals.

Claude asking permission to use the get structure tool for P04637 from the Protein Structures connector, with Allow once highlighted

8. Expected Outcomes

When working correctly, Claude queries live AlphaFold DB data instead of relying on its training memory. It first confirms the entry, AF-P04637-F1, covering all 393 residues, with links to the coordinate files and the predicted aligned error (PAE) matrix.

Claude's answer marked Used Protein Structures, with a metadata table showing AlphaFold entry AF-P04637-F1 and a mean pLDDT of 75.1

It then reports how confident the model is. pLDDT is AlphaFold's per-residue confidence score from 0 to 100. The mean for this model is 75.1, split like this:

pLDDT band Share of residues
Very high (above 90) 52.7%
Confident (70–90) 7.1%
Low (50–70) 10.4%
Very low (below 50) 29.8%

Claude's table of pLDDT confidence bands for the TP53 model, showing the share of residues in each band

We checked these values against the AlphaFold DB API, and they match. Models are updated over time, so these numbers can change. Check the AlphaFold DB entry before you rely on a result.

Claude also adds a table of reliability by domain, using domain positions from InterPro.

Claude's table of expected reliability by TP53 domain, with the DNA-binding core rated very high

Read this table carefully. Claude says plainly that the reliability column is its own reading of the overall scores, because it hadn't checked the model residue by residue. So we did, using AlphaFold's per-residue confidence file:

Region (residues) Claude's expected reliability Measured mean pLDDT
Transactivation domains (6–59) Low / very low 48.1
Proline-rich linker (60–94) Very low 50.6
DNA-binding core (95–294) Very high 95.0
Linker (295–318) Low 44.7
Tetramerisation domain (319–360) Confident to high 81.3
C-terminal region (361–393) Very low 42.9

Claude's overall picture holds up: a very reliable core with flexible ends. Some labels are slightly off, though. The linker at 295–318 is actually in the very low band, and the proline-rich linker sits right on the line between low and very low. This is a good habit to keep: separate what a tool returned from what Claude inferred, and check inferences that matter.

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 view the actual 3D models directly from chat?

A: Not with this server by itself. It returns metadata, confidence scores, and links to coordinate files (mmCIF, PDB, and BinaryCIF). Download a file from those links and open it in a viewer like PyMOL or ChimeraX, or view the entry on the AlphaFold DB or RCSB PDB website.

Q: Should I use the AlphaFold model or an experimental structure?

A: Where a good experimental structure exists, it's usually the better choice. Ask Claude to check both, for example "Find the highest-resolution PDB structures of the p53 DNA-binding domain". AlphaFold models are single-chain predictions like the one in this tutorial, so they won't show how a protein assembles with partners.

10. Quick Quiz: Test Your Knowledge

  1. True or False: Structural MCP servers let Claude query live protein predictions and confidence scores from databases like AlphaFold 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 does a very low pLDDT score (below 50) usually tell you about a region? (Answer: The prediction is unreliable there, and the region is often disordered, so don't read a fixed shape into it.)
  5. What is the main advantage of using a structural MCP over manual web browsing? (Answer: Instant retrieval of confidence metrics and structural metadata directly inside your chat.)

Taxonomies