Atlas / MCP servers / sib-swiss / SPARQL-LLM

SPARQL-LLMCAUTION

mcp/sib-swiss/sparql-llm

🦜✨ Chat system, MCP server, and reusable components to improve LLMs capabilities when generating SPARQL queries

Verdict
CAUTION
Grade
B
Trust score
83 /100
Exposed tools
5 4r · 1w · 0d
Transport
sse · stdio · streamable-http
License
MIT
Stars
127
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

[](https://pypi.org/project/sparql-llm/) [](https://pypi.org/project/sparql-llm/) [](https://github.com/sib-swiss/sparql-llm/actions/workflows/test.yml)

This project provides tools to enhance the capabilities of Large Language Models (LLMs) in generating SPARQL queries for specific endpoints:

  • a complete chat web service available at [expasy.org/chat](https://expasy.org/chat)
  • a MCP server exposing tools at [chat.expasy.org/mcp](https://chat.expasy.org/mcp)
  • reusable components published as the [`sparql-llm`](https://pypi.org/project/sparql-llm/) pip package

The system integrates Retrieval-Augmented Generation (RAG) and SPARQL query validation through endpoint schemas, to ensure more accurate and relevant query generation on large scale knowledge graphs.

The components are designed to work either independently or as part of a full chat-based system that can be deployed for a set of SPARQL endpoints. It requires endpoints to include metadata such as SPARQL query examples and endpoint descriptions using the Vocabulary of Interlinked Datasets (VoID), which can be automatically generated using the void-generator.

💥 News

🥇 We won the first place at the Text2SPARQL Challenge, co-located with ESWC 2026. Some highlights from our evaluation:

  • 🎯 up to 59% higher F1 score*
  • 🚀 up to 27× faster*
  • 💸 no more than $0.01 per question
  • 🌍
Read from source at commit 679e27b073c4OBSERVED · 2026-10-07
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code (pypi)
claude mcp add sparql-llm -- None sparql-llm==0.1.2
03

Exposed tools (5)

4 read · 1 write · 0 destructive.

ToolRiskDescription
access_sib_biodata_sparqlreadAssist users in writing SPARQL queries to access SIB biodata resources by retrieving relevant examples and docs.
execute_sparql_querywriteExecute a SPARQL query against a SPARQL endpoint.
get_classes_schemareadSearch for specific classes and their schema in the SPARQL endpoints.
get_resources_inforeadGet information about the SPARQL endpoints indexed by this MCP server.
search_sparql_docsreadrelevant_docs: list[ScoredPoint] = []
04

Trust audit

CAUTIONgrade B · trust 83/100 Install with care. The audit found things worth knowing before you trust its output.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeWARN
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (1 observation(s))
Network
declared (9 observation(s))
Shell
none-observed
Dependencies
not all pinned
Secrets in source
found

Findings (14)

MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
compose.prod.yml:23
# - VECTORDB_URL=http://10.89.1.2:6334/
MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
compose.text2sparql.yml:26
# - DBPEDIA_URL=http://141.57.8.18:9081/sparql
MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
compose.text2sparql.yml:27
# - CORPORATE_URL=http://141.57.8.18:9080/sparql
MEDIUMNetwork egress · net.raw_ip · CWE-200, CWE-319
src/sparql_llm/config.py:208
return "http://127.0.0.1:8000"
MEDIUMObfuscation / stealth · obf.zero_width · CWE-506, CWE-94
src/sparql_llm/agent/webapp/assets/index-quqPNvA6.js:65
}`;function qi(s){var e={keyword:"base|10 prefix|10 @base|10 @prefix|10",literal:"true|0 false|0",built_in:"a|0"},t={className:"literal",relevance:1,begin:/</,end:/>/,illegal:/[^\x00-\x20<>"{}|^`]/},n
MEDIUMHard-coded secrets · secret.generic · CWE-798, CWE-321
chat-with-context/README.md:43
api-key="public_apikey_used_by_frontend_to_prevent_abuse_from_robots"
MEDIUMHard-coded secrets · secret.generic · CWE-798, CWE-321
chat-with-context/README.md:76
api-key="public_apikey_used_by_frontend_to_prevent_abuse_from_robots"
LOWInventory / provenance · inv.hidden_file · CWE-1104
.pre-commit-config.yaml
.pre-commit-config.yaml
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
chat-with-context/demo/vite.config.ts:15
outDir: "../../src/sparql_llm/agent/webapp",
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
chat-with-context/package.json
@langchain/core, @langchain/langgraph, @langchain/langgraph-sdk, dompurify, highlight.js, marked, solid-element, solid-js
Why it matters. 35 dependency range(s) float
Fix. pin exact versions or ship a lockfile
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
tutorial/slides/package.json
@edc4it/reveal.js-clipcode, @types/node, reveal.js, vite
Why it matters. 4 dependency range(s) float
Fix. pin exact versions or ship a lockfile
INFOInventory / provenance · inv.oversize · CWE-1104
tests/text2sparql/queries.csv
tests/text2sparql/queries.csv
Why it matters. 91846052 bytes not read
INFOInventory / provenance · inv.oversize · CWE-1104
tests/void_uniprot.ttl
tests/void_uniprot.ttl
Why it matters. 1269963 bytes not read
INFOInventory / provenance · inv.oversize · CWE-1104
uv.lock
uv.lock
Why it matters. 1364192 bytes not read

Gates applied: no_behavioural_pass.

Audited 2026-10-07 · audit v0.4.1 · source sha 679e27b073c4full audit observations/trust-audit/mcp-server/sib-swiss__sparql-llm.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-07679e27b073c4CAUTIONB83first audit
06

Questions

What is the SPARQL-LLM MCP server?

🦜✨ Chat system, MCP server, and reusable components to improve LLMs capabilities when generating SPARQL queries

What tools does SPARQL-LLM expose?

5 in total: 4 read-only, 1 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.

Is SPARQL-LLM safe to connect to an agent?

With care. The audit graded it B (83/100) and found 14 things worth knowing before you trust this server, listed below with the exact line each was found on.

What credentials does SPARQL-LLM need?

It reads OPENROUTER_API_KEY and TOKENIZERS_PARALLELISM from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does SPARQL-LLM run?

It speaks sse, stdio and streamable-http, so it runs as a local process your client starts. It is published on npm as tuto-sparql-agent at 1.0.0.

How current is this page?

The grade is for one exact copy of the source (679e27b073c4), read on 2026-10-07. The repository is watched and re-audited when it changes.

Advertisement