query
Pack: wikidata-sparql · Endpoint: https://gateway.pipeworx.io/wikidata-sparql/mcp
Run a SPARQL query against the Wikidata Query Service. Returns JSON bindings by default.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
sparql | string | yes | SPARQL query text |
format | string | no | json (default) | xml | csv | tsv | text/html |
Example call
curl -X POST https://gateway.pipeworx.io/wikidata-sparql/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"query","arguments":{}}}'
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"wikidata-sparql": {
"url": "https://gateway.pipeworx.io/wikidata-sparql/mcp"
}
}
}
See Getting Started for client-specific install steps.