MCP Server SPARQL

by ekzhu

324 downloads
Not rated
GitHub

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

- 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:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name MCP Server SPARQL
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. 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

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.