# RCSB PDB

> RCSB PDB is an open-source MCP server for health and science. Search, inspect and cross-reference Protein Data Bank structures across three RCSB APIs. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Linux, macOS, Windows
- **Repository:** https://github.com/rcsb/rcsb-mcp
- **MCP Registry name:** io.github.rcsb/rcsb-mcp
- **Categories:** [health and science](https://ai-powered.com/categories/health-and-science)
- **Listing updated:** 2026-11-23

## About

The server is organised around three jobs: discover structures with the RCSB Search API, inspect them with the Data API's GraphQL, and relate sequences and positional features across PDB, UniProt and NCBI with the Sequence Coordinates API. Searching takes two steps. Builder tools such as rcsb_query_fulltext, rcsb_query_attribute, rcsb_query_sequence, rcsb_query_chemical, rcsb_query_structure and the sequence and structural motif builders only produce a query document, and nothing is searched until rcsb_search_request runs it and returns identifiers.

A composer joins queries with AND and OR, which is how a single search mixes services, such as sequence similarity plus an organism filter. Output options include counting through total_count, facets, grouping into sequence-identity clusters, sorting and paging up to 100 results, with an all_hits option capped at 10,000. Helper tools resolve plain-language terms to Gene Ontology, InterPro and Pfam, Enzyme Commission, disease (MONDO) and NCBI taxonomy ids, each annotated with PDB entry counts.

On the Data side there is one tool per GraphQL root field for entries, polymer and non-polymer entities, chains and more, each taking a list of IDs and an optional fields override, with a schema describer so field names are verified. It runs over stdio from PyPI as rcsb-mcp.

## Features

- **Two-step search:** Build a query document, then run it with a single request tool.
- **Seven search types:** Keyword, attribute, sequence, chemical, 3D shape and two motif searches.
- **Term resolvers:** Map plain text to GO, InterPro, EC, disease and organism ids.
- **Counting and facets:** Read total counts and facet breakdowns as search options.
- **Data API tools:** Fetch entries, entities, chains and ligands by ID with custom fields.
- **Cross-database mapping:** Relate sequence features across PDB, UniProt and NCBI.

## Good for

- Find structures by sequence similarity and organism
- Count how many entries match a search
- Look up a ligand or entity by PDB ID
- Search for a catalytic triad structural motif
- Map a UniProt position to PDB residues

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add rcsb-mcp -- uvx rcsb-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "rcsb-mcp": {
      "command": "uvx",
      "args": [
        "rcsb-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "rcsb-mcp": {
      "command": "uvx",
      "args": [
        "rcsb-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "rcsb-mcp": {
      "command": "uvx",
      "args": [
        "rcsb-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "rcsb-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "rcsb-mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add rcsb-mcp -- uvx rcsb-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.rcsb-mcp]
command = "uvx"
args = ["rcsb-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "rcsb-mcp": {
      "command": "uvx",
      "args": [
        "rcsb-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user rcsb-mcp uvx -- rcsb-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "rcsb-mcp": {
      "command": "uvx",
      "args": [
        "rcsb-mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "rcsb-mcp": {
      "command": "uvx",
      "args": [
        "rcsb-mcp"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "rcsb-mcp": {
      "command": "uvx",
      "args": [
        "rcsb-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "rcsb-mcp": {
      "command": "uvx",
      "args": [
        "rcsb-mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "rcsb-mcp": {
      "command": "uvx",
      "args": [
        "rcsb-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "rcsb-mcp": {
      "command": "uvx",
      "args": [
        "rcsb-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "rcsb-mcp": {
      "command": "uvx",
      "args": [
        "rcsb-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "rcsb-mcp": {
      "command": "uvx",
      "args": [
        "rcsb-mcp"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, all 12 tools only read data. From the server's own tool labels and tool names; not verified by us.

- `rcsb_query_fulltext` (name suggests: reads): Builds a free-text keyword query.
- `rcsb_query_attribute` (name suggests: reads): Builds a structured query on indexed attributes.
- `rcsb_query_sequence` (name suggests: reads): Builds a sequence-similarity query.
- `rcsb_query_chemical` (name suggests: reads): Builds a chemical query by SMILES, InChI or formula.
- `rcsb_query_structure` (name suggests: reads): Builds a 3D shape-similarity query.
- `rcsb_query_seqmotif` (name suggests: reads): Builds a sequence-motif query.
- `rcsb_query_strucmotif` (name suggests: reads): Builds a 3D structural-motif query.
- `rcsb_query_composer` (name suggests: reads): Joins query documents with AND or OR.
- `rcsb_search_request` (name suggests: reads): Executes a query document and returns identifiers.
- `rcsb_list_pdb_search_attributes` (name suggests: reads): Lists searchable attribute paths, types and operators.
- `rcsb_get_entries` (name suggests: reads): Fetches PDB entries by ID.
- `rcsb_describe_data_object` (name suggests: reads): Describes data fields to use in custom selections.

## FAQ

### Does RCSB PDB need an API key?

The registry lists no environment variables, so none is required.

### How is a search run?

Build a query with an rcsb_query tool, then execute it with rcsb_search_request.

### What does search return?

Identifiers only; details come from the Data API tools.

### How is RCSB PDB installed?

From PyPI as rcsb-mcp over stdio.

### Is RCSB PDB free?

Yes. RCSB PDB is open source, so you can use and self-host it for free.

### How do I add RCSB PDB to Claude Code?

Run this command in your terminal: claude mcp add rcsb-mcp -- uvx rcsb-mcp

### What are the best alternatives to RCSB PDB?

The closest alternatives to RCSB PDB are Tooluniverse, Oya Browser, BasalFit, KidneyWatch Renal Diet (CKD) Food Check and Alpha-Gal Watch: Alpha-Gal Syndrome Food Check.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Tooluniverse](https://ai-powered.com/mcp/tooluniverse): Tooluniverse is an open-source MCP server for health and science.
- [Oya Browser](https://ai-powered.com/mcp/oya-browser): Oya Browser is a freemium MCP server for browser automation.
- [BasalFit](https://ai-powered.com/mcp/basalfit): BasalFit is a free MCP server for health and science.
- [KidneyWatch Renal Diet (CKD) Food Check](https://ai-powered.com/mcp/kidneywatch-renal-diet-ckd-food-check): KidneyWatch Renal Diet (CKD) Food Check is an MCP server for mcp data access.
- [Alpha-Gal Watch: Alpha-Gal Syndrome Food Check](https://ai-powered.com/mcp/alpha-gal-watch-alpha-gal-syndrome-food-check): Alpha-Gal Watch: Alpha-Gal Syndrome Food Check is an MCP server for food and drink.
- [Renal Diet (CKD) and Alpha-Gal Syndrome Food Check](https://ai-powered.com/mcp/renal-diet-ckd-and-alpha-gal-syndrome-food-check): Renal Diet (CKD) and Alpha-Gal Syndrome Food Check is an MCP server for mcp data access.
- [Diochi — bylinné přípravky, kluby a Sféra](https://ai-powered.com/mcp/diochi-bylinne-pripravky-kluby-a-sfera): Diochi — bylinné přípravky, kluby a Sféra is an MCP server for health and science.
- [ClinicalTrials.gov Biotech Sponsor & PI Emails MCP](https://ai-powered.com/mcp/clinicaltrials-gov-biotech-sponsor-and-pi-emails-mcp): ClinicalTrials.gov Biotech Sponsor & PI Emails MCP is a paid MCP server for sales and crm.

---
Source: https://ai-powered.com/mcp/rcsb-pdb-2
