About Sparql LLM
Sparql LLM is an MCP server published by sib-swiss in the AI category: 🦜✨ Chat system, MCP server, and reusable components to improve LLMs capabilities when generating SPARQL queries. Conduid read 18 tools from its source: access_sib_biodata_sparql, execute_sparql_query, search_proteins_table, search_resources, search_sparql_classes, search_sparql_examples and 12 more. It is published to PyPI as sparql-llm and runs with uvx.
The repository has 134 stars and 27 forks, is licensed MIT, and its last commit was on 28 Nov 2026. The latest release is v0.1.4 (21 Jan 2026): 🚜 Refactor Fix MCP deployment dependencies, make the experimental agent flow that uses MCP tools work - (9435c64) Improve handling of endpoints metadata to lazy load the… It follows v0.1.3 (20 Jan 2026), and the 5 most recent releases go back to v0.1.0 (6 Oct 2025). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include sparql, sparql-query-builder and expasy.
Install
uvx sparql-llmpip install sparql-llmgit clone https://github.com/sib-swiss/sparql-llmTools (18)
access_sib_biodata_sparqlAssist users in writing SPARQL queries to access SIB biodata resources by retrieving relevant examples and docs.| Parameter | Type | Description |
|---|---|---|
| potential_classes * | array | High level concepts and potential classes that could be found in the SPARQL endpoints |
| question * | string | The question to be answered with a SPARQL query |
| steps * | array | Split the question in standalone smaller parts if relevant (if the question is already 1 step, leave empty) |
execute_sparql_queryExecute a SPARQL query against a SPARQL endpoint.| Parameter | Type | Description |
|---|---|---|
| endpoint_url * | string | The SPARQL endpoint URL to execute the query against |
| sparql_query * | string | A valid SPARQL query string |
search_proteins_tableresults of a UniProtKB query (up to 1000 rows) in a sortable table with facets for reviewed status, annotation score and organism. The rows selected by the user are sent back to the model| Parameter | Type | Description |
|---|---|---|
| max_rows | integer | |
| query * | string |
search_resourcesSearch general information about the resources and SPARQL endpoints indexed by this MCP server.| Parameter | Type | Description |
|---|---|---|
| question * | string | The user question |
search_sparql_classesSearch classes and their schema (predicates and the types of their values) in the SPARQL endpoints.| Parameter | Type | Description |
|---|---|---|
| classes * | array | High level concepts and potential classes that could be found in the SPARQL endpoints |
search_sparql_examplesSearch SPARQL query examples relevant to a question related to {settings.app_topics} 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| Parameter | Type | Description |
|---|---|---|
| question * | string | |
| steps * | array |
show_annotation_matrixheatmap of the reviewed proteins of a gene list by GO terms, keywords or Reactome pathways, for a quick functional overview. Opens on the `annotation_type` given, with terms filtered by `search`| Parameter | Type | Description |
|---|---|---|
| annotation_type | any | |
| genes * | array | |
| organism_id | integer | |
| search | string |
show_cell_lineShow a cell line of Cellosaurus to the user: identity (species, sex, age, disease, site), warnings when it is| Parameter | Type | Description |
|---|---|---|
| cell_line * | string |
show_gene_expressionShow where genes are expressed to the user, as a heatmap of anatomical entities and cell types by gene colored| Parameter | Type | Description |
|---|---|---|
| data_type | any | |
| genes * | array | |
| gold_only | boolean | |
| organ_systems | boolean | |
| search | string | |
| show_absent | boolean | |
| species_id | integer |
show_gene_familyShow the history of the gene family of a protein from the OMA orthology database to the user: the species tree| Parameter | Type | Description |
|---|---|---|
| protein * | string |
show_lipidShow a lipid of SwissLipids to the user: its place in the lipid hierarchy (category > class > species >| Parameter | Type | Description |
|---|---|---|
| query * | string |
show_metanetxShow a chemical or a reaction of MetaNetX (MNXref namespace reconciling metabolic databases) to the user:| Parameter | Type | Description |
|---|---|---|
| query * | string |
show_ortholog_groupShow the OrthoDB ortholog group of a protein to the user: its phyletic profile (in how many species of each| Parameter | Type | Description |
|---|---|---|
| level | string | |
| query * | string |
show_protein_featuresNightingale tracks of domains, sites, PTMs, processing, topology, secondary structure and variants, zoomable along the sequence. Given `start` and `end` residues (e.g. 102 and 234, or only `start` for a mutation), the viewer opens zoomed on the region, highlighted on all tracks. Given `categories` (e.g. `["PTMs"]`), only them are shown when it opens| Parameter | Type | Description |
|---|---|---|
| accession * | string | |
| categories | array | |
| end | integer | |
| start | integer |
show_protein_networkgraph connecting a protein list through 3 kinds of sourced relationships: directed regulations (activation, inhibition, or mixed when both are reported) from OmniPath with their resources, PubMed references and modification sites, physical interactions from IntAct (via UniProtKB), and Reactome pathway membership. It shows the best supported paths from a source to a target protein (highest minimum evidence, then shortest), and the feedback edges going back upstream with the loop they close. Proteins not listed are added when they connect 2 listed ones. Each relationship links to its source records: OmniPath records and sites, PubMed references with the resources citing them, IntAct evidence (PSI-MITAB) and UniProtKB interactions, Reactome pathways, and the queries of all the data used. Drawn with Cytoscape.js, in layers following the signal from the source| Parameter | Type | Description |
|---|---|---|
| genes * | array | |
| max_linkers | integer | |
| organism_id | integer | |
| source | string | |
| target | string |
show_protein_structureAlphaFold model colored by pLDDT, or a PDB entry, in Mol\* (PDBe Molstar), next to the features list: clicking one highlights its residues. Residues can be highlighted from the start, e.g. a mutation, and the list filtered by `category` and `search`| Parameter | Type | Description |
|---|---|---|
| accession * | string | |
| category | any | |
| pdb_id | string | |
| positions | array | |
| search | string |
show_protein_variantsdisease and natural variants from the EBI Proteins API positioned on the sequence next to the domains, filterable by consequence, clinical significance, evidence and disease, with links to ClinVar, dbSNP and PubMed. Given `start` and `end` residues, it opens zoomed on the region like the features viewer, and the table lists the variants in view. The model can give the filters checked when it opens: `significance` (e.g. `["Pathogenic", "Likely pathogenic"]`), `consequence`, `evidence`, `disease` (matched on part of the name) and a `search` text| Parameter | Type | Description |
|---|---|---|
| accession * | string | |
| consequence | array | |
| disease | array | |
| end | integer | |
| evidence | array | |
| search | string | |
| significance | array | |
| start | integer |
show_reactionShow a Rhea biochemical reaction to the user: its atom map (atoms of each reactant colored in the products,| Parameter | Type | Description |
|---|---|---|
| reaction * | string |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 2.6K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock and 3 more.
- ✓No dynamic code executionScanned 53 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- Streamable HTTPsrc/sparql_llm/agent/main.py:64
- Starts other programs
- No calls that start other programs
- Outbound network calls
- 50 callssrc/sparql_llm/agent/logs.py:40, src/sparql_llm/agent/webapp/assets/index-quqPNvA6.js:1, src/sparql_llm/agent/webapp/assets/index-quqPNvA6.js:67
- Writes or deletes files
- 3 callssrc/sparql_llm/agent/main.py:230, src/sparql_llm/mcp_server.py:161, src/sparql_llm/utils.py:240
- Lockfile
- uv.lock and 3 more
Pattern matches on the source text of 53 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 2.6K words, fetched a month ago. The original in the repository is authoritative.
Read full README