MCP Server SPARQL
About
MCP Server SPARQL is a Model Context Protocol (MCP) server that provides a tool for executing SPARQL queries against a configured SPARQL endpoint, such as Wikidata. It is intended for developers and data analysts who need to query RDF datasets through MCP-compatible clients.
Details
- Author
- ekzhu
- Downloads
- 324
- Categories
- Other
Jump to
- Single query tool to execute SPARQL queries
- Configurable SPARQL endpoint via --endpoint
- Returns query results to the MCP client
- Lightweight, runs via uvx with no additional installation
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
MCP Server SPARQLCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Install and configure the server using uvx by specifying the SPARQL endpoint URL as a command-line argument. Invoke the query tool within an MCP client, passing a valid SPARQL query string as the query_string parameter, and receive the results.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"mcp server sparql": {
"mcp-server-sparql": {
"command": "uvx",
"args": [
"mcp-server-sparql",
"--endpoint",
"https://query.wikidata.org/sparql"
]
}
}
}
}
McpServers
{
"mcp-server-sparql": {
"command": "uvx",
"args": [
"mcp-server-sparql",
"--endpoint",
"https://query.wikidata.org/sparql"
]
}
}
MCP Server SPARQL
A Model Context Protocol (MCP) server that provides tools for querying SPARQL endpoints.
Usage
Example usage for querying the Wikidata SPARQL endpoint.
uvx
"mcpServers": {
"mcp-server-sparql": {
"command": "uvx",
"args": ["mcp-server-sparql", "--endpoint", "https://query.wikidata.org/sparql"],
}
}
Tool: query
Execute a SPARQL query against the configured endpoint.
Parameters:
- query_string: A valid SPARQL query string
Returns:
- The query results in JSON format
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



