mcpField
M
MCP Server SPARQL

MCP Server SPARQL

Local
github.com/ekzhuDatabases12Updated 82w ago

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

  1. 01Run SPARQL queries
  2. 02Configure an endpoint
  3. 03Receive JSON results

Use cases

  1. 01Query Wikidata data
  2. 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.

mcp.json · Universal config
{
"mcpServers": {
"sparql": {
"command": "uvx",
"args": [
"mcp-server-sparql"
]
}
}
}
Run commanduvx mcp-server-sparql

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
pypimcp-server-sparql

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

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

Comments

Markdown supported

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.