MCP directory
WM

Wikidata Mcp Server

by github.com/cyanheads · v0.4.1 · updated Nov 22, 2026

Search and fetch Wikidata entities, execute SPARQL queries, and resolve external identifiers.

Remotenpm

Connect to the hosted server

Add this URL as a custom connector in your AI client.

Server URL

https://wikidata.caseyjhand.com/mcp

Claude Code

claude mcp add --transport http wikidata-mcp-server https://wikidata.caseyjhand.com/mcp

Run it locally

Install the package and point your AI client at it.

npm

npx -y @cyanheads/[email protected]

Environment variables

  • WIKIDATA_USER_AGENT

    User-Agent string for Wikimedia requests. Wikimedia policy requires a descriptive value.

  • WIKIDATA_SPARQL_TIMEOUT_MS

    Max time to wait for a SPARQL response in milliseconds.

  • WIKIDATA_REST_TIMEOUT_MS

    Max time to wait for REST API responses in milliseconds.

  • WIKIDATA_CLAMP_LIMITS

    Serve a count above its per-call cap at the cap, with a notice; false rejects it instead.

  • MCP_LOG_LEVEL

    Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').

npm

npx -y @cyanheads/[email protected]

Environment variables

  • MCP_TRANSPORT_TYPE

    Selects the HTTP transport.

  • MCP_HTTP_HOST

    The hostname for the HTTP server.

  • MCP_HTTP_PORT

    The port to run the HTTP server on.

  • MCP_HTTP_ENDPOINT_PATH

    The endpoint path for the MCP server.

  • MCP_AUTH_MODE

    Authentication mode to use: 'none', 'jwt', or 'oauth'.

  • WIKIDATA_USER_AGENT

    User-Agent string for Wikimedia requests. Wikimedia policy requires a descriptive value.

  • WIKIDATA_SPARQL_TIMEOUT_MS

    Max time to wait for a SPARQL response in milliseconds.

  • WIKIDATA_REST_TIMEOUT_MS

    Max time to wait for REST API responses in milliseconds.

  • WIKIDATA_CLAMP_LIMITS

    Serve a count above its per-call cap at the cap, with a notice; false rejects it instead.

  • MCP_LOG_LEVEL

    Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').

More from github.com/cyanheads

More MCP servers