Wikidata SPARQL
live Knowledge GraphResearchFull SPARQL access to Wikidata Query Service (~100M items, 1.5B statements). Complements the wikidata pack (entity search).
5 tools
0ms auth
free tier 50 calls/day
Tools
query
required: sparql Run a SPARQL query.
Parameters
Name Type Description
sparql req string — format opt string — Try it
Response
instances_of
required: entity_id Items that are an instance of a class.
Parameters
Name Type Description
entity_id req string — lang opt string — limit opt number — Try it
Response
subclasses_of
required: entity_id Transitive subclass tree.
Parameters
Name Type Description
entity_id req string — lang opt string — limit opt number — Try it
Response
properties_of
required: entity_id All statements about an entity.
Parameters
Name Type Description
entity_id req string — lang opt string — limit opt number — Try it
Response
entities_at
required: latitude, longitude Geo-spatial query: items near a point.
Parameters
Name Type Description
latitude req number — longitude req number — radius_km opt number — instance_of opt string — lang opt string — limit opt number — Try it
Response
Test with curl
The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.
List available tools
bash
curl -X POST https://gateway.pipeworx.io/wikidata-sparql/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' Call a tool
bash
curl -X POST https://gateway.pipeworx.io/wikidata-sparql/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"query","arguments":{"sparql": "example"}}}' Use with the SDK
Install @pipeworx/sdk to call tools from any TypeScript/Node project.
TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("query", {"sparql":"example"}); ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("full sparql access to wikidata query service (~100m items, 1");