search_entities

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

Search Wikidata entities by label or alias (e.g., “Albert Einstein”, “Python programming language”, “Tokyo”). Returns entity IDs, labels, descriptions, and aliases. Useful for finding the Wikidata ID of any concept.

Parameters

NameTypeRequiredDescription
querystringyesSearch query (e.g., “Marie Curie”, “Bitcoin”, “Great Wall of China”)
languagestringnoLanguage code for labels (default “en”). E.g., “fr”, “de”, “ja”
limitnumbernoMax results to return (1-50, default 10)

Example call

Arguments

{
  "query": "Albert Einstein"
}

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":"search_entities","arguments":{"query":"Albert Einstein"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('search_entities', {
  "query": "Albert Einstein"
});

More examples

{
  "query": "Python programming language",
  "language": "en",
  "limit": 5
}

Response shape

Always returns: results

FieldTypeDescription
resultsarrayArray of search results
Full JSON Schema
{
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "description": "Array of search results",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Wikidata entity ID (e.g., Q42)"
          },
          "label": {
            "type": [
              "string",
              "null"
            ],
            "description": "Entity label in requested language"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Entity description in requested language"
          },
          "aliases": {
            "type": "array",
            "description": "Alternative names for the entity",
            "items": {
              "type": "string"
            }
          },
          "uri": {
            "type": [
              "string",
              "null"
            ],
            "description": "Concept URI (e.g., http://www.wikidata.org/entity/Q42)"
          }
        },
        "required": [
          "id",
          "label",
          "description",
          "aliases",
          "uri"
        ]
      }
    }
  },
  "required": [
    "results"
  ]
}

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