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

NameTypeRequiredDescription
entity_idstringyesClass id (e.g. “Q5” = humans, “Q5398426” = TV series)
langstringnoLanguage for labels (default en)
limitnumbernoMax 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

FieldTypeDescription
headobject
resultsobject
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.

Regenerated from source · build July 6, 2026