RCSB PDB MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@RCSB PDB MCP ServerGet information about PDB entry 4HHB"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
RCSB PDB MCP Server
An MCP (Model Context Protocol) server that provides tools for interacting with the RCSB Protein Data Bank API.
Overview
This server exposes tools for:
Querying PDB entry information
Retrieving polymer entity details
Downloading structure files in various formats
Making custom API queries to RCSB Data API
Related MCP server: Protein MCP Server
Installation
Install dependencies using uv:
uv syncOr with pip:
pip install -e .Running the Server
As a Standalone Server
python server.pyWith Claude Desktop
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"rcsb-pdb": {
"command": "uv",
"args": [
"--directory",
"/Users/cnyambura/Documents/rcsb_api/api/rcsb-mcp",
"run",
"server.py"
]
}
}
}After adding the configuration, restart Claude Desktop.
Available Tools
1. get_pdb_entry
Get comprehensive information about a PDB entry.
Parameters:
pdb_id(string): 4-character PDB identifier (e.g., '1ABC', '7BQY')
Returns: JSON with structure information including title, experimental method, resolution, dates, authors, and source organism.
Example:
get_pdb_entry("1ABC")2. get_polymer_entity
Get information about a polymer entity (protein, DNA, RNA) within a PDB entry.
Parameters:
pdb_id(string): 4-character PDB identifierentity_id(string, optional): Entity number (default: "1")
Returns: JSON with molecule name, sequence, molecular weight, entity type, and source organism.
Example:
get_polymer_entity("1ABC", "1")3. download_structure_file
Download a structure file from RCSB PDB.
Parameters:
pdb_id(string): 4-character PDB identifierfile_format(string, optional): Format to download (default: "pdb")pdb: PDB formatcif: mmCIF formatxml: PDBML/XML formatpdb.gz: Compressed PDBcif.gz: Compressed mmCIFxml.gz: Compressed XML
output_dir(string, optional): Directory to save the filefilename(string, optional): Custom filename
Returns: JSON with download status and file path.
Example:
download_structure_file("1ABC", "pdb", "/path/to/output")4. query_rcsb_api
Make a custom query to the RCSB Data API.
Parameters:
endpoint(string): API endpoint path (e.g., 'assembly/1ABC-1', 'uniprot/P12345')params(string, optional): JSON string of query parameters
Common endpoints:
entry/{pdb_id}: Entry-level informationpolymer_entity/{pdb_id}_{entity_id}: Polymer entity infoassembly/{pdb_id}-{assembly_id}: Biological assembly infononpolymer_entity/{pdb_id}_{entity_id}: Small molecule/ligand infouniprot/{uniprot_id}: UniProt cross-reference
Returns: JSON containing the API response.
Example:
query_rcsb_api("assembly/1ABC-1")5. search_pdb_by_organism
Get information about how to search for PDB entries by organism.
Parameters:
organism(string): Organism name (e.g., 'Homo sapiens', 'E. coli')
Returns: Instructions and example queries for searching by organism.
Example Usage with Claude
Once connected to Claude Desktop, you can ask:
"Get information about PDB entry 1ABC"
"Download the structure file for 7BQY in mmCIF format"
"Show me the polymer entity details for PDB 4HHB entity 1"
"Query the assembly information for 1ABC assembly 1"
Project Structure
rcsb-mcp/
├── rcsb_api.py # Core RCSB API functions
├── server.py # FastMCP server implementation
├── pyproject.toml # Project dependencies
└── README.md # This fileAPI Documentation
For more information about the RCSB Data API, visit:
License
MIT
Available Tools
5 toolsdownload_structure_fileA
Download a structure file from RCSB PDB.
Args: pdb_id: The 4-character PDB identifier (e.g., '1ABC') file_format: Format to download. Options: - 'pdb': PDB format (default) - 'cif': mmCIF format - 'xml': PDBML/XML format - 'pdb.gz': Compressed PDB - 'cif.gz': Compressed mmCIF - 'xml.gz': Compressed XML output_dir: Directory to save the file (optional, defaults to current directory) filename: Custom filename (optional, uses PDB ID + extension by default)
Returns: JSON string with download status and file path
| Name | Required | Description | Default |
|---|---|---|---|
| pdb_id | Yes | ||
| filename | No | ||
| output_dir | No | ||
| file_format | No | pdb |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden of behavioral disclosure. It states that the tool downloads a file and returns a JSON string with status and file path, and it explains the output_dir and filename parameters, implying file system writes. It does not mention potential side effects like overwriting existing files or network requirements, but these are reasonable assumptions for a download tool. The description is not contradictory and provides adequate transparency for safe invocation.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is structured as a clear docstring with Args and Returns sections. It is not overly verbose, and each sentence provides necessary information. The main purpose is front-loaded, and the parameter details are organized logically. While it is longer than a one-liner, the detail is justified for the tool's functionality.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description covers all parameters, provides return information, and explains file format options. It is complete for a download tool, and the existence of an output schema (not shown here) further reduces the need to describe return values in detail. It does not cover error handling or network prerequisites, but these are not essential for correct invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The description comprehensively documents all four parameters in the Args section, exceeding the bare schema. It explains pdb_id as a 4-character PDB identifier with an example, enumerates all file_format options with defaults, and clarifies output_dir and filename defaults. Since schema coverage is 0%, the description fully compensates, adding significant meaning beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: 'Download a structure file from RCSB PDB.' This is a specific verb (download), resource (structure file), and source (RCSB PDB). It distinguishes from sibling tools like get_pdb_entry, which retrieve entry metadata, and query_rcsb_api, which performs API queries, by focusing on file download.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description does not explicitly state when to use this tool versus alternatives, nor does it mention exclusions or conditions. However, the purpose is self-evident for downloading structure files, and the existence of siblings for different tasks makes the usage context implicit. There is no misleading guidance, but the lack of explicit routing to alternatives is a gap.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_pdb_entryA
Get comprehensive information about a PDB entry.
Args: pdb_id: The 4-character PDB identifier (e.g., '1ABC', '7BQY')
Returns: JSON string containing entry information including: - Structure title and description - Experimental method (X-ray, NMR, Cryo-EM, etc.) - Resolution - Deposition and release dates - Authors and citation information - Organism source
| Name | Required | Description | Default |
|---|---|---|---|
| pdb_id | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of disclosure. It transparently states the return format as a JSON string and enumerates the included fields, which is strong for a read-only lookup. It does not mention error handling for invalid IDs or network behavior, but those are minor for this kind of tool.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is compact, front-loaded, and scannable, with an Args/Returns structure and a bullet list of returned information. Every sentence earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a single-parameter entry lookup with an output schema available, the description covers the input format and the return contents. Nothing essential for calling the tool correctly is missing, aside from sibling routing, which is a usage-guideline concern.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema only declares pdb_id as a string, but the description fully defines it as a 4-character PDB identifier with concrete examples ('1ABC', '7BQY'). This adds substantial meaning beyond the raw schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific operation ('Get comprehensive information') on a precise resource ('a PDB entry'), and the Returns list clarifies that it provides metadata rather than a file. This distinguishes it from siblings like download_structure_file and get_polymer_entity.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The intended use is implied by the phrase 'comprehensive information' and the listed return fields, but there is no explicit when-to-use/when-not-to-use guidance and no reference to sibling alternatives. An agent must infer that search_pdb_by_organism is for finding IDs and download_structure_file is for file retrieval.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_polymer_entityA
Get information about a polymer entity (protein, DNA, RNA) within a PDB entry.
Args: pdb_id: The 4-character PDB identifier (e.g., '1ABC') entity_id: The entity number within the structure (default: '1')
Returns: JSON string containing polymer entity information including: - Molecule name and description - Sequence information - Molecular weight - Entity type (polypeptide, DNA, RNA, etc.) - Source organism
| Name | Required | Description | Default |
|---|---|---|---|
| pdb_id | Yes | ||
| entity_id | No | 1 |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the behavioral disclosure burden. It clearly states the output is a JSON string and lists the returned fields, which implies a read-only operation. However, it does not mention error behavior, invalid PDB IDs, not-found cases, or any API/network dependencies.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is well-structured with purpose, Args, and Returns sections, and the bullet list of return fields is useful. It is slightly verbose but contains no filler or redundant statements.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description covers the essential invocation details: parameter formats, default value, and return content. Since an output schema exists, the explicit return list is a bonus. It does not address edge cases or failure modes, but they are not critical for basic correct use.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, but the description fully compensates by explaining pdb_id's 4-character format with an example and entity_id's role with its default value. Both parameters receive meaningful semantic context beyond the bare schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb and resource: 'Get information about a polymer entity (protein, DNA, RNA) within a PDB entry.' This clearly distinguishes the tool from entry-level, download, query, and search siblings, even though it does not name them explicitly.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies the tool is for retrieving polymer entity details, but it provides no explicit guidance about when to choose it over siblings like get_pdb_entry or query_rcsb_api. No exclusions or alternative routing are given.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
query_rcsb_apiA
Make a custom query to the RCSB Data API.
This is an advanced tool for accessing any RCSB Data API endpoint directly.
Args: endpoint: API endpoint path (e.g., 'assembly/1ABC-1', 'uniprot/P12345') params: Optional JSON string of query parameters (e.g., '{"format": "json"}')
Common endpoints: - entry/{pdb_id}: Entry-level information - polymer_entity/{pdb_id}{entity_id}: Polymer entity info - assembly/{pdb_id}-{assembly_id}: Biological assembly info - nonpolymer_entity/{pdb_id}{entity_id}: Small molecule/ligand info - uniprot/{uniprot_id}: UniProt cross-reference
Returns: JSON string containing the API response
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | ||
| endpoint | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. It mentions it returns a JSON string but does not disclose whether the operation is read-only, any authentication requirements, rate limits, or error handling behavior. For a query tool, these are important gaps.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is well-organized with sections for Args, common endpoints, and Returns. It is reasonably concise given the need to cover a generic tool, though it could be tightened by removing some redundancy.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a generic tool, the description gives essential usage details and return type, but lacks guidance on error handling, authentication, rate limits, and potential side effects. Since there is no output schema provided, it should also clarify the response structure beyond just 'JSON string'.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, but the description compensates well by explaining the endpoint format (with examples) and the params as an optional JSON string. It provides common endpoint patterns, giving the agent enough context to construct valid calls.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: 'Make a custom query to the RCSB Data API' and positions it as an advanced direct-access tool for any endpoint. This distinguishes it from the specific sibling tools (e.g., get_pdb_entry, get_polymer_entity) by its generic nature.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies use for advanced/custom queries with 'advanced tool' and 'any endpoint', but does not explicitly state when to prefer this over the more specific siblings or when not to use it. It lists common endpoints but omits guidance on selecting this tool vs. alternatives.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_pdb_by_organismA
Get information about how to search for PDB entries by organism.
This tool provides guidance on using the RCSB search API to find structures from specific organisms.
Args: organism: Organism name (e.g., 'Homo sapiens', 'E. coli')
Returns: Instructions and example queries for searching by organism
| Name | Required | Description | Default |
|---|---|---|---|
| organism | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The description transparently states what the tool returns: 'Instructions and example queries for searching by organism'. This makes clear that the tool does not perform a search itself but provides guidance. There is no mention of side effects or side effects are not applicable. Given the simple nature of a guidance tool, the description adequately discloses the outcome of invoking it.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is succinct and well-structured: it states the purpose, what the tool does, the argument, and the return value. Every sentence adds value without redundancy. It is efficiently written and easy to parse.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description covers the essential aspects: what the tool does, what input it expects, and what output it provides. For a simple guidance tool, this is sufficient. However, it could be slightly more complete by mentioning the format of the instructions (e.g., are they textual steps, API endpoints, etc.), but given the low complexity, the current level of detail is adequate.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The single parameter 'organism' is described as 'Organism name (e.g., 'Homo sapiens', 'E. coli')', providing clear meaning and examples. The schema only specifies type as string, but the description adds concrete usage and format, which helps the user understand what to supply. This is better than just the bare schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: to provide guidance on how to search for PDB entries by organism. It uses a specific verb ('get information') and identifies the resource (PDB entries by organism). However, it does not explicitly distinguish itself from sibling tools like 'query_rcsb_api' or 'get_pdb_entry', which might cause some ambiguity about when to use this tool versus those.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description does not provide explicit guidance on when to use this tool versus alternatives. It only states that it provides guidance on using the RCSB search API, but does not mention any conditions or scenarios where this tool is preferred over the sibling tools. Users are left to infer when they should invoke this tool instead of others.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
5 tool updates
v0.1.0- First observed
download_structure_file - First observed
get_pdb_entry - First observed
get_polymer_entity - First observed
query_rcsb_api - First observed
search_pdb_by_organism
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose: retrieving entries, polymer entities, downloading files, querying the API, and searching by organism. No overlaps in functionality.
Tool names follow a predictable pattern with 'get_' for retrieval and descriptive verbs like 'download' and 'query'. Minor inconsistency with 'search_pdb_by_organism' using a different verb, but overall consistent.
Five tools is well-scoped for an RCSB PDB server, covering the essential operations without unnecessary bloat or excessive granularity.
The set covers entry retrieval, entity retrieval, file downloads, and raw API access. The 'search_pdb_by_organism' tool only provides guidance rather than performing actual searches, but the 'query_rcsb_api' tool can be used for that purpose, so no major gaps.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
RCSB PDB MCP — experimentally determined macromolecular structures.
PDBe (Protein Data Bank in Europe, EBI) MCP.
PubMed MCP — wraps the NCBI E-utilities API (biomedical literature, free, no auth)
PubChem MCP — NIH chemistry compound database (no auth)
Related MCP Servers
- FlicenseAqualityFmaintenanceA Model Context Protocol (MCP) server that provides access to the Protein Data Bank (PDB) - the worldwide repository of information about the 3D structures of proteins, nucleic acids, and complex assemblies.525-
- AlicenseBqualityDmaintenanceEnables searching, retrieving, and downloading protein structure data from the RCSB Protein Data Bank. Supports intelligent protein structure search, comprehensive data retrieval, and multiple file format downloads for bioinformatics research.3MIT
- FlicenseNot gradedqualityNot gradedmaintenanceEnables interaction with the RCSB Protein Data Bank to search, analyze, and visualize protein structures. It provides specialized tools for downloading coordinate files and performing structural modifications like residue mutations and metal atom replacements.-
- AlicenseNot gradedqualityCmaintenanceEnables querying and retrieving experimental protein structures from the RCSB Protein Data Bank, including text search, full entry records, polymer entities, ligands, and assemblies.13MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cnyambura/rcsb-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server