io.github.cyanheads/uniprot-mcp-server is an MCP server published by io.github.cyanheads, hosted at uniprot.caseyjhand.com. When last checked on 2026-11-23 it was working: it answers and lists its tools. It declares 6 tools, including uniprot_search_proteins, uniprot_get_entry, uniprot_map_ids, uniprot_get_proteome, uniprot_get_taxonomy.
Protein research over UniProtKB: search by function, fetch curated records, map IDs, proteomes.
428 connections through 5 shared values. Tap any node.
Squares are this server's values; dots are other servers sharing them. A shared address or publisher is a lead, not proof of a common operator.
Inferred from the host name and headers: what a server runs on, not who runs it.
Search UniProtKB and return curated protein records. Pass text_search for a plain-language query (the 80% case) or query for the full Lucene field syntax (gene:TP53 AND organism_id:9606 AND reviewed:true) — exactly one is required. Reviewed (Swiss-Prot) entries are manually curated; unreviewed (TrEMBL) are computationally predicted and ~30x more numerous, so reviewed defaults to true to avoid drowning in predictions — set it false to search both tiers together (for TrEMBL only, put reviewed:false in query). The organism_id and reviewed filters apply to the whole query. Request facets (e.g. reviewed, model_organism) for server-side count breakdowns. Results page forward with an opaque cursor; UniProtKB has no offset paging. An inactive accession the query names (merged, demerged, or deleted) comes back in inactive[] with the accessions that replace it, never as a result — the reviewed and organism_id filters do not drop it. This is the discovery entry point — chain results[].accession into uniprot_get_entry for full records, or uniprot_get_sequence for FASTA.
| Parameter | Type | Description |
|---|---|---|
| size | integer | Number of hits per page. Default 25; a value above 500, UniProt's page maximum, returns 500 and says so. |
| query | string | UniProtKB Lucene query with field prefixes — gene, organism_id, keyword (KW-xxxx), go (GO id), reviewed, protein_name, family, length, existence, accession. Example: "gene:BRCA1 AND organism_id:9606 AND reviewed:true". Provide this OR text_search, not both. |
| cursor | string | Opaque forward cursor from this tool for the same exact effective query and filters. Size, fields, and facets may change. Older raw cursors are rejected; restart without cursor. Random access to page N is not supported. |
| facets | string | Comma-separated upstream facet names for count breakdowns, e.g. "reviewed,model_organism,proteins_with". Returns a facets array alongside the hits. |
| fields | string | Comma-separated UniProtKB return-field names that trim each hit, e.g. "accession,gene_names" to drop the function snippet. Omit for the default hit: name, gene, organism, length, reviewed, score, and a function snippet. The identity fields always come back. Hits carry only these fields: accession, i… |
| reviewed | boolean | Restrict to reviewed Swiss-Prot entries. Defaults to true (curated only). false applies no tier filter, returning reviewed and unreviewed TrEMBL entries together; for TrEMBL only, put reviewed:false in query. Ignored when query already contains a reviewed: clause; plain text never overrides this fil… |
| organism_id | integer | Restrict to an NCBI taxon and its descendants, including strains and subspecies, e.g. 9606 for human or 562 for E. coli. Applies taxonomy_id to the whole query, except that an inactive accession the query names carries no organism and still comes back in inactive[]; use an explicit organism_id: clau… |
| text_search | string | Plain-language search across protein names, gene names, and function, e.g. "kinase apoptosis". Punctuation and uppercase AND/OR/NOT are searched as text, with UniProt tokenization; use query for operators and field syntax. Provide this OR query, not both. |
{
"name": "uniprot_search_proteins",
"title": "uniprot-mcp-server: search proteins",
"description": "Search UniProtKB and return curated protein records. Pass text_search for a plain-language query (the 80% case) or query for the full Lucene field syntax (gene:TP53 AND organism_id:9606 AND reviewed:true) — exactly one is required. Reviewed (Swiss-Prot) entries are manually curated; unreviewed (TrEMBL) are computationally predicted and ~30x more numerous, so reviewed defaults to true to avoid drowning in predictions — set it false to search both tiers together (for TrEMBL only, put reviewed:false in query). The organism_id and reviewed filters apply to the whole query. Request facets (e.g. reviewed, model_organism) for server-side count breakdowns. Results page forward with an opaque cursor; UniProtKB has no offset paging. An inactive accession the query names (merged, demerged, or deleted) comes back in inactive[] with the accessions that replace it, never as a result — the reviewed and organism_id filters do not drop it. This is the discovery entry point — chain results[].accession into uniprot_get_entry for full records, or uniprot_get_sequence for FASTA.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"size": {
"type": "integer",
"minimum": 1,
"description": "Number of hits per page. Default 25; a value above 500, UniProt's page maximum, returns 500 and says so."
},
"query": {
"type": "string",
"description": "UniProtKB Lucene query with field prefixes — gene, organism_id, keyword (KW-xxxx), go (GO id), reviewed, protein_name, family, length, existence, accession. Example: \"gene:BRCA1 AND organism_id:9606 AND reviewed:true\". Provide this OR text_search, not both."
},
"cursor": {
"type": "string",
"description": "Opaque forward cursor from this tool for the same exact effective query and filters. Size, fields, and facets may change. Older raw cursors are rejected; restart without cursor. Random access to page N is not supported."
},
"facets": {
"type": "string",
"description": "Comma-separated upstream facet names for count breakdowns, e.g. \"reviewed,model_organism,proteins_with\". Returns a facets array alongside the hits."
},
"fields": {
"type": "string",
"description": "Comma-separated UniProtKB return-field names that trim each hit, e.g. \"accession,gene_names\" to drop the function snippet. Omit for the default hit: name, gene, organism, length, reviewed, score, and a function snippet. The identity fields always come back. Hits carry only these fields: accession, id, protein_name, gene_names, gene_primary, gene_synonym, gene_oln, gene_orf, organism_name, organism_id, length, reviewed, annotation_score, protein_existence, cc_function. Any other field (e.g. ec, ft_act_site, xref_pdb) is not requested and comes back in ignoredFields with a notice — fetch it with uniprot_get_entry. Text that is not a field name fails invalid_query with UniProt's message."
},
"reviewed": {
"type": "boolean",
"default": true,
"description": "Restrict to reviewed Swiss-Prot entries. Defaults to true (curated only). false applies no tier filter, returning reviewed and unreviewed TrEMBL entries together; for TrEMBL only, put reviewed:false in query. Ignored when query already contains a reviewed: clause; plain text never overrides this filter. An inactive accession the query names carries no tier and still comes back in inactive[]."
},
"organism_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Restrict to an NCBI taxon and its descendants, including strains and subspecies, e.g. 9606 for human or 562 for E. coli. Applies taxonomy_id to the whole query, except that an inactive accession the query names carries no organism and still comes back in inactive[]; use an explicit organism_id: clause in query for an exact taxon. Resolve names with uniprot_get_taxonomy.",
"exclusiveMinimum": 0
},
"text_search": {
"type": "string",
"description": "Plain-language search across protein names, gene names, and function, e.g. \"kinase apoptosis\". Punctuation and uppercase AND/OR/NOT are searched as text, with UniProt tokenization; use query for operators and field syntax. Provide this OR query, not both."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"results",
"totalResults",
"effectiveQuery"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"missing_query",
"conflicting_query",
"invalid_query",
"invalid_cursor"
],
"description": "Machine-readable failure mode. Declared by this tool: `missing_query`: Neither text_search nor query was provided. `conflicting_query`: Both text_search and query were provided. `invalid_query`: The query has unbalanced parentheses (rejected before any request), or UniProtKB rejected the query, text_search, fields, or facets value — the message names the rejected value. `invalid_cursor`: The cursor is malformed, from an older version, belongs to another tool or effective query, or UniProt could not continue from it (HTTP 500). Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"cursor": {
"type": "string",
"description": "Forward cursor for the next page. Absent on the last page."
},
"facets": {
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"label",
"values"
],
"properties": {
"name": {
"type": "string",
"description": "Facet identifier, e.g. \"reviewed\"."
},
"label": {
"type": "string",
"description": "Human-readable facet label, e.g. \"Status\"."
},
"values": {
"type": "array",
"items": {
"type": "object",
"required": [
"value",
"label",
"count"
],
"properties": {
"count": {
"type": "number",
"description": "Number of matches in this bucket."
},
"label": {
"type": "string",
"description": "Human-readable value label, e.g. \"Reviewed (Swiss-Prot)\"."
},
"value": {
"type": "string",
"description": "Facet value, e.g. \"true\"."
}
},
"description": "A single facet bucket.",
"additionalProperties": false
},
"description": "Count buckets for this facet."
}
},
"description": "A server-side facet breakdown.",
"additionalProperties": false
},
"description": "Upstream facet count breakdowns. Present only when facets were requested."
},
"notice": {
"type": "string",
"description": "Guidance: the requested and applied size when size was above the 500-row page maximum; when fields named fields hits do not carry, those fields, where to get them, and the fields hits carry; and, when nothing matched, how to broaden — distinguishing plain text from a structured query."
},
"results": {
"type": "array",
"items": {
"type": "object",
"required": [
"accession",
"entryName",
"geneNames",
"organism",
"length",
"reviewed",
"annotationScore",
"proteinExistence"
],
"properties": {
"length": {
"type": "number",
"description": "Canonical sequence length in residues."
},
"organism": {
"type": "object",
"required": [
"scientificName",
"taxonId"
],
"properties": {
"taxonId": {
"type": "number",
"description": "NCBI taxonomy ID, e.g. 9606."
},
"commonName": {
"type": "string",
"description": "Organism common name, e.g. \"Human\". Omitted when none."
},
"scientificName": {
"type": "string",
"description": "Organism scientific name, e.g. \"Homo sapiens\"."
}
},
"description": "Source organism.",
"additionalProperties": false
},
"reviewed": {
"type": "boolean",
"description": "True for reviewed Swiss-Prot (manually curated), false for unreviewed TrEMBL (computationally predicted)."
},
"accession": {
"type": "string",
"description": "UniProtKB primary accession, e.g. \"P04637\". The lookup key for uniprot_get_entry and uniprot_get_sequence."
},
"entryName": {
"type": "string",
"description": "UniProtKB mnemonic ID, e.g. \"P53_HUMAN\". Not an input key — use accession."
},
"geneNames": {
"type": "array",
"items": {
"type": "string",
"description": "A gene name, synonym, ordered-locus name, or ORF name."
},
"description": "Every name of each gene for the protein in UniProt order: gene name, synonyms, ordered-locus names (e.g. \"b3296\", \"JW3258\"), and ORF names (e.g. \"J0580\")."
},
"proteinName": {
"type": "string",
"description": "Recommended full protein name. Omitted when the entry has none."
},
"sequenceFlags": {
"type": "array",
"items": {
"type": "string",
"description": "One flag, as UniProt words it."
},
"description": "UniProt's sequence flags: \"Fragment\" or \"Fragments\" (several non-adjacent pieces) when the sequence is incomplete, so length counts only the residues UniProt holds, not the whole protein; \"Precursor\" when the sequence is processed into a shorter mature form (signal, propeptide, transit peptide, or initiator methionine cleaved). Omitted when UniProt flags none."
},
"annotationScore": {
"type": "number",
"description": "Annotation confidence on a 1–5 scale; higher means more curation evidence."
},
"functionSnippet": {
"type": "string",
"description": "Opening of the first FUNCTION annotation, evidence references stripped: whole sentences within 250 characters (at least the first; one over 400 is cut at a word and ends with …). The complete annotation with evidence is uniprot_get_entry function. Omitted when no function is annotated."
},
"proteinExistence": {
"type": "string",
"description": "Evidence level for the protein's existence, e.g. \"1: Evidence at protein level\"."
},
"functionSnippetMolecule": {
"type": "string",
"description": "The isoform, chain, or peptide the functionSnippet annotation is about, as UniProt names it, e.g. \"Glucagon\" or \"Isoform 2\". Omitted when UniProt names none, so the snippet is about the protein the hit describes, and whenever functionSnippet is."
}
},
"description": "A UniProtKB search hit.",
"additionalProperties": false
},
"description": "Matching active protein hits for this page. Inactive accessions are in inactive."
},
"inactive": {
"type": "array",
"items": {
"type": "object",
"required": [
"accession"
],
"properties": {
"reason": {
"type": "string",
"description": "UniProt inactiveReasonType: MERGED, DEMERGED, or DELETED. Omitted when UniProt names none."
},
"accession": {
"type": "string",
"description": "The inactive UniProtKB accession the query matched."
},
"uniParcId": {
"type": "string",
"description": "UniParc ID that still holds the sequence, when UniProt gives one."
},
"replacedBy": {
"type": "array",
"items": {
"type": "string",
"description": "A replacement UniProtKB accession."
},
"description": "Accessions that replace it — the merge target (MERGED) or the demerge products (DEMERGED). Look these up instead."
},
"deletedReason": {
"type": "string",
"description": "Why UniProt deleted the entry, when it says. Present on DELETED only."
}
},
"description": "An inactive accession the query matched, with where to go instead.",
"additionalProperties": false
},
"description": "Matching accessions that are inactive in UniProtKB (merged, demerged, or deleted) — not proteins to read, but pointers to the accessions that replace them. Present only when the page held any. Under the reviewed or organism_id filter these are the accessions query or text_search names, unless the query already spends more than 98 of UniProt's 100 OR conditions (each OR operand or space-separated term is one); with reviewed: false and no organism_id, every inactive accession the query matches comes back."
},
"totalResults": {
"type": "number",
"description": "Total matches for the query before pagination (from the upstream result count), inactive accessions included — they fall in no facet bucket, so facet counts can sum below it."
},
"ignoredFields": {
"type": "array",
"items": {
"type": "string",
"description": "A requested field name, lowercased, that hits do not carry."
},
"description": "Names in fields that hits do not carry, in request order — left out of the UniProt request, so the search answered without them. Absent when every name was returned."
},
"effectiveQuery": {
"type": "string",
"description": "The query as the server assembled and sent it to UniProtKB."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true
}
}Fetch full curated UniProtKB entries by accession in one batch of up to 20 distinct accessions; repeats collapse, and any further accessions return in deferredAccessions to pass as accessions on the next call. Each entry carries alternative names, function, EC numbers and catalytic activity, cofactors, biophysicochemical properties (enzyme kinetics, pH and temperature dependence, redox potential, absorption), active and binding sites with their ligands, subcellular location and membrane topology, disease involvement, PTMs, molecule processing (signal, propeptides, chains), natural variants, isoforms, domains, free-text comments (PTM, pathway, subunit, tissue specificity), GO terms with their evidence, keywords, cross-references, and Ensembl gene IDs; mutagenesis and IntAct interaction partners come back when sections or fields name them. Partial failures do not abort the batch — resolved entries land in succeeded[] and unknown or inactive (merged, demerged, deleted) accessions in failed[], where an inactive accession names its replacement or UniParc ID. Pass fields to trim the upstream projection; a field this tool cannot return (e.g. sequence) is not requested and is listed in ignoredFields with a notice. Each record is measured on its own across both output surfaces: one within 24,000 UTF-8 bytes returns in succeeded[]; a larger one is listed in outlinedEntries with its size instead. Re-call an outlined accession alone, e.g. accessions:["P04637"], for its section outline (kind: "outline", sections with byte sizes), then add sections:["disease","variants"] to select sections. sections takes exactly one accession; trim a batch with fields instead. All returned list items and cross-reference IDs render in full. A large list section pages with section_limit/section_offset on a re-call naming that one section. To see what is annotated at one residue, pass residue with one accession, e.g. accessions:["P04637"], residue:175, sections:["variants","domains"]: each position-bearing section keeps only its rows covering that canonical position, and residueCoverage counts the covered, excluded, and total rows per section. This tool does not search: accessions come from uniprot_search_proteins.results[].accession or uniprot_map_ids. Strip any isoform suffix (P04637-2 to P04637) before calling.
| Parameter | Type | Description |
|---|---|---|
| fields | string |
Translate identifiers across databases via UniProt's ID-mapping service — gene names to accessions, accession to PDB / Ensembl / RefSeq / ChEMBL / GeneID, and back. The job runs asynchronously; this tool submits it and polls within a budget. A running job returns status "running" with a ticket; pass that ticket, without submission inputs, to poll the same job for another budget. A completed call returns status "finished" with one results page of up to size mappings (default 100); when continuation is present, pass it, without submission inputs, to fetch the next page without re-submitting or polling the job. A gene name often maps to one reviewed Swiss-Prot accession plus dozens of unreviewed TrEMBL ones, so target UniProtKB-Swiss-Prot (reviewed only) for the usual intent, or UniProtKB to include TrEMBL. Pair a gene-symbol from_db with tax_id to disambiguate species. A row whose UniProtKB target is inactive (merged, demerged, or deleted) carries an inactive marker naming its replacements. Chain the resulting active accessions into uniprot_get_entry.
| Parameter | Type | Description |
|---|---|---|
| ids | array | Identifiers to translate. Required only when submitting a new mapping job; omitted when resuming with a ticket or continuation. |
| size | integer | Mappings per completed results page. Default 100; a value above 500, UniProt's page maximum, returns 500 and says so. Applies to the page this call returns, beside a submission, a ticket, or a continuation; a continuation resumes at the next mapping whatever size the previous page had. |
| to_db | string | Target database. UniProtKB-Swiss-Prot = reviewed accessions only (the usual intent); UniProtKB also includes unreviewed TrEMBL. Required only when submitting a new mapping job; omitted when resuming with a ticket or continuation. |
| tax_id | integer | Exact NCBI taxon node for submission, e.g. 9606 for human. Unlike protein search taxonomy filters, this excludes descendant strains and subspecies. Resolve the strain taxon with uniprot_get_taxonomy when needed; no descendant filtering is applied to mapped results. |
Fetch a proteome by UPID (e.g. "UP000005640"), which can name a reference, non-reference, or excluded proteome, or the reference proteome for an organism by NCBI taxon ID (e.g. 9606) — provide exactly one. Returns metadata inline: proteome type (with UniProt's reasons when excluded), total protein count, gene count, reviewed, unreviewed, and additional isoform protein counts, Complete Proteome Detector (CPD) status, BUSCO completeness (score, complete/fragmented/missing counts, lineage dataset), and the genome assembly accession. UniProt computes the gene count and the reviewed, unreviewed, and isoform counts for reference proteomes only, so they are omitted elsewhere. The protein set is opt-in via include_proteins (it is large) and returns a capped page with a forward cursor; narrow it with the query filter (UniProtKB Lucene syntax) for a subset. Resolve an organism name to a taxon ID first with uniprot_get_taxonomy.
| Parameter | Type | Description |
|---|---|---|
| size | integer | Proteins per page when include_proteins is true. Default 25; a value above 500, UniProt's page maximum, returns 500 and says so. |
| upid | any | Proteome UPID. Provide this OR taxon_id, not both. |
| query | string | Optional UniProtKB Lucene filter to narrow the protein list, e.g. "reviewed:true AND keyword:KW-0067". Only applies when include_proteins is true. |
| cursor | string | Opaque cursor from this tool for the same resolved UPID and exact query. Identifier aliases resolving to that UPID and size changes are allowed. Older raw cursors are rejected; restart without cursor. Only meaningful with include_proteins. |
| taxon_id | integer | NCBI taxon ID, e.g. 9606 for human. Prefers an exact reference proteome; otherwise resolves a unique descendant reference, or returns candidate UPIDs and taxon IDs for explicit selection. Provide this OR upid, not both. |
Resolve a taxonomy record by NCBI taxon ID (e.g. 9606) or organism name (e.g. "Homo sapiens" or "human") — provide exactly one. Exact case-insensitive scientific names take priority, then common names, mnemonic and aliases; stray double quotes and backslashes are tolerated after exact matching. Ties and partial matches return candidate taxon IDs instead of guessing. Returns the scientific and common name, mnemonic, rank, parent, and full lineage. Set include_children for immediate child taxa in pages of 100; pass the returned cursor for the next page. Use the resolved taxon ID with uniprot_search_proteins (organism_id) or uniprot_get_proteome (taxon_id).
| Parameter | Type | Description |
|---|---|---|
| name | string | Organism name, e.g. "Homo sapiens" or "human". Exact case-insensitive scientific names take priority, then common names, mnemonic and aliases. Stray double quotes and backslashes are tolerated only after exact matching; ties require taxon_id. Provide this OR taxon_id, not both. |
| cursor | string | Forward-pagination cursor from a prior children page, for the next page of the same taxon; a cursor issued for another taxon is rejected. Only meaningful with include_children. |
| taxon_id | integer | NCBI taxonomy ID, e.g. 9606. Provide this OR name, not both. |
| include_children | boolean | When true, also fetch a page of up to 100 immediate child taxa via a follow-up search. Defaults to false. |
{
"name": "uniprot_get_taxonomy",
"title": "uniprot-mcp-server: get taxonomy",
"description": "Resolve a taxonomy record by NCBI taxon ID (e.g. 9606) or organism name (e.g. \"Homo sapiens\" or \"human\") — provide exactly one. Exact case-insensitive scientific names take priority, then common names, mnemonic and aliases; stray double quotes and backslashes are tolerated after exact matching. Ties and partial matches return candidate taxon IDs instead of guessing. Returns the scientific and common name, mnemonic, rank, parent, and full lineage. Set include_children for immediate child taxa in pages of 100; pass the returned cursor for the next page. Use the resolved taxon ID with uniprot_search_proteins (organism_id) or uniprot_get_proteome (taxon_id).",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"name": {
"type": "string",
"description": "Organism name, e.g. \"Homo sapiens\" or \"human\". Exact case-insensitive scientific names take priority, then common names, mnemonic and aliases. Stray double quotes and backslashes are tolerated only after exact matching; ties require taxon_id. Provide this OR taxon_id, not both."
},
"cursor": {
"type": "string",
"description": "Forward-pagination cursor from a prior children page, for the next page of the same taxon; a cursor issued for another taxon is rejected. Only meaningful with include_children."
},
"taxon_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "NCBI taxonomy ID, e.g. 9606. Provide this OR name, not both.",
"exclusiveMinimum": 0
},
"include_children": {
"type": "boolean",
"default": false,
"description": "When true, also fetch a page of up to 100 immediate child taxa via a follow-up search. Defaults to false."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"taxon",
"lineage"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"cap": {
"type": "number",
"description": "The page size that was applied, when more remain."
},
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"incomplete_candidates",
"ambiguous_name",
"no_exact_match",
"missing_identifier",
"conflicting_identifier",
"not_found",
"invalid_cursor"
],
"description": "Machine-readable failure mode. Declared by this tool: `incomplete_candidates`: The 45-second name lookup budget expires before all candidate pages are checked. `ambiguous_name`: Multiple taxa share the best exact name match. `no_exact_match`: Only partial candidate names match. `missing_identifier`: Neither taxon_id nor name was provided. `conflicting_identifier`: Both taxon_id and name were provided. `not_found`: The taxon ID or name did not resolve to a record. `invalid_cursor`: The cursor was issued for another taxon, is malformed, or UniProt could not continue from it. Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"shown": {
"type": "number",
"description": "Number of children on this page, when more remain."
},
"taxon": {
"type": "object",
"required": [
"taxonId",
"scientificName",
"rank"
],
"properties": {
"rank": {
"type": "string",
"description": "Taxonomic rank, e.g. \"species\"."
},
"parent": {
"type": "object",
"required": [
"taxonId",
"scientificName"
],
"properties": {
"taxonId": {
"type": "number",
"description": "Parent taxon ID."
},
"scientificName": {
"type": "string",
"description": "Parent scientific name."
}
},
"description": "Immediate parent taxon. Omitted at the root.",
"additionalProperties": false
},
"taxonId": {
"type": "number",
"description": "NCBI taxonomy ID."
},
"mnemonic": {
"type": "string",
"description": "UniProt organism mnemonic, e.g. \"HUMAN\". Omitted when none."
},
"commonName": {
"type": "string",
"description": "Common name. Omitted when none."
},
"otherNames": {
"type": "array",
"items": {
"type": "string",
"description": "An alternative name or synonym."
},
"description": "Synonyms and alternative spellings. Omitted when none."
},
"scientificName": {
"type": "string",
"description": "Scientific name."
}
},
"description": "The taxonomy record.",
"additionalProperties": false
},
"cursor": {
"type": "string",
"description": "Forward cursor for the next children page. Absent on the last page."
},
"notice": {
"type": "string",
"description": "Paging guidance when more children remain — the total and how to continue."
},
"lineage": {
"type": "array",
"items": {
"type": "object",
"required": [
"taxonId",
"scientificName",
"rank"
],
"properties": {
"rank": {
"type": "string",
"description": "Taxonomic rank, e.g. \"phylum\", \"clade\", \"no rank\"."
},
"taxonId": {
"type": "number",
"description": "NCBI taxonomy ID of the lineage node."
},
"commonName": {
"type": "string",
"description": "Common name of the node. Omitted when none."
},
"scientificName": {
"type": "string",
"description": "Scientific name of the lineage node."
}
},
"description": "A node in the lineage, ordered root → near.",
"additionalProperties": false
},
"description": "Full lineage from root to the taxon's near ancestor."
},
"children": {
"type": "array",
"items": {
"type": "object",
"required": [
"taxonId",
"scientificName",
"rank"
],
"properties": {
"rank": {
"type": "string",
"description": "Child rank."
},
"taxonId": {
"type": "number",
"description": "Child taxon ID."
},
"scientificName": {
"type": "string",
"description": "Child scientific name."
}
},
"description": "An immediate child taxon.",
"additionalProperties": false
},
"description": "One page of immediate children (up to 100). Present only when include_children is true."
},
"truncated": {
"type": "boolean",
"description": "True when more children remain past this page — fetch them with cursor."
},
"childCount": {
"type": "number",
"description": "Number of immediate children on this page (when include_children is true)."
},
"totalChildren": {
"type": "number",
"description": "Total immediate children of the taxon across all pages (when include_children is true)."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true
}
}Fetch the canonical amino-acid sequence (FASTA) for a UniProtKB accession, with length and the parsed header. Set include_isoforms to also return the alternatively-spliced isoform sequences. This is the cheap sequence-only path — for the full functional record use uniprot_get_entry. A merged accession returns the sequences of its merge target, labelled with the target accession and the requested one in mergedFrom; a demerged or deleted accession fails not_found naming its replacements or UniParc ID. Accessions come from uniprot_search_proteins or uniprot_map_ids; strip any "-N" isoform suffix (P04637-2 to P04637) before calling.
| Parameter | Type | Description |
|---|---|---|
| accession * | string | UniProtKB primary accession, e.g. "P04637". Canonical form only — strip any "-N" isoform suffix. |
| include_isoforms | boolean | When true, also return the isoform sequences. Defaults to false (canonical only). |
{
"name": "uniprot_get_sequence",
"title": "uniprot-mcp-server: get sequence",
"description": "Fetch the canonical amino-acid sequence (FASTA) for a UniProtKB accession, with length and the parsed header. Set include_isoforms to also return the alternatively-spliced isoform sequences. This is the cheap sequence-only path — for the full functional record use uniprot_get_entry. A merged accession returns the sequences of its merge target, labelled with the target accession and the requested one in mergedFrom; a demerged or deleted accession fails not_found naming its replacements or UniParc ID. Accessions come from uniprot_search_proteins or uniprot_map_ids; strip any \"-N\" isoform suffix (P04637-2 to P04637) before calling.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"accession"
],
"properties": {
"accession": {
"type": "string",
"pattern": "^(?:[OPQ][0-9][A-Z0-9]{3}[0-9]|[A-NR-Z][0-9](?:[A-Z][A-Z0-9]{2}[0-9]){1,2})$",
"description": "UniProtKB primary accession, e.g. \"P04637\". Canonical form only — strip any \"-N\" isoform suffix."
},
"include_isoforms": {
"type": "boolean",
"default": false,
"description": "When true, also return the isoform sequences. Defaults to false (canonical only)."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"accession",
"canonical"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"not_found"
],
"description": "Machine-readable failure mode. Declared by this tool: `not_found`: The accession has no sequence in UniProtKB — unknown, or demerged or deleted; for an inactive accession the message names its replacements or UniParc ID. Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"isoforms": {
"type": "array",
"items": {
"type": "object",
"required": [
"header",
"sequence",
"length",
"isoformId"
],
"properties": {
"header": {
"type": "string",
"description": "The FASTA header line (without the leading \">\"), e.g. \"sp|P04637|P53_HUMAN Cellular tumor antigen p53 OS=Homo sapiens OX=9606 GN=TP53 PE=1 SV=4\"."
},
"length": {
"type": "number",
"description": "Sequence length in residues."
},
"sequence": {
"type": "string",
"description": "The amino-acid sequence as a single string (newlines removed)."
},
"isoformId": {
"type": "string",
"description": "Isoform accession, e.g. \"P04637-2\"."
}
},
"description": "An isoform sequence record.",
"additionalProperties": false
},
"description": "Isoform sequence records. Present only when include_isoforms is true and isoforms exist."
},
"accession": {
"type": "string",
"description": "The accession whose sequences are returned — the requested one, or its merge target when mergedFrom is present."
},
"canonical": {
"type": "object",
"required": [
"header",
"sequence",
"length"
],
"properties": {
"header": {
"type": "string",
"description": "The FASTA header line (without the leading \">\"), e.g. \"sp|P04637|P53_HUMAN Cellular tumor antigen p53 OS=Homo sapiens OX=9606 GN=TP53 PE=1 SV=4\"."
},
"length": {
"type": "number",
"description": "Sequence length in residues."
},
"sequence": {
"type": "string",
"description": "The amino-acid sequence as a single string (newlines removed)."
}
},
"description": "The canonical sequence record.",
"additionalProperties": false
},
"mergedFrom": {
"type": "string",
"description": "The requested accession, present only when UniProt merged it into accession; every record here is the merge target. Omitted for an active accession."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true
}
}Protein-first research over UniProt (rest.uniprot.org), keyless. Start with uniprot_search_proteins (function/gene/organism queries) or arrive from a sibling identifier through uniprot_map_ids — the bridge that turns a gene, Ensembl, ChEMBL, RefSeq, or PDB id into a UniProtKB accession. Reviewed Swiss-Prot entries are manually curated; unreviewed TrEMBL are computationally predicted and ~30x more numerous, so favor reviewed:true unless you specifically want predictions. Chain accessions into uniprot_get_entry for curated records and uniprot_get_sequence for FASTA. The default entry record carries function, catalytic activity, cofactors, biophysicochemical properties (enzyme kinetics, pH and temperature dependence, redox potential, absorption), active and binding sites, location and membrane topology, disease, PTMs and processing, variants, isoforms, domains, free-text comments, GO terms, keywords, and cross-references; the mutagenesis and interactions sections come back only when sections or fields name them. A name in fields that a tool cannot return is not requested and comes back in ignoredFields. uniprot_get_entry fetches up to 20 distinct accessions per call and returns any more in deferredAccessions, to pass as accessions on the next call. A record over 24,000 bytes on its own is listed in outlinedEntries instead of inlined: re-call it alone, e.g. accessions:["P04637"], for its section outline. A singleton section outline is retrieved with that one accession and sections:["function","disease"]; use section_limit/section_offset for one large list section. To see what is annotated at one residue, pass residue with one accession: each position-bearing section keeps only its rows covering that canonical position, and residueCoverage.excluded counts the rows with no canonical position, to read before concluding nothing is annotated there. Cross-references hop outward: PDB ids to protein-mcp-server for structure, ChEMBL ids to chembl for bioactivity, PubMed evidence to pubmed. Data is UniProt, CC BY 4.0 — attribute UniProt in downstream use.
Names, descriptions and schemas were written by the server and are shown as data.
Pattern matches on what the server declares. They show what it says it can do, not what it does.
Too large to show here.
| Comma-separated UniProtKB return-field names to fetch in place of the default record, e.g. "accession,cc_function,ft_variant,xref_pdb" — trims a batch. Omit for the default record. The identity fields always come back. Names are case-insensitive; keywordid is sent as keyword and rhea as cc_catalytic… |
| residue | integer | A residue position, 1-based on the canonical sequence, e.g. 175. Keeps only the rows covering it in each position-bearing section — sites, topology, ptms, processing, variants, mutagenesis, domains — in UniProt order: a disulfide bond or cross-link covers its two bonded residues; any other row cover… |
| sections | array | Section keys to return for one accession, e.g. ["disease","variants"]: the record is cut to these plus its identity fields. Re-call an accession with it after a kind: "outline" response, or name the on-request sections mutagenesis and interactions, which the default record leaves out — without field… |
| accessions * | array | Accessions to fetch (1–500). Repeats collapse to their first occurrence; the first 20 distinct are fetched and the rest return in deferredAccessions, in order, for the next call. From uniprot_search_proteins or uniprot_map_ids. |
| section_limit | integer | Window size for one list section on a sections re-call: return at most this many items of it (at least 1; a value past the remaining items returns them all). Requires sections naming exactly one list section, e.g. ["variants"] (or ptms, domains, goTerms). Omit together with section_offset to return … |
| section_offset | integer | Zero-based index of the first item in the windowed section. Defaults to 0. Pass the previous response's nextOffset to page forward, keeping residue when it was set. Same requirements as section_limit; set without section_limit, returns every item from this index on. |
{
"name": "uniprot_get_entry",
"title": "uniprot-mcp-server: get entry",
"description": "Fetch full curated UniProtKB entries by accession in one batch of up to 20 distinct accessions; repeats collapse, and any further accessions return in deferredAccessions to pass as accessions on the next call. Each entry carries alternative names, function, EC numbers and catalytic activity, cofactors, biophysicochemical properties (enzyme kinetics, pH and temperature dependence, redox potential, absorption), active and binding sites with their ligands, subcellular location and membrane topology, disease involvement, PTMs, molecule processing (signal, propeptides, chains), natural variants, isoforms, domains, free-text comments (PTM, pathway, subunit, tissue specificity), GO terms with their evidence, keywords, cross-references, and Ensembl gene IDs; mutagenesis and IntAct interaction partners come back when sections or fields name them. Partial failures do not abort the batch — resolved entries land in succeeded[] and unknown or inactive (merged, demerged, deleted) accessions in failed[], where an inactive accession names its replacement or UniParc ID. Pass fields to trim the upstream projection; a field this tool cannot return (e.g. sequence) is not requested and is listed in ignoredFields with a notice. Each record is measured on its own across both output surfaces: one within 24,000 UTF-8 bytes returns in succeeded[]; a larger one is listed in outlinedEntries with its size instead. Re-call an outlined accession alone, e.g. accessions:[\"P04637\"], for its section outline (kind: \"outline\", sections with byte sizes), then add sections:[\"disease\",\"variants\"] to select sections. sections takes exactly one accession; trim a batch with fields instead. All returned list items and cross-reference IDs render in full. A large list section pages with section_limit/section_offset on a re-call naming that one section. To see what is annotated at one residue, pass residue with one accession, e.g. accessions:[\"P04637\"], residue:175, sections:[\"variants\",\"domains\"]: each position-bearing section keeps only its rows covering that canonical position, and residueCoverage counts the covered, excluded, and total rows per section. This tool does not search: accessions come from uniprot_search_proteins.results[].accession or uniprot_map_ids. Strip any isoform suffix (P04637-2 to P04637) before calling.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"accessions"
],
"properties": {
"fields": {
"type": "string",
"description": "Comma-separated UniProtKB return-field names to fetch in place of the default record, e.g. \"accession,cc_function,ft_variant,xref_pdb\" — trims a batch. Omit for the default record. The identity fields always come back. Names are case-insensitive; keywordid is sent as keyword and rhea as cc_catalytic_activity. Any xref_ field (e.g. xref_reactome) fills xrefs. A field this tool does not return (e.g. sequence, which uniprot_get_sequence returns, or ft_helix) is not requested from UniProt and comes back in ignoredFields with a notice listing the supported fields. An xref_ database UniProt does not know, or text that is not a field name, fails invalid_fields with UniProt's message."
},
"residue": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 1,
"description": "A residue position, 1-based on the canonical sequence, e.g. 175. Keeps only the rows covering it in each position-bearing section — sites, topology, ptms, processing, variants, mutagenesis, domains — in UniProt order: a disulfide bond or cross-link covers its two bonded residues; any other row covers start through end, an OUTSIDE or UNSURE bound counting at its value. A row numbered on an isoform, a non-bond row with an UNKNOWN bound, or a bond with no known partner never matches and is counted as excluded. A section with no covering row is left out; residueCoverage gives each section's covered, excluded, and total rows. Other sections return as usual; with sections, only the named ones are filtered and returned. Filtering comes before section_limit/section_offset and the 24,000-byte check, so windows, totalCount, nextOffset, and outline sizes count covering rows — keep residue on every re-call. Requires exactly one accession; a residue past the entry's length fails."
},
"sections": {
"type": "array",
"items": {
"type": "string",
"description": "A section key of the entry record, e.g. \"disease\", \"variants\", \"mutagenesis\", \"interactions\". Case-insensitive."
},
"description": "Section keys to return for one accession, e.g. [\"disease\",\"variants\"]: the record is cut to these plus its identity fields. Re-call an accession with it after a kind: \"outline\" response, or name the on-request sections mutagenesis and interactions, which the default record leaves out — without fields, naming one fetches it; with fields, include ft_mutagen or cc_interaction there. Requires exactly one accession: a batch with sections is rejected, so trim a batch with fields. A requested section the record lacks is named in absentSections, not an error."
},
"accessions": {
"type": "array",
"items": {
"type": "string",
"pattern": "^(?:[OPQ][0-9][A-Z0-9]{3}[0-9]|[A-NR-Z][0-9](?:[A-Z][A-Z0-9]{2}[0-9]){1,2})$",
"description": "A UniProtKB primary accession, e.g. \"P04637\". Canonical form only — strip any \"-N\" isoform suffix."
},
"maxItems": 500,
"minItems": 1,
"description": "Accessions to fetch (1–500). Repeats collapse to their first occurrence; the first 20 distinct are fetched and the rest return in deferredAccessions, in order, for the next call. From uniprot_search_proteins or uniprot_map_ids."
},
"section_limit": {
"type": "integer",
"minimum": 1,
"description": "Window size for one list section on a sections re-call: return at most this many items of it (at least 1; a value past the remaining items returns them all). Requires sections naming exactly one list section, e.g. [\"variants\"] (or ptms, domains, goTerms). Omit together with section_offset to return the whole section."
},
"section_offset": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0,
"description": "Zero-based index of the first item in the windowed section. Defaults to 0. Pass the previous response's nextOffset to page forward, keeping residue when it was set. Same requirements as section_limit; set without section_limit, returns every item from this index on."
}
},
"additionalProperties": false
},
"outputSchema": {
"truncated": true,
"chars": 41482
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true
}
}| ticket | string | Running-job ticket from a prior status "running" response. Pass it without continuation or submission inputs to poll that job for another budget; size may accompany it. |
| from_db | string | Source database. Gene_Name = gene symbol (e.g. TP53; pair with tax_id); UniProtKB_AC-ID = accession or entry name; Ensembl/Ensembl_Protein = ENSG/ENSP; PDB; RefSeq_Nucleotide/RefSeq_Protein = NM_/NP_; ChEMBL; GeneID = NCBI Gene. Required only when submitting a new mapping job; omitted when resuming … |
| continuation | object | Completed-page continuation from a prior status "finished" response. Pass it without a ticket or submission inputs to fetch the next page without polling or re-submitting; size may accompany it. |
{
"name": "uniprot_map_ids",
"title": "uniprot-mcp-server: map IDs",
"description": "Translate identifiers across databases via UniProt's ID-mapping service — gene names to accessions, accession to PDB / Ensembl / RefSeq / ChEMBL / GeneID, and back. The job runs asynchronously; this tool submits it and polls within a budget. A running job returns status \"running\" with a ticket; pass that ticket, without submission inputs, to poll the same job for another budget. A completed call returns status \"finished\" with one results page of up to size mappings (default 100); when continuation is present, pass it, without submission inputs, to fetch the next page without re-submitting or polling the job. A gene name often maps to one reviewed Swiss-Prot accession plus dozens of unreviewed TrEMBL ones, so target UniProtKB-Swiss-Prot (reviewed only) for the usual intent, or UniProtKB to include TrEMBL. Pair a gene-symbol from_db with tax_id to disambiguate species. A row whose UniProtKB target is inactive (merged, demerged, or deleted) carries an inactive marker naming its replacements. Chain the resulting active accessions into uniprot_get_entry.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"ids": {
"type": "array",
"items": {
"type": "string",
"description": "A source identifier in the from_db namespace, e.g. \"TP53\" for Gene_Name."
},
"maxItems": 100000,
"description": "Identifiers to translate. Required only when submitting a new mapping job; omitted when resuming with a ticket or continuation."
},
"size": {
"type": "integer",
"minimum": 1,
"description": "Mappings per completed results page. Default 100; a value above 500, UniProt's page maximum, returns 500 and says so. Applies to the page this call returns, beside a submission, a ticket, or a continuation; a continuation resumes at the next mapping whatever size the previous page had."
},
"to_db": {
"enum": [
"UniProtKB",
"UniProtKB-Swiss-Prot",
"Gene_Name",
"GeneID",
"Ensembl",
"Ensembl_Protein",
"PDB",
"RefSeq_Nucleotide",
"RefSeq_Protein",
"ChEMBL",
"PomBase",
"WormBase_Protein"
],
"type": "string",
"description": "Target database. UniProtKB-Swiss-Prot = reviewed accessions only (the usual intent); UniProtKB also includes unreviewed TrEMBL. Required only when submitting a new mapping job; omitted when resuming with a ticket or continuation."
},
"tax_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "Exact NCBI taxon node for submission, e.g. 9606 for human. Unlike protein search taxonomy filters, this excludes descendant strains and subspecies. Resolve the strain taxon with uniprot_get_taxonomy when needed; no descendant filtering is applied to mapped results.",
"exclusiveMinimum": 0
},
"ticket": {
"type": "string",
"minLength": 1,
"description": "Running-job ticket from a prior status \"running\" response. Pass it without continuation or submission inputs to poll that job for another budget; size may accompany it."
},
"from_db": {
"enum": [
"UniProtKB_AC-ID",
"Gene_Name",
"GeneID",
"Ensembl",
"Ensembl_Protein",
"PDB",
"RefSeq_Nucleotide",
"RefSeq_Protein",
"ChEMBL",
"PomBase",
"WormBase_Protein"
],
"type": "string",
"description": "Source database. Gene_Name = gene symbol (e.g. TP53; pair with tax_id); UniProtKB_AC-ID = accession or entry name; Ensembl/Ensembl_Protein = ENSG/ENSP; PDB; RefSeq_Nucleotide/RefSeq_Protein = NM_/NP_; ChEMBL; GeneID = NCBI Gene. Required only when submitting a new mapping job; omitted when resuming with a ticket or continuation."
},
"continuation": {
"type": "object",
"required": [
"jobId",
"cursor"
],
"properties": {
"jobId": {
"type": "string",
"minLength": 1,
"description": "UniProt ID-mapping job identifier for the completed job."
},
"cursor": {
"type": "string",
"minLength": 1,
"description": "Opaque cursor for the next completed results page."
}
},
"description": "Completed-page continuation from a prior status \"finished\" response. Pass it without a ticket or submission inputs to fetch the next page without polling or re-submitting; size may accompany it."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"status"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"mapping_failed",
"missing_inputs",
"conflicting_inputs",
"unsupported_db_pair",
"invalid_ticket",
"invalid_continuation"
],
"description": "Machine-readable failure mode. Declared by this tool: `mapping_failed`: UniProt reports a terminal ERROR for the mapping job. `missing_inputs`: No complete submission, running-job ticket, or completed-page continuation was provided. `conflicting_inputs`: Submission inputs, a running-job ticket, or a completed-page continuation were combined. `unsupported_db_pair`: The from_db/to_db combination is not supported by the ID-mapping service. `invalid_ticket`: The resume ticket is not a UniProt job ID, or is unknown or has expired server-side (UniProt holds jobs only temporarily). `invalid_continuation`: The completed-page continuation has an invalid job ID, is unknown or expired, or UniProt rejected the page with HTTP 400. Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"notice": {
"type": "string",
"description": "Status guidance — e.g. that the job is still running or its latest status check failed upstream, that size was above the 500-row page maximum, that no IDs mapped, why target identity is unavailable, or that inactive targets could not be marked on this page."
},
"status": {
"enum": [
"finished",
"running"
],
"type": "string",
"description": "Job state: \"finished\" (one completed results page included) or \"running\" (poll with ticket)."
},
"ticket": {
"type": "string",
"description": "Running-job ticket (present only when status is \"running\"). Pass it back as ticket, without submission inputs, to poll the same job."
},
"results": {
"type": "array",
"items": {
"type": "object",
"required": [
"from",
"to"
],
"properties": {
"to": {
"type": "string",
"description": "The resolved target identifier (e.g. a UniProtKB accession)."
},
"from": {
"type": "string",
"description": "The source identifier that was mapped."
},
"gene": {
"type": "string",
"description": "Primary target gene name when available."
},
"inactive": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"description": "UniProt inactiveReasonType: MERGED, DEMERGED, or DELETED. Omitted when UniProt names none."
},
"uniParcId": {
"type": "string",
"description": "UniParc ID that still holds the sequence, when UniProt gives one."
},
"replacedBy": {
"type": "array",
"items": {
"type": "string",
"description": "A replacement UniProtKB accession."
},
"description": "Accessions that replace the target — the merge target (MERGED) or the demerge products (DEMERGED)."
},
"deletedReason": {
"type": "string",
"description": "Why UniProt deleted the target, when it says. Present on DELETED only."
}
},
"description": "Present only when the target accession is inactive in UniProtKB — it has no entry to fetch; use replacedBy or uniParcId instead. Absent for an active target.",
"additionalProperties": false
},
"organism": {
"type": "object",
"required": [
"taxonId"
],
"properties": {
"taxonId": {
"type": "number",
"description": "Target NCBI taxon ID."
},
"scientificName": {
"type": "string",
"description": "Target organism name when available."
}
},
"description": "UniProtKB target organism when available.",
"additionalProperties": false
},
"reviewed": {
"type": "boolean",
"description": "Whether UniProtKB marks the target reviewed."
},
"entryName": {
"type": "string",
"description": "UniProtKB entry name when available."
}
},
"description": "A single from→to mapping.",
"additionalProperties": false
},
"description": "Resolved mappings on this completed page (present only when status is \"finished\"). Failed source IDs are reported in unmappedIds."
},
"mappedCount": {
"type": "number",
"description": "Number of resolved mappings on this page (finished jobs only)."
},
"unmappedIds": {
"type": "array",
"items": {
"type": "string",
"description": "A source ID that resolved to nothing."
},
"description": "Job-wide source IDs UniProt reported as failed, repeated on every completed page. Absent when none failed."
},
"continuation": {
"type": "object",
"required": [
"jobId",
"cursor"
],
"properties": {
"jobId": {
"type": "string",
"minLength": 1,
"description": "UniProt ID-mapping job identifier for the completed job."
},
"cursor": {
"type": "string",
"minLength": 1,
"description": "Opaque cursor for the next completed results page."
}
},
"description": "Next completed-page continuation (finished jobs only). Pass it back as continuation, without submission inputs, to fetch the next page; absent on the terminal page.",
"additionalProperties": false
},
"totalMappings": {
"type": "number",
"description": "Job-wide total mappings reported by UniProt; absent when unavailable."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true
}
}| include_proteins | boolean | When true, also return a capped, cursor-paginated page of the proteome's proteins. Defaults to false — metadata alone is the common case. |
{
"name": "uniprot_get_proteome",
"title": "uniprot-mcp-server: get proteome",
"description": "Fetch a proteome by UPID (e.g. \"UP000005640\"), which can name a reference, non-reference, or excluded proteome, or the reference proteome for an organism by NCBI taxon ID (e.g. 9606) — provide exactly one. Returns metadata inline: proteome type (with UniProt's reasons when excluded), total protein count, gene count, reviewed, unreviewed, and additional isoform protein counts, Complete Proteome Detector (CPD) status, BUSCO completeness (score, complete/fragmented/missing counts, lineage dataset), and the genome assembly accession. UniProt computes the gene count and the reviewed, unreviewed, and isoform counts for reference proteomes only, so they are omitted elsewhere. The protein set is opt-in via include_proteins (it is large) and returns a capped page with a forward cursor; narrow it with the query filter (UniProtKB Lucene syntax) for a subset. Resolve an organism name to a taxon ID first with uniprot_get_taxonomy.",
"inputSchema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"size": {
"type": "integer",
"minimum": 1,
"description": "Proteins per page when include_proteins is true. Default 25; a value above 500, UniProt's page maximum, returns 500 and says so."
},
"upid": {
"anyOf": [
{
"type": "string",
"const": ""
},
{
"type": "string",
"pattern": "^UP[0-9]{9}$",
"description": "Proteome identifier, e.g. \"UP000005640\"."
}
],
"description": "Proteome UPID. Provide this OR taxon_id, not both."
},
"query": {
"type": "string",
"description": "Optional UniProtKB Lucene filter to narrow the protein list, e.g. \"reviewed:true AND keyword:KW-0067\". Only applies when include_proteins is true."
},
"cursor": {
"type": "string",
"description": "Opaque cursor from this tool for the same resolved UPID and exact query. Identifier aliases resolving to that UPID and size changes are allowed. Older raw cursors are rejected; restart without cursor. Only meaningful with include_proteins."
},
"taxon_id": {
"type": "integer",
"maximum": 9007199254740991,
"description": "NCBI taxon ID, e.g. 9606 for human. Prefers an exact reference proteome; otherwise resolves a unique descendant reference, or returns candidate UPIDs and taxon IDs for explicit selection. Provide this OR upid, not both.",
"exclusiveMinimum": 0
},
"include_proteins": {
"type": "boolean",
"default": false,
"description": "When true, also return a capped, cursor-paginated page of the proteome's proteins. Defaults to false — metadata alone is the common case."
}
},
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"anyOf": [
{
"not": {
"required": [
"error"
]
},
"required": [
"proteome"
]
},
{
"required": [
"error"
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"cap": {
"type": "number",
"description": "The page-size cap that was applied."
},
"error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "JSON-RPC error code for this failure."
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"examples": [
"ambiguous_proteome",
"missing_identifier",
"conflicting_identifier",
"not_found",
"invalid_query",
"invalid_cursor"
],
"description": "Machine-readable failure mode. Declared by this tool: `ambiguous_proteome`: Multiple descendant reference proteomes exist or candidate pages remain. `missing_identifier`: Neither upid nor taxon_id was provided. `conflicting_identifier`: Both upid and taxon_id were provided. `not_found`: No proteome has the UPID, or the taxon has no reference proteome. `invalid_query`: The query filter has unbalanced parentheses (rejected before any request), or UniProtKB rejected it — the message names the rejected field or syntax. `invalid_cursor`: The protein cursor is malformed, from an older version, belongs to another tool, resolved UPID or query, or UniProt could not continue from it (HTTP 500). Other values are possible when a failure originates below the handler."
},
"recovery": {
"type": "object",
"required": [
"hint"
],
"properties": {
"hint": {
"type": "string"
}
},
"description": "Actionable next step for the caller.",
"additionalProperties": {}
},
"retryable": {
"type": "boolean",
"description": "Whether retrying may succeed."
}
},
"additionalProperties": {}
},
"message": {
"type": "string",
"description": "Human-readable description of what went wrong."
}
},
"description": "Present when the call failed. Absent on success.",
"additionalProperties": {}
},
"query": {
"type": "string",
"description": "The protein filter as supplied by the caller."
},
"shown": {
"type": "number",
"description": "Number of proteins returned in this page."
},
"cursor": {
"type": "string",
"description": "Forward cursor for the next protein page. Absent on the last page."
},
"notice": {
"type": "string",
"description": "Guidance: the requested and applied size when size was above the 500-row page maximum; how to reach the rest when the protein page was capped (walk the cursor or narrow with the query filter); or that no protein matched."
},
"proteins": {
"type": "array",
"items": {
"type": "object",
"required": [
"accession",
"entryName",
"geneNames",
"organism",
"length",
"reviewed",
"annotationScore",
"proteinExistence"
],
"properties": {
"length": {
"type": "number",
"description": "Canonical sequence length in residues."
},
"organism": {
"type": "object",
"required": [
"scientificName",
"taxonId"
],
"properties": {
"taxonId": {
"type": "number",
"description": "NCBI taxonomy ID."
},
"commonName": {
"type": "string",
"description": "Organism common name. Omitted when none."
},
"scientificName": {
"type": "string",
"description": "Organism scientific name."
}
},
"description": "Source organism.",
"additionalProperties": false
},
"reviewed": {
"type": "boolean",
"description": "True for reviewed Swiss-Prot, false for unreviewed TrEMBL."
},
"accession": {
"type": "string",
"description": "UniProtKB primary accession."
},
"entryName": {
"type": "string",
"description": "UniProtKB mnemonic ID."
},
"geneNames": {
"type": "array",
"items": {
"type": "string",
"description": "A gene name, synonym, ordered-locus name, or ORF name."
},
"description": "Every name of each gene in UniProt order: gene name, synonyms, ordered-locus names (e.g. \"b3296\", \"JW3258\"), and ORF names (e.g. \"J0580\")."
},
"proteinName": {
"type": "string",
"description": "Recommended protein name. Omitted when none."
},
"sequenceFlags": {
"type": "array",
"items": {
"type": "string",
"description": "One flag, as UniProt words it."
},
"description": "UniProt's sequence flags: \"Fragment\" or \"Fragments\" (several non-adjacent pieces) when the sequence is incomplete, so length counts only the residues UniProt holds, not the whole protein; \"Precursor\" when the sequence is processed into a shorter mature form (signal, propeptide, transit peptide, or initiator methionine cleaved). Omitted when UniProt flags none."
},
"annotationScore": {
"type": "number",
"description": "Annotation confidence on a 1–5 scale."
},
"functionSnippet": {
"type": "string",
"description": "Opening of the first FUNCTION annotation, evidence references stripped: whole sentences within 250 characters (at least the first; one over 400 is cut at a word and ends with …). The complete annotation with evidence is uniprot_get_entry function. Omitted when none."
},
"proteinExistence": {
"type": "string",
"description": "Protein-existence evidence level."
},
"functionSnippetMolecule": {
"type": "string",
"description": "The isoform, chain, or peptide the functionSnippet annotation is about, as UniProt names it, e.g. \"Glucagon\" or \"Isoform 2\". Omitted when UniProt names none, so the snippet is about the protein the row describes, and whenever functionSnippet is."
}
},
"description": "A protein in the proteome.",
"additionalProperties": false
},
"description": "A capped page of the proteome's proteins. Present only when include_proteins is true."
},
"proteome": {
"type": "object",
"required": [
"upid",
"proteomeType",
"organism",
"proteinCount"
],
"properties": {
"upid": {
"type": "string",
"description": "Proteome identifier, e.g. \"UP000005640\"."
},
"busco": {
"type": "object",
"required": [
"complete",
"completeSingle",
"completeDuplicated",
"fragmented",
"missing",
"total"
],
"properties": {
"score": {
"type": "number",
"description": "Completeness percentage (0–100). Omitted when none."
},
"total": {
"type": "number",
"description": "Total BUSCO genes searched."
},
"missing": {
"type": "number",
"description": "Missing BUSCOs."
},
"complete": {
"type": "number",
"description": "Complete BUSCO genes."
},
"lineageDb": {
"type": "string",
"description": "BUSCO lineage dataset, e.g. \"primates_odb10\". Omitted when none."
},
"fragmented": {
"type": "number",
"description": "Fragmented BUSCOs."
},
"completeSingle": {
"type": "number",
"description": "Complete and single-copy BUSCOs."
},
"completeDuplicated": {
"type": "number",
"description": "Complete and duplicated BUSCOs."
}
},
"description": "BUSCO completeness report. Absent for proteomes without one.",
"additionalProperties": false
},
"organism": {
"type": "object",
"required": [
"scientificName",
"taxonId"
],
"properties": {
"taxonId": {
"type": "number",
"description": "NCBI taxonomy ID."
},
"mnemonic": {
"type": "string",
"description": "Organism mnemonic, e.g. \"HUMAN\". Omitted when none."
},
"commonName": {
"type": "string",
"description": "Organism common name. Omitted when none."
},
"scientificName": {
"type": "string",
"description": "Organism scientific name."
}
},
"description": "Source organism.",
"additionalProperties": false
},
"cpdStatus": {
"type": "string",
"description": "Complete Proteome Detector (CPD) status — where proteinCount falls among at least 30 closely related proteomes, as UniProt words it: \"Standard\", \"Close to standard (high value)\", \"Close to standard (low value)\", \"Outlier (high value)\", \"Outlier (low value)\", or \"Unknown\" (too few related proteomes to score). Omitted when UniProt sends none."
},
"geneCount": {
"type": "number",
"description": "Number of genes the proteins come from — at most proteinCount, below it where genes have several protein entries. Omitted where UniProt has not computed it (it reports 0 on non-reference and excluded proteomes)."
},
"proteinCount": {
"type": "number",
"description": "Total number of proteins in the proteome."
},
"proteomeType": {
"type": "string",
"description": "Proteome type as UniProt words it, e.g. \"Reference proteome\", \"Non Reference proteome\", or \"Excluded\"."
},
"genomeAssembly": {
"type": "string",
"description": "Genome assembly accession, e.g. \"GCA_000001405.29\". Omitted when none."
},
"exclusionReasons": {
"type": "array",
"items": {
"type": "string",
"description": "One reason, as UniProt words it."
},
"description": "Why UniProt excluded the proteome, e.g. [\"genome length too small\"] or [\"contaminated\"]. Present on excluded proteomes only."
},
"isoformProteinCount": {
"type": "number",
"description": "Additional isoform sequences, counted outside proteinCount. Omitted together with reviewedProteinCount."
},
"reviewedProteinCount": {
"type": "number",
"description": "Reviewed (Swiss-Prot) proteins; with unreviewedProteinCount it sums to proteinCount. Omitted, with the unreviewed and isoform counts, where UniProt has not computed them (it reports 0 for all three on non-reference and excluded proteomes)."
},
"unreviewedProteinCount": {
"type": "number",
"description": "Unreviewed (TrEMBL) proteins; 0 when every protein is reviewed. Omitted together with reviewedProteinCount."
}
},
"description": "Proteome metadata.",
"additionalProperties": false
},
"truncated": {
"type": "boolean",
"description": "True when the protein page hit the size cap — more remain via cursor."
},
"totalProteinsMatched": {
"type": "number",
"description": "Total proteins matching the (optionally filtered) proteome query."
}
},
"additionalProperties": false
},
"annotations": {
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true
}
}