instances_of
Pack: wikidata-sparql · Endpoint: https://gateway.pipeworx.io/wikidata-sparql/mcp
Convenience: list all items that are an instance of a Wikidata class.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
entity_id | string | yes | Class id (e.g. “Q5” = humans, “Q5398426” = TV series) |
lang | string | no | Language for labels (default en) |
limit | number | no | Max items (default 100, max 10000) |
Example call
Arguments
{
"entity_id": "Q5"
}
curl
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":"instances_of","arguments":{"entity_id":"Q5"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('instances_of', {
"entity_id": "Q5"
});
More examples
{
"entity_id": "Q33506",
"lang": "en",
"limit": 50
}
Response shape
| Field | Type | Description |
|---|---|---|
head | object | |
results | object |
Full JSON Schema
{
"type": "object",
"properties": {
"head": {
"type": "object",
"properties": {
"vars": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"results": {
"type": "object",
"properties": {
"bindings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"item": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"value": {
"type": "string",
"description": "Wikidata item URI"
}
}
},
"itemLabel": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"value": {
"type": "string",
"description": "Item label"
}
}
}
}
}
}
}
}
}
}
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.