Skip to main content

MCP server for querying SPARQL endpoint

Project description

MCP Server SPARQL

A Model Context Protocol (MCP) server that provides tools for querying SPARQL endpoints.

Usage

Example usage for querying a single SPARQL endpoint or multiple endpoints defined in a configuration file.

uvx

"mcpServers": {
  "mcp-server-sparql": {
    "command": "uvx",
    "args": ["mcp-server-sparql", "--endpoint", "https://query.wikidata.org/sparql"],
  }
}

To load multiple endpoints from a configuration file:

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

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

For configuring multiple endpoints see docs/config.md.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_server_sparql_9k-0.1.0.tar.gz (20.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_server_sparql_9k-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_sparql_9k-0.1.0.tar.gz.

File metadata

File hashes

Hashes for mcp_server_sparql_9k-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ea0d963b7ceb987f272051dc85ab26f02dfd5718cad57a6f71cb672c9aa9de53
MD5 8200eaf63e10477a76533a1bb86311f1
BLAKE2b-256 fa73236fe338ef8b0552809e3a6e8be95abd40ea8f7669b3502000c324b6bf56

See more details on using hashes here.

File details

Details for the file mcp_server_sparql_9k-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_sparql_9k-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab695fe614216855566b49b541207b4e464985b3d247a5580ed5099e8d077b6d
MD5 786faab7ea3cab6b9199ac2c41b10f95
BLAKE2b-256 a6778b66d42f0e020da01daba7c05acbf010267fcd6a1dfd97a9e23895d8f7c5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page