antibody-mcp
An MCP server for antibody and biologics research — PubMed, ClinicalTrials.gov, RCSB PDB and antibody numbering in one tool call.
Give Claude Desktop, Claude Code, Cursor or any MCP-compatible agent the four things an antibody engineer looks up every day: what has been published, what is in the clinic, what the structure looks like, and how the sequence numbers.
No API keys are required. Everything is queried from free public endpoints.
Why another bio MCP server?
| Generic literature MCP | antibody-mcp | |
|---|---|---|
| PubMed search | ✅ | ✅ with date windows and DOI/PMID |
| ClinicalTrials.gov | ⚠️ often missing | ✅ status / phase / intervention filters |
| PDB | ⚠️ raw file dump | ✅ entry summary + chain composition, coordinates on demand |
| Antibody numbering | ❌ | ✅ IMGT · Kabat · Chothia · Martin · AHo + CDR1/2/3 via abcat |
| Context cost | large blobs | compact JSON, one record per hit |
The tools are designed to be cheap in tokens and explicit about sources: every result
carries the query, the source URL and an error field instead of raising, so an agent can
retry with a better query instead of losing the turn.
Quick start
# Run without installing (once published to PyPI)
uvx antibody-mcp
# or install it into a project
uv add antibody-mcp
# numbering support is an optional extra (installs abcat / ANARCI)
# note: abcat currently requires Python 3.14+, the rest of the server does not
uv add "antibody-mcp[numbering]"
Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or
%APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"antibody": {
"command": "uvx",
"args": ["antibody-mcp"],
"env": {
"NCBI_EMAIL": "you@example.com",
"NCBI_API_KEY": ""
}
}
}
}
Cursor
~/.cursor/mcp.json — same mcpServers block as above.
Claude Code
claude mcp add antibody -- uvx antibody-mcp
Restart the client and ask:
"Find recent papers on anti-PD-1 nanobodies, then show me the chain composition of PDB 5DK3."
Tools
| Tool | Arguments | What it returns | Source |
|---|---|---|---|
search_pubmed |
query, max_results=5, years=5 |
PMID, title, journal, year, authors, DOI, URL. Sorted by relevance. | NCBI E-utilities |
search_clinical_trials |
condition, intervention?, status?, max_results=5 |
NCT id, title, status, phase, conditions, interventions, sponsor, dates, URL | ClinicalTrials.gov API v2 |
get_pdb_entry |
pdb_id, include_fasta=false |
Title, method, resolution, deposition date, polymer entities + descriptions, download URL, optional FASTA | RCSB PDB Data API |
annotate_antibody |
sequence, scheme="imgt" |
Chain type (VH/VK/VL), numbering scheme, CDR1/2/3 and framework sequences, isotype/subclass when a constant region is present | abcat (optional) |
scheme accepts imgt, kabat, chothia, martin, aho.
Example tool output (trimmed)
{
"query": "anti-PD-1 nanobody",
"count": 1,
"results": [
{
"pmid": "31234567",
"title": "A compact anti-PD-1 nanobody with…",
"journal": "mAbs",
"year": "2024",
"doi": "10.1080/19420862.2024.xxxxxxx",
"url": "https://pubmed.ncbi.nlm.nih.gov/31234567/"
}
]
}
Architecture
flowchart LR
A[MCP client<br/>Claude · Cursor · Code] -->|stdio / JSON-RPC| B[antibody-mcp<br/>FastMCP]
B --> C[search_pubmed]
B --> D[search_clinical_trials]
B --> E[get_pdb_entry]
B --> F[annotate_antibody]
C --> C1[(NCBI<br/>E-utilities)]
D --> D1[(ClinicalTrials.gov<br/>API v2)]
E --> E1[(RCSB PDB<br/>Data API)]
F --> F1[abcat / ANARCI<br/>optional]
src/antibody_mcp/
├── server.py # FastMCP instance + the four @mcp.tool functions
├── clients.py # thin, typed HTTP wrappers for the three public APIs
├── abcat_bridge.py # optional antibody numbering via abcat
└── __main__.py # `python -m antibody_mcp`
Configuration
| Environment variable | Default | Purpose |
|---|---|---|
NCBI_EMAIL |
unset | NCBI asks for a contact address; improves rate-limit behaviour |
NCBI_API_KEY |
unset | Raises NCBI limit from 3 to 10 requests/second |
ANTIBODY_MCP_TIMEOUT |
20 |
HTTP timeout in seconds |
Development
git clone https://github.com/partrita/antibody-mcp.git
cd antibody-mcp
uv sync --extra dev # numbering is optional and needs Python 3.14+
uv run pytest -q
uv run ruff check .
uv run antibody-mcp # starts the stdio server
Inspect the server interactively:
npx @modelcontextprotocol/inspector uv run antibody-mcp
Status and roadmap
- 0.1.0 (this scaffold) — tool signatures, HTTP clients, error envelopes, smoke tests. The PubMed / ClinicalTrials / PDB paths are implemented; responses are normalised but not cached.
- Response cache (SQLite, 24 h TTL) to make repeated agent calls free
-
search_antibody_structures— query the PDB by antigen + resolution + antibody type -
get_binding_interface— Fab–antigen contact residues from a PDB entry - Streaming for large FASTA/coordinate payloads
Contributions and tool requests are welcome — open an issue with the question you wish your agent could answer.
Related projects
abcat— antibody V/C-domain annotation used byannotate_antibodypubmed-miner— literature scoring and MdBook publishingclinicaltrial-watch— change monitoring for tracked trials
License
MIT © Kim Taeyun
Metadata
Release files for antibody-mcp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| antibody_mcp-0.1.0.tar.gz | 12.5 kB | With provenance | Details for antibody_mcp-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| antibody_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for antibody_mcp-0.1.0-py3-none-any.whl |
Total release size: 26.0 kB
Release files / antibody_mcp-0.1.0.tar.gz
| Download URL | antibody_mcp-0.1.0.tar.gz |
|---|---|
| Size | 12.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
13df570d84da4f59573d8c917b5d4ad350050a130889fa02dc996bb60ce3156c
|
|
BLAKE2b-256 checksum How to use checksums |
05e3dcc26aafed9d82f75340e1bec701c32269ecf075e79e5bf985fbf689438d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.
Transparency logRelease files / antibody_mcp-0.1.0-py3-none-any.whl
| Download URL | antibody_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 13.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a7656c52703a2ca13d7818c3d6621093b86d52bff04a3f9b389be322f94d6957
|
|
BLAKE2b-256 checksum How to use checksums |
c97373abad4975dde0f4b45d6afeb8434cd543feb49acb33cb556f3b47ecd12c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.
Transparency logSecurity for antibody-mcp 0.1.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for antibody_mcp-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.
Transparency logA 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.