@cyanheads/uniprot-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., "@@cyanheads/uniprot-mcp-serverSearch curated human proteins with 'kinase' function"
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.
Tools
Six tools for protein-first research over UniProt — discovery search is the entry point, uniprot_map_ids is the bridge that turns any sibling identifier into a UniProtKB accession, and the rest fetch curated records, proteomes, taxonomy, and sequences:
Tool | Description |
| Search UniProtKB by plain text or a Lucene field query, with the reviewed (Swiss-Prot) filter foregrounded and optional server-side facet counts. Cursor-paginated. The discovery entry point. |
| Fetch full curated entries by accession in one batch (up to 20) — function, catalytic activity, disease, variants, isoforms, GO terms, cross-references. Partial-success output; an oversized record returns a section outline. |
| Translate identifiers across databases via UniProt's async ID-mapping service — gene names, Ensembl, RefSeq, ChEMBL, PDB, GeneID ↔ UniProtKB accessions. Polls within a budget; returns a resumable ticket on overflow. |
| Fetch a reference proteome by UPID or NCBI taxon ID — protein count, BUSCO completeness, genome assembly inline, plus an opt-in capped page of the proteins. |
| Resolve a taxonomy record by NCBI taxon ID or scientific name — name, rank, parent, full lineage, and optionally the immediate children. |
| Fetch the canonical amino-acid sequence (FASTA) for an accession, with length and parsed header — and optionally the isoform sequences. The cheap sequence-only path. |
uniprot_search_proteins
Search UniProtKB and return curated protein records — the discovery entry point.
text_searchfor plain language (the 80% case) orqueryfor full Lucene field syntax (gene,organism_id,keyword,go,reviewed,protein_name,family,length,existence,accession) — exactly onerevieweddefaults totrue(Swiss-Prot only) so the agent isn't drowned in TrEMBL predictions; setfalseto include themorganism_idconvenience filter ANDed onto the queryOptional
facetsfor server-side count breakdowns (e.g.reviewed,model_organism)Forward cursor pagination (UniProtKB has no offset paging);
totalResultsand the effective query echoed backEvery hit carries
reviewed,annotationScore, andproteinExistenceso curation quality is weighable
uniprot_get_entry
Fetch full curated UniProtKB entries by accession in batch — this tool does not search.
Batch up to 20 accessions in one round trip
Sectioned record: function, catalytic activity, cofactors, subcellular location, disease, PTMs, natural variants, isoforms, domains, GO terms, keywords, cross-references
Partial-success output — resolved entries in
succeeded[], unknown/withdrawn ones infailed[]; the whole batch never aborts on one bad accessionfieldstrims the upstream projection; identity and provenance fields are always retainedA single oversized record returns
kind: "outline"(a section listing) instead of overflowing context — re-call the same accession withsections: [...]to pull only what's neededAccessions come from
uniprot_search_proteinsoruniprot_map_ids; strip any-Nisoform suffix first
uniprot_map_ids
Translate identifiers across databases via UniProt's ID-mapping service — the bridge from any sibling server's identifier into a UniProtKB accession.
from_db/to_dbare validated enums (e.g.Gene_Name,Ensembl,RefSeq_Protein,ChEMBL,PDB,GeneID,UniProtKB_AC-ID) so an unsupported pair fails before the upstream callTarget
UniProtKB-Swiss-Protfor reviewed accessions only (the usual intent), orUniProtKB/UniProtKB_AC-IDto include unreviewed TrEMBLThe job runs asynchronously; the tool submits it and polls within a budget. Finishes in time →
status: "finished"with the mappings; runs long →status: "running"with a resumable ticket — re-call with the ticket alone (the job is held server-side)Pair a gene-symbol
from_dbwithtax_idto disambiguate speciesReports unmapped input IDs alongside the resolved mappings
uniprot_get_proteome
Fetch the reference proteome for an organism by UPID or NCBI taxon ID — provide exactly one.
Metadata inline: proteome type, total protein count, BUSCO completeness (score, complete/fragmented/missing counts, lineage dataset), genome assembly accession
The protein set is opt-in via
include_proteins(it is large — human is ~147,506) and returns a capped page with a forward cursor and truncation disclosureNarrow the protein list with the
queryfilter (UniProtKB Lucene syntax) for a subsetResolve an organism name to a taxon ID first with
uniprot_get_taxonomy
uniprot_get_taxonomy
Resolve a taxonomy record by NCBI taxon ID or scientific name — provide exactly one.
Returns scientific and common name, mnemonic, rank, parent, and the full lineage (root → near ancestor)
include_childrenfetches the immediate child taxa via a follow-up search (not inline on the record)Turns an organism name into the taxon ID that
uniprot_search_proteins(organism_id) anduniprot_get_proteome(taxon_id) expect
uniprot_get_sequence
Fetch the canonical amino-acid sequence (FASTA) for an accession — the cheap, sequence-only path (for the full functional record use uniprot_get_entry).
Returns the canonical sequence with its length and parsed FASTA header
include_isoformsalso returns the alternatively-spliced isoform sequencesAccessions come from
uniprot_search_proteinsoruniprot_map_ids; strip any-Nisoform suffix first
Related MCP server: mcp-uniprot
Resources and prompts
Type | Name | Description |
Resource |
| A curated UniProtKB entry by accession — the resource mirror of |
Resource |
| A taxonomy record by NCBI taxon ID — name, rank, parent, full lineage. The mirror of |
Prompt |
| Guided protein-research workflow — resolve an identifier, fetch the curated entry, pull disease and variants, and surface cross-references for structure, citations, and bioactivity. |
All resource data is also reachable via tools — tool-only clients lose nothing. UniProtKB is far too large to enumerate, so there is no resource list(); discovery is uniprot_search_proteins's job.
Features
Built on @cyanheads/mcp-ts-core:
Declarative tool, resource, and prompt definitions — single file per primitive, framework handles registration and validation
Unified error handling — handlers throw, framework catches, classifies, and formats
Pluggable auth:
none,jwt,oauthSwappable storage backends:
in-memory,filesystem,Supabase,Cloudflare KV/R2/D1Structured logging with optional OpenTelemetry tracing
STDIO and Streamable HTTP transports
UniProt-specific:
Keyless — UniProt REST requires no API key; works against any
rest.uniprot.org-compatible base (overrideUNIPROT_BASE_URLfor a private mirror)One thin
fetchclient over all four REST collections (UniProtKB, ID Mapping, Proteomes, Taxonomy) with retry/backoff and HTML-error-page detectionBatch entry fetch — N accessions in one round trip, cross-referenced against the request to flag any missing
Async ID-mapping run → poll → results bounded by a wall-clock budget, with a resumable server-side ticket on overflow
Agent-friendly output:
Provenance is data, not decoration —
reviewed,annotationScore,proteinExistence, and per-field PubMed/ECO evidence ship on every record so the agent can weigh manual vs. predicted annotationGraceful partial failure —
uniprot_get_entryreturns per-accessionsucceeded[]/failed[]rows instead of aborting the batchDiscriminated output contracts —
uniprot_get_entryreturnskind: "full" | "outline",uniprot_map_idsreturnsstatus: "finished" | "running"; callers branch on data, not string parsingSparsity preserved — absent upstream fields stay absent, never fabricated (most curated sections are legitimately missing on TrEMBL entries)
Getting started
Add the following to your MCP client configuration file. UniProt REST is keyless — no API key required.
{
"mcpServers": {
"uniprot-mcp-server": {
"type": "stdio",
"command": "bunx",
"args": ["@cyanheads/uniprot-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info"
}
}
}
}Or with npx (no Bun required):
{
"mcpServers": {
"uniprot-mcp-server": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@cyanheads/uniprot-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info"
}
}
}
}Or with Docker:
{
"mcpServers": {
"uniprot-mcp-server": {
"type": "stdio",
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "MCP_TRANSPORT_TYPE=stdio", "ghcr.io/cyanheads/uniprot-mcp-server:latest"]
}
}
}For Streamable HTTP, set the transport and start the server:
MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 bun run start:http
# Server listens at http://localhost:3010/mcpPrerequisites
Bun v1.3.11 or higher (or Node.js v24+).
No API key — UniProt REST is keyless and open. Data is UniProt, CC BY 4.0.
Installation
Clone the repository:
git clone https://github.com/cyanheads/uniprot-mcp-server.gitNavigate into the directory:
cd uniprot-mcp-serverInstall dependencies:
bun installConfiguration
All configuration is validated at startup via Zod schemas in src/config/server-config.ts. UniProt REST is keyless, so every server-specific variable below is an optional override.
Variable | Description | Default |
| UniProt REST base URL. Override for a private mirror or testing. |
|
| Per-request HTTP timeout in ms. |
|
| Wall-clock budget for the inline ID-mapping poll loop before returning a resumable ticket. Must be less than |
|
| Default page size for search and proteome protein listing when the caller leaves it unset. |
|
| Transport: |
|
| Port for HTTP server. |
|
| Auth mode: |
|
| Log level (RFC 5424). |
|
| Directory for log files (Node.js only). |
|
| Storage backend. |
|
| Enable OpenTelemetry instrumentation (spans, metrics, completion logs). |
|
See .env.example for the full list of optional overrides.
Running the server
Local development
Build and run:
# One-time build bun run rebuild # Run the built server bun run start:stdio # or bun run start:httpRun checks and tests:
bun run devcheck # Lint, format, typecheck, security bun run test # Vitest test suite bun run lint:mcp # Validate MCP definitions against spec
Docker
docker build -t uniprot-mcp-server .
docker run --rm -e MCP_TRANSPORT_TYPE=stdio ghcr.io/cyanheads/uniprot-mcp-server:latestThe Dockerfile defaults to HTTP transport, stateless session mode, and logs to /var/log/uniprot-mcp-server. OpenTelemetry peer dependencies are installed by default — build with --build-arg OTEL_ENABLED=false to omit them.
Project structure
Directory | Purpose |
|
|
| Server-specific environment variable parsing and validation with Zod. |
| Tool definitions ( |
| Resource definitions ( |
| Prompt definitions ( |
| The |
| Unit and integration tests mirroring |
Development guide
See CLAUDE.md (and the byte-identical AGENTS.md) for development guidelines and architectural rules. The short version:
Handlers throw, framework catches — no
try/catchin tool logicUse
ctx.logfor request-scoped logging,ctx.statefor tenant-scoped storageRegister new tools and resources in the
createApp()arraysWrap the UniProt API: validate raw → normalize to domain type → return the output schema; never fabricate missing fields
Contributing
Issues and pull requests are welcome. Run checks and tests before submitting:
bun run devcheck
bun run testLicense
Apache-2.0 — see LICENSE for details.
This server cannot be installed
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 Servers
- AlicenseBqualityDmaintenanceProvides seamless access to UniProtKB protein database, enabling queries for protein entries, sequences, Gene Ontology annotations, full-text search, and ID mapping across 200+ database types.Last updated52MIT
- Alicense-qualityCmaintenanceProvides access to UniProt protein sequence and function knowledge base, enabling search and retrieval of protein entries, proteomes, taxonomy, and feature annotations.Last updated28MIT
- AlicenseBqualityDmaintenanceProvides seamless access to UniProtKB protein data, enabling querying of protein entries, sequences, Gene Ontology annotations, and ID mappings through a typed, resilient interface.Last updated5MIT
- AlicenseAqualityAmaintenanceAn MCP server that grounds protein research in the UniProt SPARQL endpoint, providing tools for querying proteins, sequences, variants, diseases, and more via intent-named tools and raw SPARQL.Last updated15MIT
Related MCP Connectors
UniProt MCP — protein sequence + function database.
Query SEC EDGAR filings, XBRL financials, and company data through MCP. STDIO & Streamable HTTP.
Query STRING interactions, enrichment, annotations, homology, and PPI networks.
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/cyanheads/uniprot-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server