uniprot-mcp-server: get sequence
uniprot_get_sequenceFetch 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accession | Yes | UniProtKB primary accession, e.g. "P04637". Canonical form only — strip any "-N" isoform suffix. | |
| include_isoforms | No | When true, also return the isoform sequences. Defaults to false (canonical only). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when the call failed. Absent on success. | |
| isoforms | No | Isoform sequence records. Present only when include_isoforms is true and isoforms exist. | |
| accession | No | The accession whose sequences are returned — the requested one, or its merge target when mergedFrom is present. | |
| canonical | No | The canonical sequence record. | |
| mergedFrom | No | The requested accession, present only when UniProt merged it into accession; every record here is the merge target. Omitted for an active accession. |