About MCP Server SPARQL
MCP Server SPARQL is an MCP server for clients that need to query SPARQL endpoints. Its `query` tool returns results as JSON.
Key features
- 01Run SPARQL queries
- 02Configure an endpoint
- 03Receive JSON results
Use cases
- 01Query Wikidata data
- 02Retrieve data from a configured SPARQL endpoint
MCP support
Exposes a `query` tool to MCP clients for sending SPARQL queries to a configured endpoint and receiving JSON results.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEMCP 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
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.