Sparql MCP server
MCP server exposing SPARQL query functionalities for LLMs
0 stars13 downloads/wk
Reviews
Write oneNobody has reviewed Sparql yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Sparql tools (7, 4 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
sparql_askwrite actionExecute a SPARQL ASK query and return a boolean result.
sparql_constructwrite actionExecute a SPARQL CONSTRUCT query and return RDF triples.
sparql_describewrite actionExecute a SPARQL DESCRIBE query and return an RDF resource description.
sparql_get_prefixesGet commonly used prefixes for a SPARQL endpoint.
sparql_list_graphsList available named graphs on a SPARQL endpoint.
sparql_querywrite actionExecute a SPARQL SELECT query against a SPARQL endpoint.
sparql_validateValidate SPARQL query syntax without executing it.
Public scan report
scanner v0.1.9 · 2026-09-26 · same rubric, same numbers if you re-run it
- Code scan7 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 101 days ago8/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How Sparql compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 82/100
- higher than 63% of 48,273 servers
- Tools
- 7
- the typical server has 7
- Tools that change things
- 57%
- typical: 0%. Fewer write tools means less an agent can break
- Downloads a week
- 13
- more than 4% of 11,915 servers with a package
What its tools let an agent do: 3 read · 4 change
Install Sparql in Claude Code, Cursor or VS Code
claude mcp add mcp-sparql -- uvx mcp-sparql
What the publisher says
From the Sparql repository's README, as published. We do not edit it. Read it on GitHub
mcp-sparql — MCP server exposing SPARQL query functionalities for LLMs.
mcp-name: io.github.daedalus/mcp-sparql
Install
pip install mcp-sparqlUsage
As an MCP Server
Add to your MCP configuration (e.g., ~/.config/claude/mcp.json):
{
"mcpServers": {
"mcp-sparql": {
"command": "mcp-sparql"
}
}
}Available Tools
Examples
Query Wikidata:
sparql_query:
endpoint: "https://query.wikidata.org/sparql"
query: "SELECT ?item ?itemLabel WHERE { ?item wdt:P31 wd:Q5 . ?item rdfs:label ?itemLabel . FILTER(LANG(?itemLabel) = 'en') } LIMIT 5"Check if an entity exists:
sparql_ask:
endpoint: "https://query.wikidata.org/sparql"
query: "ASK { wd:Q42 wdt:P31 wd:Q5 }"Validate a query:
sparql_validate:
query: "SELECT ?s WHERE { ?s ?p ?o }"List named graphs:
sparql_list_graphs:
endpoint: "https://query.wikidata.org/sparql"Get common prefixes:
sparql_get_prefixes:
endpoint: "https://query.wikidata.org/sparql"Resources
API
sparql_query
Execute a SPARQL SELECT query.
Parameters:
- endpoint (str): SPARQL endpoint URL
- query (str): SPARQL SELECT query
- timeout (int, default=30): Query timeout in seconds
- output_format (str, default="table"): "table" for Markdown, "json" for JSON
- headers (dict, optional): HTTP headers for authentication
- max_rows (int, default=1000): Maximum result rows
sparql_ask
Execute a SPARQL ASK query. Returns "true" or "false".
sparql_construct
Execute a SPARQL CONSTRUCT query. Returns RDF triples.
Additional parameters:
- output_format (str, default="turtle"): "turtle" or "json"
sparql_describe
Execute a SPARQL DESCRIBE query. Returns RDF description.
sparql_validate
Validate SPARQL query syntax without executing.
sparqllistgraphs
List available named graphs on a SPARQL endpoint.
sparqlgetprefixes
Get commonly used prefixes for a SPARQL endpoint.
Development
git clone https://github.com/daedalus/mcp-sparql.git
cd mcp-sparql
pip install -e ".[test]"
# run tests
pytest
# format
ruff format src/ tests/
# lint + type check
prospector --with-tool ruff --with-tool mypy --with-tool pylint src/Nothing above is checked by us. What we check is on the safety report.
Sparql: common questions
- Is Sparql MCP server safe?
- Mostly: it is graded B (82/100). Read the Sparql safety report
- How do I install Sparql?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Sparql need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Sparql maintained?
- The last commit was 138 days ago (2026-06-17). The latest release is v0.1.0.
- How does Sparql compare with other MCP servers?
- safety score 82/100 (higher than 63% of 48,273 servers); tools 7 (the typical server has 7); tools that change things 57% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.