Expasy SPARQL MCP
SIB's server that helps LLMs write SPARQL queries for bioinformatics knowledge graphs, hosted on Expasy.
- Tools
- 19
- Last checked
- Nov 28, 2026
- Listed
- Nov 28, 2026
Install & connect
Third-party code: read it before you run it. HPSILab reviewed this guide but does not operate this server.
Install by client
claude mcp add --transport http expasy-sparql-mcp https://chat.expasy.org/mcp/
Generated by HPSILab from this listing's endpoint and package, in each client's documented format. The official guide decides arguments, keys and versions.
Official guide
# From the project README: https://github.com/sib-swiss/sparql-llm
{
"servers": {
"expasy-mcp-http": { "url": "https://chat.expasy.org/mcp/", "type": "http" }
}
}
# Or run locally against your own endpoints: uvx sparql-llmRemote endpoint
https://chat.expasy.org/mcp/Tools (19)
As listed by the server's public endpoint (tools/list), checked Nov 28, 2026. HPSILab never calls these tools.
Tool description check: no warning signs found
A rule-based check of the text for signs of prompt injection or unsafe requests. Not a security guarantee.
show_protein_featuresread-onlyexternal servicesShow the sequence features of a UniProtKB entry (e.g. P31749) to the user in an interactive track viewer, zoomable along the sequence: domains, sites, PTMs, signal peptides, topology, secondary structure and variants. To focus on a region, give its UniProt residue positions in `start` and `end` (e.g. 102 and 234 for a domain, or only `start` for a single residue such as a mutation): the viewer opens zoomed on it, with the region highlighted. To show only some feature `categories` (e.g. ["PTMs", "Sites"]), give them: the others are hidden when the viewer opens, the user can show them again
Parameters (4)
accession· string · requiredstartendcategories
show_protein_structureread-onlyexternal servicesShow the 3D structure of a UniProtKB entry to the user in Mol*: the AlphaFold model colored by pLDDT confidence, or a PDB entry with `pdb_id`. Its features and variants are listed next to it, clicking one highlights its residues. `positions` are UniProt residue numbers highlighted first, e.g. the position of a mutation. The features listed can be filtered when the viewer opens, by `category` (e.g. "PTMs") and a `search` text found in their type, description or positions (e.g. "phospho"), the user can change them
Parameters (5)
accession· string · requiredpdb_idpositionscategorysearch
search_proteins_tableread-onlyexternal servicesSearch UniProtKB and show all results to the user in a sortable table, with facets for reviewed status, organism and annotation score. Only a summary is returned: the user can select rows in the table and send them back to you. Query syntax: `gene_exact:INS`, `protein_name:kinase`, `organism_id:9606` (one species), `taxonomy_name:mammalia` (a clade with its descendants, by name), `reviewed:true`, `cc_disease:*`, combined with AND, OR, NOT
Parameters (2)
query· string · requiredmax_rows· integer
show_protein_variantsread-onlyexternal servicesShow the disease and natural variants of a UniProtKB entry (e.g. P04637) to the user in an interactive explorer: variants positioned on the sequence next to domains, filterable by consequence, clinical significance, evidence and disease, with links to ClinVar, dbSNP and publications. To focus on a region, give its UniProt residue positions in `start` and `end` (e.g. 102 and 234 for a domain, or only `start` for a single residue): the explorer opens zoomed on it, with the region highlighted. To show only some variants, give filters checked when the explorer opens, that the user can change: clinical `significance` classes (e.g. ["Pathogenic", "Likely pathogenic"]), `consequence` types (e.g. ["missense", "stop gained", "frameshift"]), `evidence` sources, `disease` names or parts of them (e.g. ["Li-Fraumeni"]), and a `search` text found in the change, diseases, dbSNP or ClinVar IDs (e.g. "R175"). A variant is shown when it has one of the values given in each filter
Parameters (8)
accession· string · requiredstartendsignificanceconsequenceevidencediseasesearch
show_annotation_matrixread-onlyexternal servicesShow a heatmap of the reviewed UniProtKB entries of a gene list (e.g. ["TP53", "MDM2", "CDKN1A"]) by their GO terms, keywords or Reactome pathways to the user, for a quick functional overview of the list. `organism_id` is the NCBI taxonomy ID, human by default. The matrix opens on the `annotation_type` given, GO biological process by default, with the terms filtered by a `search` text found in their ID or name (e.g. "apoptosis"), the user can change them
Parameters (4)
genes· array · requiredorganism_id· integerannotation_typesearch
show_protein_networkread-onlyexternal servicesShow an interactive graph connecting a list of proteins to the user, distinguishing 3 kinds of sourced relationships: directed regulations (activation, inhibition) from OmniPath with their resources, references and modification sites, physical interactions from IntAct (via UniProtKB), and Reactome pathway membership. Shows the best supported directed paths from `source` to `target`, and the feedback loops going back upstream. Give official gene symbols, including the expected intermediates, e.g. to connect EGFR to ERK: ["EGFR", "GRB2", "SOS1", "HRAS", "RAF1", "MAP2K1", "MAPK1", "MAPK3"] with source "EGFR" and target "MAPK1". `source` defaults to the first gene. Up to `max_linkers` proteins not listed are added when they connect 2 listed proteins. `organism_id` is the NCBI taxonomy ID: 9606 (human, default), 10090 (mouse) or 10116 (rat)
Parameters (5)
genes· array · requiredsourcetargetorganism_id· integermax_linkers· integer
show_gene_expressionread-onlyexternal servicesShow where genes are expressed to the user, as a heatmap of anatomical entities and cell types by gene colored by the Bgee expression score (0-100), with organ systems, data types (RNA-Seq, scRNA-Seq, Affymetrix, in situ, EST), call quality and absence of expression. `genes` are gene symbols or Ensembl IDs (e.g. ["TP53", "MDM2"]), of the species with NCBI taxonomy ID `species_id`, human by default (mouse is 10090, zebrafish 7955). Filters set when the heatmap opens, the user can change them: `organ_systems` to show organ systems instead of all anatomical entities, only the calls with a `data_type`, `gold_only` quality calls, `show_absent` false to hide not expressed calls, and a `search` text found in the anatomical entities and cell types (e.g. "brain")
Parameters (7)
genes· array · requiredspecies_id· integerorgan_systems· booleandata_typegold_only· booleanshow_absent· booleansearch
show_cell_lineread-onlyexternal servicesShow a cell line of Cellosaurus to the user: identity (species, sex, age, disease, site), warnings when it is contaminated or misidentified, its parent, children and lines from the same individual, genome ancestry, mutations, HLA typing, and its STR profile next to the cell lines with the most similar profiles (CLASTR), to check its authenticity. `cell_line` is a Cellosaurus accession (e.g. CVCL_0030) or a cell line name (e.g. HeLa, A-549, MCF-7)
Parameters (1)
cell_line· string · required
show_metanetxread-onlyexternal servicesShow a chemical or a reaction of MetaNetX (MNXref namespace reconciling metabolic databases) to the user: a graph of its identifiers in ChEBI, KEGG, BiGG, SEED, MetaCyc, Rhea, HMDB, LIPID MAPS, SwissLipids, Reactome, VMH... with how each one is reconciled (same structure, other protonation or stereo, obsolete). Chemicals also show their structure, properties, isomers and the reactions in the most models; reactions their participants with compartments, EC numbers and the genome-scale metabolic models (GSMN) containing them with their enzymes. `query` is a MetaNetX ID (e.g. MNXM3, MNXR101040), an external identifier (e.g. chebi:15422, kegg.compound:C00002, bigg.reaction:LDH_L, rhea:23444) or a chemical name (e.g. glucose 6-phosphate)
Parameters (1)
query· string · required
show_gene_familyread-onlyexternal servicesShow the history of the gene family of a protein from the OMA orthology database to the user: the species tree of its Hierarchical Orthologous Group (HOG) with the duplications and losses in each clade and the genes of each species colored by paralog lineage (like the OMA iHam viewer), its pairwise orthologs (1:1, 1:n...), and its gene neighbourhood conserved in other species (local synteny). `protein` is a UniProt accession (e.g. P04637), a UniProt entry name (P53_HUMAN), an OMA ID (HUMAN31534) or an Ensembl ID
Parameters (1)
protein· string · required
show_ortholog_groupread-onlyexternal servicesShow the OrthoDB ortholog group of a protein to the user: its phyletic profile (in how many species of each clade it is present, and with how many copies), evolutionary descriptors (single or multi copy, evolutionary rate, protein length, exons), functional annotations (InterPro, GO, EC, KEGG), and the groups of the broader levels and the groups it splits into at the next levels (e.g. paralogs). `query` is a UniProt accession (e.g. P04637) or an OrthoDB group ID (e.g. 769296at7742). `level` is the taxonomic level, by name or NCBI taxon ID (e.g. Vertebrata or 7742, Mammalia, Metazoa, Eukaryota), the broadest level by default
Parameters (2)
query· string · requiredlevel
show_reactionread-onlyexternal servicesShow a Rhea biochemical reaction to the user: its atom map (atoms of each reactant colored in the products, with atom numbers), the equation with the structures of the participants, EC numbers, directions, cross-references (GO, KEGG, MetaCyc, Reactome, M-CSA) and the reviewed UniProtKB enzymes catalyzing it. `reaction` is a Rhea ID (e.g. RHEA:10000 or 10000) or a Rhea search (e.g. `ec:2.7.11.1`, `chebi:15422`, `uniprot:P31749`, or text), showing the first hit
Parameters (1)
reaction· string · required
show_lipidread-onlyexternal servicesShow a lipid of SwissLipids to the user: its place in the lipid hierarchy (category > class > species > molecular subspecies > structural subspecies > isomeric subspecies) as a graph with its parents and children, its structure and properties, its chains, the Rhea reactions it is involved in with their enzymes in UniProtKB, own and inherited from its classes, and the tissues and cellular components it was found in. `query` is a SwissLipids ID (e.g. SLM:000000651), a ChEBI ID (e.g. CHEBI:73001), a lipid name or an abbreviation (e.g. cholesterol, PC(16:0/18:1), Cer(d18:1/16:0)). Common names that are not SwissLipids names are not found, use the ChEBI ID for them
Parameters (1)
query· string · required
search_proteinsread-onlyexternal servicesSearch UniProtKB entries, returns accession, name, genes, organism. Query syntax: `gene_exact:INS`, `protein_name:kinase`, `organism_id:9606` (one species), `taxonomy_name:mammalia` (a clade with its descendants, by name), `reviewed:true`, `cc_disease:*`, combined with AND, OR, NOT
Parameters (2)
query· string · requiredsize· integer
get_proteinread-onlyexternal servicesGet a UniProtKB entry by accession (e.g. P01308): name, organism, function and sequence
Parameters (1)
accession· string · required
search_sparql_examplesread-onlyexternal servicesSearch SPARQL query examples relevant to a question related to genes, proteins, lipids, chemical reactions, and metabolomics data Use the examples as a base to write a SPARQL query answering the question, then use `search_sparql_classes` to check the details of classes and predicates used in the query. Args: question: The question to be answered with a SPARQL query steps: Split the question in standalone smaller parts if relevant (if the question is already 1 step, leave empty) Returns: Relevant SPARQL query examples, with the question they answer and the endpoint to run them on ## SPARQL Query Guidelines - **Always include the endpoint URL** as a comment at the start: `#+ endpoint: http://example.org/sparql` - **Use only ONE endpoint** per query - **Base your query on the provided context**, never create generic or unsupported queries - **Use appropriate prefixes** and class names from the schema documentation
Parameters (2)
question· string · requiredsteps· array · required
search_sparql_classesread-onlyexternal servicesSearch classes and their schema (predicates and the types of their values) in the SPARQL endpoints. Args: classes: High level concepts and potential classes that could be found in the SPARQL endpoints Returns: Relevant classes schemas in ShEx format, with the endpoint where the class is found
Parameters (1)
classes· array · required
search_resourcesread-onlyexternal servicesSearch general information about the resources and SPARQL endpoints indexed by this MCP server. Only call this tool when the user explicitly asks for information about the resources themselves. Args: question: The user question Returns: Relevant information about the resources (description, endpoints, metadata)
Parameters (1)
question· string · required
execute_sparql_queryread-onlyexternal servicesExecute a SPARQL query against a SPARQL endpoint. If the query returns no results, make it less restrictive (e.g. case-insensitive regex instead of exact string match, no variable overridden with BIND), or break it down in smaller parts and check them one by one. Args: sparql_query: A valid SPARQL query string endpoint_url: The SPARQL endpoint URL to execute the query against Returns: For SELECT and ASK queries: the results in the SPARQL JSON format (first 50 rows), with the total number of results. For CONSTRUCT and DESCRIBE queries: the resulting RDF graph in Turtle format.
Parameters (2)
sparql_query· string · requiredendpoint_url· string · required
Links
More Quant Research & Risk MCP servers
- Kaimon.jl
Give AI agents access to a live Julia runtime: evaluate code, inspect state, manage packages and run tests.
- sympy-mcp
Symbolic manipulation of mathematical expressions with SymPy from an AI client.
- julia-mcp
Persistent Julia sessions for agents: fast iteration without startup and compilation overhead.
- Optuna MCP
The Optuna project's server for running and analyzing hyperparameter optimization studies from an AI client.
- ToolUniverse
Harvard MIMS lab's ecosystem of scientific tools for AI agents, served over MCP.
- dicom-mcp
Work with DICOM servers (PACS and others): query, read and move medical imaging studies.