Skip to main content

PDBe MCP Servers

Access Protein Data Bank in Europe (PDBe) structural biology data from any AI client that supports the Model Context Protocol (MCP).

Capabilities

Molecular workspace (MCP Apps)

In an MCP Apps client, the Apps server provides a shared Mol* workspace for:

  • Structure Explorer: inspect chains, residues, ligand instances, and source annotations, with linked sequence and annotation tracks.
  • Ligand & Binding Site Explorer: inspect PDBe-reported ligand interaction records, filter evidence, and export contacts.
  • Structure Comparison: view PDBe's precomputed superpositions and PDBe/SIFTS residue correspondence, with a correspondence table and CSV export.
  • MolViewSpec Builder and Stories: create custom scenes and ordered multi-scene molecular stories.
  • Workspace management: save or restore workspace JSON, export MVSJ, and update scenes and layers through MCP tools.

Use pdbe_apps_server for the dedicated server or the recommended all server; connection examples are below. The host needs MCP Apps support, WebGL, and access to https://www.ebi.ac.uk. Clients without UI support receive text and structured data fallbacks.

Comparisons use supplied PDBe transforms and mappings; the app does not calculate a new fit, RMSD, or proximity-derived binding sites. The ligand explorer displays PDBe-supplied interaction records rather than calculating new contacts. Chain selectors use label chain IDs (struct_asym_id).

Example prompts for an MCP Apps-capable client:

  • “Open PDB entry 1tqn in the molecular workspace.”
  • “Compare the alpha chains of human deoxy- and oxyhemoglobin (PDB 4hhb and 1hho) and show their residue correspondence.”
  • “Explore a ligand in PDB entry 1tqn and show its PDBe-reported interactions.”
  • “Build a two-scene molecular story for PDB entry 1tqn, showing the protein first and then highlighting a ligand.”

See the molecular workspace guide for setup, tool examples, annotations, saved workspaces, updates, and host routing. The Apps and aggregate servers also expose the molview-spec skill as MCP resources for scene-building guidance.

Data servers

Server Purpose
all API, Search, Apps, and Graph tools through one server
pdbe_api_server Entries, assemblies, molecules, ligands, publications, and validation data
pdbe_search_server Solr searches with filtering, facets, grouping, and pagination
pdbe_apps_server Interactive structure and ligand exploration, comparison, and MolViewSpec workspaces
pdbe_graph_server PDBe-KB graph schema and queries against your local Neo4j database

The recommended all server exposes API, Search, Apps, and Graph together. Graph queries require your own PDBe-KB Neo4j database; PDBe does not provide a public running instance. Configure individual server types if you only need a subset of the tools.

Quick start

Requires Python 3.11+ and uv. Run directly from PyPI without a separate installation:

uvx pdbe-mcp-server

With no server type specified, this starts the aggregate all server over stdio. To run only Search instead:

uvx pdbe-mcp-server --server-type pdbe_search_server

Connect your AI client

For clients using a JSON mcpServers configuration, we recommend starting with the aggregate server. It exposes the API, Search, Apps, and Graph tools through one stdio connection:

{
  "mcpServers": {
    "PDBe": {
      "command": "uvx",
      "args": ["pdbe-mcp-server", "--server-type", "all"]
    }
  }
}

Graph queries require your own PDBe-KB Neo4j database, and interactive Apps views require an Apps-capable client.

If you only need selected servers, configure one or more individually:

{
  "mcpServers": {
    "PDBe API": {
      "command": "uvx",
      "args": ["pdbe-mcp-server", "--server-type", "pdbe_api_server"]
    },
    "PDBe Search": {
      "command": "uvx",
      "args": ["pdbe-mcp-server", "--server-type", "pdbe_search_server"]
    }
  }
}

Ensure uvx is in your client's PATH, then restart or reload the client. Clients with a settings UI can use the same commands and arguments.

Try asking:

  • “Find structures for UniProt accession P12345.”
  • “Show structures released this month, grouped by experimental method.”
  • “Find X-ray structures with resolution better than 2.0 Å.”

See worked examples for questions involving protein function, ligand interactions, glycosylation, cryo-EM structures, and EMDB maps.

Remote HTTP server

From a local checkout, start Streamable HTTP with:

uv run pdbe-mcp-remote-server --all

Connect to http://127.0.0.1:8000/api/, /search/, /apps/, or /graph/. The --all flag also exposes /all/. Use ROOT_PREFIX for a path prefix.

See the server reference for Docker, legacy SSE, search parameters, graph setup, and experimental TOON output.

PDBe-hosted beta server

A beta-hosted remote MCP server is available at https://wwwdev.ebi.ac.uk/pdbe/mcp/all/. Connect to it from an MCP client using Streamable HTTP. As a beta service, its availability and interface may change. For beta-server issues or feedback, email pdbehelp@ebi.ac.uk. For other issues, please open a GitHub issue.

Local development

Clone the repository and install dependencies:

git clone https://github.com/PDBeurope/PDBe-MCP-Servers.git
cd PDBe-MCP-Servers
uv sync --all-extras --dev

Build the molecular UI with Node.js 22.12+ before running the Apps server or building a Python distribution:

cd apps/structure-explorer
npm ci
npm run build
cd ../..

For a local client connection, replace uvx with uv and use arguments like:

["run", "--directory", "/path/to/PDBe-MCP-Servers", "pdbe-mcp-server", "--server-type", "pdbe_api_server"]

Rebuild the UI after UI changes. Python distributions include the generated HTML artifacts. See Development for testing and packaging, and Contributing for contribution guidance.

Documentation and support

Licensed under Apache 2.0.

Metadata

Release files for pdbe-mcp-server 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pdbe-mcp-server 2.0.0
File Size Uploaded Provenance Actions
pdbe_mcp_server-2.0.0.tar.gz 8.4 MB Without provenance Details for pdbe_mcp_server-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pdbe-mcp-server 2.0.0
File Interpreter ABI Platform Actions
pdbe_mcp_server-2.0.0-py3-none-any.whl Python 3 none any Details for pdbe_mcp_server-2.0.0-py3-none-any.whl

Total release size: 16.6 MB

Release files / pdbe_mcp_server-2.0.0.tar.gz

Download URL pdbe_mcp_server-2.0.0.tar.gz
Size 8.4 MB
Tags Source
SHA-256 checksum
How to use checksums
cc2822b827d874c75053ec06531894dfd528ffccbf7115996219bfe362d75e4f
BLAKE2b-256 checksum
How to use checksums
bf6bf40c0c6f1a583ff686795756a345d84eddf27e63d8f3ab7a015858710adc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / pdbe_mcp_server-2.0.0-py3-none-any.whl

Download URL pdbe_mcp_server-2.0.0-py3-none-any.whl
Size 8.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
c0fe3295102f178e2279779b5f55cfc0c3b507b4059c6abd58fa080bd68ace4a
BLAKE2b-256 checksum
How to use checksums
055f628e40ef2af80a285b258c1c6a4b9611ff9fb8e76b17d7c8fc79b9a3a8a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for pdbe-mcp-server 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page