get_entity

Pack: wikidata · Endpoint: https://gateway.pipeworx.io/wikidata/mcp

Get full Wikidata entity by ID (e.g., “Q42” for Douglas Adams, “Q5” for human, “Q1764” for Budapest). Returns labels, descriptions, aliases, claims/statements (properties and values), and sitelinks.

Parameters

NameTypeRequiredDescription
idstringyesWikidata entity ID (e.g., “Q42”, “Q937”, “P31”)

Example call

Arguments

{
  "id": "Q42"
}

curl

curl -X POST https://gateway.pipeworx.io/wikidata/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_entity","arguments":{"id":"Q42"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('get_entity', {
  "id": "Q42"
});

More examples

{
  "id": "Q1764"
}

Response shape

Always returns: id, type, label, description, aliases, claims, sitelinks_count, wikipedia_en

FieldTypeDescription
idstringWikidata entity ID
typestringEntity type (e.g., ‘item’, ‘property’)
labelstring | nullEnglish label for the entity
descriptionstring | nullEnglish description of the entity
aliasesarrayList of alternative names
claimsobjectProperty claims/statements (up to 30 properties, 5 values each)
sitelinks_countnumberNumber of Wikipedia/sister project links
wikipedia_enstring | nullEnglish Wikipedia article title if available
Full JSON Schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Wikidata entity ID"
    },
    "type": {
      "type": "string",
      "description": "Entity type (e.g., 'item', 'property')"
    },
    "label": {
      "type": [
        "string",
        "null"
      ],
      "description": "English label for the entity"
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "English description of the entity"
    },
    "aliases": {
      "type": "array",
      "description": "List of alternative names",
      "items": {
        "type": "string"
      }
    },
    "claims": {
      "type": "object",
      "description": "Property claims/statements (up to 30 properties, 5 values each)",
      "additionalProperties": {
        "type": "array",
        "items": {}
      }
    },
    "sitelinks_count": {
      "type": "number",
      "description": "Number of Wikipedia/sister project links"
    },
    "wikipedia_en": {
      "type": [
        "string",
        "null"
      ],
      "description": "English Wikipedia article title if available"
    }
  },
  "required": [
    "id",
    "type",
    "label",
    "description",
    "aliases",
    "claims",
    "sitelinks_count",
    "wikipedia_en"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "wikidata": {
      "url": "https://gateway.pipeworx.io/wikidata/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026