uniprot-link
uniprot-link is an MCP server that answers protein-research questions by querying UniProt's live QLever-backed SPARQL endpoint, wrapping the hostile query surface in bounded, intent-named tools.
Discover the surface —
get_server_capabilitiesreturns tool signatures, named graphs, prefixes, formats, workflows, and limits (summary or full).Run raw SPARQL —
run_sparql_queryexecutes SELECT/ASK/CONSTRUCT/DESCRIBE plus SERVICE federation, auto-injects a LIMIT, and returns JSON/XML/CSV/TSV/Turtle/etc.Learn the data model —
search_example_queriesandget_example_querysearch and fetch UniProt's 126 curated, executable examples.Search entries —
find_proteinsfilters by gene, organism taxon, reviewed, keyword, EC number, mnemonic, or name words;find_proteins_batchresolves up to 25 genes concurrently and discloses unresolved symbols.Fetch entry detail —
get_proteinreturns core summary, organism, sequence stats, and variant/disease/structure presence flags, flagging obsolete accessions withreplaced_by.Get sequences —
get_protein_sequencereturns canonical and isoform sequences with token-cheap previews by default.Get positional and functional annotations —
get_protein_features(FALDO coordinates, secondary structure toggle) andget_protein_go_terms(grouped by aspect, with evidence codes).Get variant and disease evidence —
get_protein_variants(HGVS notation, dbSNP, disease links) andget_protein_diseases(MIM ids, definition, involvement).Map identifiers —
get_protein_cross_references(all databases, grouped) andmap_identifiers(primary ids: PDB, Ensembl, RefSeq, HGNC, InterPro, …), with did-you-mean on typos.Resolve taxonomy —
get_taxonaccepts an NCBI taxon id or a name, returning matches ranked best-first, parent, and optional lineage.
Every response is read-only and carries _meta.next_commands, truncation metadata, and a structured error/recovery taxonomy.
Click on "Deploy 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., "@uniprot-link find proteins related to BRCA1"
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.
uniprot-link
An MCP server (Streamable HTTP) that grounds protein research in the UniProt SPARQL
endpoint (https://sparql.uniprot.org/sparql) — a QLever-backed SPARQL 1.1 service
over ~244 billion triples in 21 named graphs (UniProt release 2026_03). It exposes
intent-named, token-economical
tools, a guarded raw-SPARQL escape hatch, and UniProt's curated example queries.
Research use only. Not clinical decision support. Do not use for diagnosis, treatment, triage, or patient management.
Why
UniProt's SPARQL endpoint can answer questions no REST route can — cross-graph joins
over sequence features, variants, diseases, GO terms, taxonomy and cross-references —
but it is a hostile surface to write against. QLever is very fast on bound joins and
falls off a cliff on shapes that look harmless: property paths inside OPTIONAL,
GROUP_CONCAT over large literals, ORDER BY before LIMIT. The failure mode is not
an error, it is a 45-minute server timeout.
This server carries that discipline so the model does not have to. The typed tools
compile to anchored, timeout-safe queries; search_sparql_query admits only bounded
SELECT/ASK (CONSTRUCT/DESCRIBE and SERVICE federation are rejected, and a
LIMIT is auto-injected into unbounded SELECTs); and UniProt's curated example queries
are searchable and executable, so an agent learns the data model instead of guessing
IRIs. Every response carries _meta.next_commands — ready-to-run {tool, arguments}
steps — plus a structured error taxonomy.
Related MCP server: TogoMCP
Quick start
The GeneFoundry instance is hosted — no install required:
claude mcp add --transport http uniprot-link https://uniprot-link.genefoundry.org/mcpTo run your own (Python 3.14+, uv):
make install # uv sync --group dev
make dev # unified: REST on / and MCP on /mcp, port 8000
claude mcp add --transport http uniprot-link --scope user http://127.0.0.1:8000/mcpThere is no data build step — every call queries the live endpoint, which needs no
authentication. Do set UNIPROT_LINK_SPARQL__CONTACT_EMAIL to a mailbox you read:
UniProt asks programmatic clients to identify themselves in the User-Agent.
Tools
Tool | Purpose |
| Discovery surface: tool inventory, named graphs, prefixes, formats, workflows, limits |
| Execute a bounded SELECT/ASK SPARQL query (the power tool) |
| Search UniProt's curated, executable example queries |
| Full SPARQL text and metadata of one curated example |
| Search UniProtKB by gene symbol / organism / keyword / EC number / mnemonic |
| Resolve several gene symbols to entries concurrently in one call |
| Core entry summary for one accession |
| Canonical and isoform sequences |
| Sequence features with FALDO begin/end coordinates |
| Natural-variant annotations |
| Disease annotations |
| Cross-references grouped by database (PDB, Ensembl, RefSeq, …) |
| GO annotations grouped by aspect, with evidence codes |
| Resolve an accession to its primary external database ids |
| Resolve an organism by NCBI taxon id or name |
Leaf names are unprefixed per the GeneFoundry Tool-Naming Standard v1:
serverInfo.name is uniprot-link and the canonical gateway namespace token is
uniprot, so behind the
genefoundry-router the tools surface
as uniprot_<tool> (e.g. uniprot_find_proteins). Standalone MCP clients namespace
them as mcp__uniprot-link__<tool>.
Data & provenance
All data comes live from the UniProt SPARQL endpoint —
there is no local mirror and no snapshot, so freshness tracks UniProt's release cycle
directly. The release the query builders and the named-graph inventory were validated
against is pinned in uniprot_link/services/constants.py and reported by
get_server_capabilities. The curated examples come from UniProt's upstream
sparql-examples graph.
UniProt data is licensed CC BY 4.0. Cite it, verbatim (also served at
uniprot://citation):
The UniProt Consortium. UniProt: the Universal Protein Knowledgebase in 2025. Nucleic Acids Res. 2025;53(D1):D609-D617. doi:10.1093/nar/gkae1010
Documentation
Usage — the CLI, typical workflows,
search_sparql_queryrules, and theuniprot://discovery resources.Configuration — every
UNIPROT_LINK_*variable, the two transports, and the Host / Origin / CORS allowlists.Deployment — containers, the production overlays, the reverse-proxy boundary, and the build-provenance release gate.
Architecture — the layer map, the response contract, and why QLever shapes the design.
Development — setup, quality gates, and re-validating a query builder live.
AGENTS.md — engineering conventions, including the SPARQL / QLever discipline.
Contributing
See AGENTS.md for conventions. make ci-local is the
definition-of-done gate: format, lint, line budget, README standard, mypy, and tests.
Changes to the query builders in uniprot_link/services/queries/ must be re-validated
against the live endpoint with research/verify_queries.py.
License
Code: MIT © Bernt Popp. Data: UniProt is licensed CC BY 4.0 by the UniProt Consortium and requires the citation above.
Available Tools
15 toolsfind_proteinsFind ProteinsARead-onlyIdempotent
Search UniProtKB by structured filters and return matching entries (accession, mnemonic, recommended name, reviewed flag, organism). Requires at least one anchor: gene symbol, mnemonic, EC number, keyword (KW-id or label), OR organism_taxon together with name_contains (matched per word, in any order, case-insensitive). Reviewed (Swiss-Prot) hits are ranked first. UniProt SPARQL has no general full-text index, so for broad text use search_example_queries or run_sparql_query. Pair with get_protein for full detail. Results are ordered reviewed-first, then by mnemonic, then accession (stable across pages). Cold search can take several seconds; an identical repeat is cached (~0 ms). If you already know the accession, call get_protein directly -- it is far faster than a cold search. Signature: find_proteins(gene=, organism_taxon=, reviewed=, keyword=, ec_number=, mnemonic=, name_contains=, limit=, offset=).
Inputs: gene, organism_taxon, reviewed, keyword, +5 more. Returns: success, _meta, error_code, message, +10 more
find_proteins_batchFind Proteins (Batch)ARead-onlyIdempotent
Resolve SEVERAL gene symbols to UniProtKB entries in ONE call, running the lookups concurrently -- so N genes cost about one cold round-trip instead of N sequential ones. Use this for multi-gene tasks (e.g. 'get domains for PNKP and NAA10'). Returns by_gene (gene -> accessions, reviewed-first), a flat proteins list tagged with matched_gene, resolved_genes, and unresolved_genes (a symbol that matched nothing is disclosed, never silently dropped). Optionally scope by organism_taxon and reviewed. next_commands fan out to get_protein on each resolved gene's top hit. For a single gene use find_proteins. Signature: find_proteins_batch(genes, organism_taxon=, reviewed=, limit_per_gene=).
Inputs: genes (required), organism_taxon, reviewed, limit_per_gene. Returns: success, _meta, error_code, message, +11 more
get_example_queryGet Example QueryARead-onlyIdempotent
Fetch one curated example's full SPARQL text, description, keyword tags, and any federated endpoints it joins. Pass an example_id (full IRI) from search_example_queries. _meta.next_commands offers to run it directly via run_sparql_query. Signature: get_example_query(example_id).
Inputs: example_id (required). Returns: success, _meta, error_code, message, +10 more
get_proteinGet ProteinARead-onlyIdempotent
Return the core summary for a single UniProtKB entry by accession: mnemonic, reviewed flag, recommended/short name, gene(s), organism + taxon, protein existence, sequence length and mass, a function summary, and creation/modification dates, plus has_variants/has_diseases/has_structure presence flags that drive content-aware next_commands. An obsolete/demerged accession returns a flagged obsolete record (obsolete:true + replaced_by). response_mode (default compact) controls verbosity; standard/full add the created/modified dates. Signature: get_protein(accession, response_mode=).
Inputs: accession (required), response_mode. Returns: success, _meta, error_code, message, +21 more
get_protein_cross_referencesGet Protein Cross-ReferencesARead-onlyIdempotent
Return database cross-references for an entry, grouped by database (PDB, AlphaFoldDB, Ensembl, RefSeq, Reactome, STRING, InterPro, ...). Optionally restrict to specific databases (case-sensitive); any requested name that matched nothing is echoed under unmatched_databases with a did-you-mean, so a typo never reads as 'no data'. response_mode (default compact) returns short ids; full restores raw IRIs. Returns every cross-reference database; use map_identifiers for a focused primary-id mapping. Signature: get_protein_cross_references(accession, databases=, response_mode=).
Inputs: accession (required), databases, response_mode. Returns: success, _meta, error_code, message, +14 more
get_protein_diseasesGet Protein DiseasesARead-onlyIdempotent
Return disease annotations associated with an entry: disease name, UniProt disease id, mnemonic, MIM id, the clinical definition (the disease vocabulary's own description), and involvement (the entry-specific note). Pairs with get_protein_variants for variant-level disease evidence. Signature: get_protein_diseases(accession).
Inputs: accession (required). Returns: success, _meta, error_code, message, +8 more
get_protein_featuresGet Protein FeaturesARead-onlyIdempotent
Return sequence features with begin/end coordinates (FALDO) for an entry: domains, regions, transmembrane segments, binding/active sites, PTMs, signal peptides, secondary structure, mutagenesis sites, and more. feature_types=['domain'] returns positional domain extents; each returned type round-trips to the filter vocabulary. Filter keys come from capabilities (feature_types); a zero-match filter echoes the accepted keys as a filter_hint. Secondary-structure features (helix/strand/turn) are hidden by default and disclosed under excluded_secondary_structure; set include_secondary_structure=true (or name them in feature_types) to return them. Signature: get_protein_features(accession, feature_types=, limit=, include_secondary_structure=).
Inputs: accession (required), feature_types, limit, include_secondary_structure. Returns: success, _meta, error_code, message, +11 more
get_protein_go_termsGet Protein GO TermsARead-onlyIdempotent
Return Gene Ontology annotations for an entry, grouped by aspect (biological_process / molecular_function / cellular_component) where available, each with GO id, label, and (when annotated) ECO evidence ids plus mapped GO evidence_codes (IDA/IEA/IMP/...) for citation. Always returns count and count_by_aspect; pass aspect to scope to one ontology and limit to cap a large set (token economy). Signature: get_protein_go_terms(accession, aspect=, limit=).
Inputs: accession (required), aspect, limit. Returns: success, _meta, error_code, message, +10 more
get_protein_sequenceGet Protein SequenceARead-onlyIdempotent
Return the amino-acid sequence(s) for an entry: the canonical isoform (length, mass, sequence) plus any additional (non-canonical) isoforms. Pass a canonical accession for all isoforms, or an isoform accession (e.g. P05067-2) to get THAT isoform's specific sequence and mass. response_mode controls verbosity: minimal=metadata only; compact (default)=length/mass + a first/last-30-residue sequence_preview (sequence_truncated:true) — cheap for large proteins; standard/full return the complete sequence string. Set canonical_only=true to return only the canonical isoform (skip the additional-isoform list). Signature: get_protein_sequence(accession, response_mode=, canonical_only=).
Inputs: accession (required), response_mode, canonical_only. Returns: success, _meta, error_code, message, +10 more
get_protein_variantsGet Protein VariantsARead-onlyIdempotent
Return natural-variant annotations for an entry: position, wild-type residue, amino-acid substitution, an HGVS-style notation (e.g. L176F) for simple substitutions, variant_type (substitution|other), free-text description, structured linked diseases, and dbsnp rsIDs. Set disease_associated_only=true to keep only disease-linked variants. Signature: get_protein_variants(accession, limit=, disease_associated_only=).
Inputs: accession (required), limit, disease_associated_only. Returns: success, _meta, error_code, message, +9 more
get_server_capabilitiesGet Server CapabilitiesARead-onlyIdempotent
Return the uniprot-link discovery surface. detail='summary' (default) is light: identity/build/release, the tool list WITH call signatures, accepted argument aliases, response modes, recommended workflows, error taxonomy, and limits -- enough to call any tool without guessing an argument name. detail='full' adds the heavy reference blocks (21 named graphs with triple counts, the full SPARQL prefix map, full latency bands, feature-type and cross-reference vocabularies). Call this first in a cold session, or read uniprot://tools (signatures only) or uniprot://capabilities (full). Signature: get_server_capabilities(detail=).
Inputs: detail. Returns: success, _meta, error_code, message, +11 more
get_taxonGet TaxonARead-onlyIdempotent
Resolve an organism in the UniProt taxonomy. Pass a numeric NCBI taxon id (e.g. 9606) for full detail (scientific/common name, rank, the DIRECT parent, and an optional ordered lineage from species up to root), or a scientific/common name to get candidate taxon ids. Use the resolved taxon id with find_proteins(organism_taxon=...). Name matches are ranked best-first (an exact scientific/common-name hit leads, tagged match_quality:'exact'), so matches[0] and next_commands point at the right organism. Numeric-id and common-organism-name lookups are fast (~0 ms for common names); an uncommon name triggers a multi-second taxonomy scan. Signature: get_taxon(taxon, include_lineage=).
Inputs: taxon (required), include_lineage. Returns: success, _meta, error_code, message, +14 more
map_identifiersMap IdentifiersARead-onlyIdempotent
Map a UniProtKB accession to its PRIMARY external identifiers: the genomic/structural/family core (PDB, AlphaFoldDB, Ensembl, RefSeq, GeneID, HGNC, KEGG, OrthoDB, Pfam, InterPro) by default. Optionally restrict to specific databases. Returns ids grouped by database plus the databases that matched and per-database counts. response_mode (default compact) returns short ids; full restores raw IRIs. For the exhaustive cross-reference set (incl. drug/disease databases like DrugBank/ChEMBL/OpenTargets) use get_protein_cross_references instead. Signature: map_identifiers(accession, databases=, response_mode=).
Inputs: accession (required), databases, response_mode. Returns: success, _meta, error_code, message, +14 more
run_sparql_queryRun SPARQL QueryARead-onlyIdempotent
Execute an arbitrary SPARQL 1.1 query against the UniProt endpoint (SELECT / ASK / CONSTRUCT / DESCRIBE, including SERVICE federation to Rhea, OMA, Bgee, etc.). SELECT results come back as columns+rows JSON; ASK as a boolean; CONSTRUCT/DESCRIBE as raw RDF in the chosen format. A LIMIT is auto-injected into unbounded SELECTs (see _meta/truncated). This is the escape hatch for anything the typed tools do not cover -- seed queries from search_example_queries. Use uniprot://prefixes for the standard PREFIX block. Unbounded or federated queries can take 10-60 s; bound lookups (anchored on an accession/gene/taxon) return in <2 s. Signature: run_sparql_query(query, result_format=, limit=, timeout_seconds=).
Inputs: query (required), result_format, limit, timeout_seconds. Returns: success, _meta, error_code, message, +14 more
search_example_queriesSearch Example QueriesARead-onlyIdempotent
Search UniProt's 126 curated, executable SPARQL example queries by free text over their descriptions and keyword tags (e.g. 'disease', '3D structure', 'cross-reference', 'taxonomy'). Returns example ids, descriptions, tags, and query types. Fetch the full query text with get_example_query, then run it via run_sparql_query. The best way to learn how to query UniProt. Signature: search_example_queries(text=, limit=).
Inputs: text, limit. Returns: success, _meta, error_code, message, +8 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Each tool has a clearly distinct purpose: find_proteins vs find_proteins_batch are differentiated by batch vs single; get_protein_* tools each target specific data aspects (sequence, features, variants, diseases, GO, cross-refs); SPARQL-related tools are separate; taxonomy and mapping tools are unique. No overlap in functionality.
All tool names follow a consistent verb_noun pattern: find_*, get_*, map_*, run_*, search_*. The naming is predictable and homogeneous, making it easy for an agent to understand the action and target of each tool.
With 15 tools, the server is well-scoped for querying UniProt data. It covers search, retrieval of detailed protein information, cross-references, sequence, features, variants, diseases, GO terms, taxonomy, identifier mapping, SPARQL queries, and server capabilities, without being excessive.
The tool surface is comprehensive for the domain: all major UniProt data types are covered (core summary, cross-references, features, sequence, variants, diseases, GO terms). The inclusion of find_proteins_batch, map_identifiers, get_taxon, and the SPARQL escape hatch ensures no major workflow dead ends. Minor gaps like subcellular localization can be obtained via GO terms or SPARQL.
Maintenance
Related MCP Connectors
UniProt MCP — protein sequence + function database.
MCP server for querying BrainKB, a knowledge base for neuroscience knowledge graphs.
Protein research over UniProtKB: search by function, fetch curated records, map IDs, proteomes.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables language models to fetch protein information from the UniProt database, including protein details, sequences, functions, and structures.MIT
- AlicenseAqualityAmaintenanceAn MCP server that gives AI assistants access to biological and biomedical RDF databases via SPARQL at the RDF Portal, as well as selected REST APIs (NCBI E-utilities, UniProt, ChEMBL, PDB, Reactome, Rhea, MeSH, and more).23321MIT
- AlicenseAqualityDmaintenanceMCP server that exposes the UniProt REST API to LLM clients, enabling search and retrieval of protein data via tools like search_uniprotkb, get_entry, and map_ids.7MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for querying gene annotations, full-text gene search, and species taxonomy via MyGene.info. Enables AI agents to access gene data through natural language questions.89 npmMIT