RCSB PDB
Search, inspect and cross-reference Protein Data Bank structures across three RCSB APIs
RCSB PDB is an open-source MCP server for health and science. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, Linux, macOS
- Runs
- Locally
- What it can do
- Read-only
- Version
- 0.23.0
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add rcsb-mcp -- uvx rcsb-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"rcsb-mcp": {
"command": "uvx",
"args": [
"rcsb-mcp"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"rcsb-mcp": {
"command": "uvx",
"args": [
"rcsb-mcp"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"rcsb-mcp": {
"command": "uvx",
"args": [
"rcsb-mcp"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
codex mcp add rcsb-mcp -- uvx rcsb-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.rcsb-mcp]
command = "uvx"
args = ["rcsb-mcp"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"rcsb-mcp": {
"command": "uvx",
"args": [
"rcsb-mcp"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "rcsb-mcp": { "command": "uvx", "args": [ "rcsb-mcp" ] } } }Or run: gemini mcp add -s user rcsb-mcp uvx -- rcsb-mcp
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "rcsb-mcp": { "command": "uvx", "args": [ "rcsb-mcp" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.json
{ "mcpServers": { "rcsb-mcp": { "command": "uvx", "args": [ "rcsb-mcp" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "rcsb-mcp": { "command": "uvx", "args": [ "rcsb-mcp" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "rcsb-mcp": { "command": "uvx", "args": [ "rcsb-mcp" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "rcsb-mcp": { "command": "uvx", "args": [ "rcsb-mcp" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About RCSB PDB
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.
Tools this server provides (12)
Taken from the project documentation; the running server may differ.
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_fulltextName suggests: reads
- Builds a free-text keyword query.
- rcsb_query_attributeName suggests: reads
- Builds a structured query on indexed attributes.
- rcsb_query_sequenceName suggests: reads
- Builds a sequence-similarity query.
- rcsb_query_chemicalName suggests: reads
- Builds a chemical query by SMILES, InChI or formula.
- rcsb_query_structureName suggests: reads
- Builds a 3D shape-similarity query.
- rcsb_query_seqmotifName suggests: reads
- Builds a sequence-motif query.
- rcsb_query_strucmotifName suggests: reads
- Builds a 3D structural-motif query.
- rcsb_query_composerName suggests: reads
- Joins query documents with AND or OR.
- rcsb_search_requestName suggests: reads
- Executes a query document and returns identifiers.
- rcsb_list_pdb_search_attributesName suggests: reads
- Lists searchable attribute paths, types and operators.
- rcsb_get_entriesName suggests: reads
- Fetches PDB entries by ID.
- rcsb_describe_data_objectName suggests: reads
- Describes data fields to use in custom selections.
What it does
- 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
Pricing
Open source
Free to run; public RCSB APIs
RCSB PDB 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.
