Server data from the Official MCP Registry
MCP server exposing SPARQL query functionalities for LLMs
About
MCP server exposing SPARQL query functionalities for LLMs
Security Report
mcp-sparql is a well-structured SPARQL query MCP server with proper authentication support, good input validation, and no malicious patterns. The server appropriately handles network HTTP access and optional custom headers for authenticated endpoints. Minor code quality observations around error handling and logging do not materially impact security. Supply chain analysis found 8 known vulnerabilities in dependencies (2 critical, 3 high severity). Package verification found 1 issue.
6 files analyzed · 13 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
Permissions Required
This plugin requests these system permissions. Most are normal for its category.
How to Install
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-daedalus-mcp-sparql": {
"args": [
"mcp-sparql"
],
"command": "uvx"
}
}
}Documentation
View on GitHubFrom the project's GitHub README.
mcp-sparql — MCP server exposing SPARQL query functionalities for LLMs.
mcp-name: io.github.daedalus/mcp-sparql
Install
pip install mcp-sparql
Usage
As an MCP Server
Add to your MCP configuration (e.g., ~/.config/claude/mcp.json):
{
"mcpServers": {
"mcp-sparql": {
"command": "mcp-sparql"
}
}
}
Available Tools
| Tool | Description |
|---|---|
sparql_query | Execute SPARQL SELECT queries (table or JSON output) |
sparql_ask | Execute SPARQL ASK queries (boolean result) |
sparql_construct | Execute SPARQL CONSTRUCT queries (Turtle or JSON-LD) |
sparql_describe | Execute SPARQL DESCRIBE queries (Turtle or JSON-LD) |
sparql_validate | Validate SPARQL query syntax without executing |
sparql_list_graphs | List named graphs on a SPARQL endpoint |
sparql_get_prefixes | Get common prefixes for a SPARQL endpoint |
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
| Resource | URI | Description |
|---|---|---|
| Common Prefixes | sparql://common-prefixes | Standard SPARQL namespace prefixes |
API
sparql_query
Execute a SPARQL SELECT query.
Parameters:
endpoint(str): SPARQL endpoint URLquery(str): SPARQL SELECT querytimeout(int, default=30): Query timeout in secondsoutput_format(str, default="table"): "table" for Markdown, "json" for JSONheaders(dict, optional): HTTP headers for authenticationmax_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.
sparql_list_graphs
List available named graphs on a SPARQL endpoint.
sparql_get_prefixes
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/
Reviews
No reviews yet
Be the first to review this server!
More Developer Tools MCP Servers
Git
Freeby Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
Toleno
Freeby Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
mcp-creator-python
Freeby mcp-marketplace · Developer Tools
Create, build, and publish Python MCP servers to PyPI — conversationally.
MarkItDown
Freeby Microsoft · Content & Media
Convert files (PDF, Word, Excel, images, audio) to Markdown for LLM consumption
MCP Marketplace
Freeby mcp-marketplace · Developer Tools
Search and install MCP servers from inside your AI client.
FinAgent
Freeby mcp-marketplace · Finance
Free stock data and market news for any MCP-compatible AI assistant.
