Skip to main content
MCP server CX Codex

wikidata-mcp-server — Claude Code MCP server for Wikidata

Connects an agent to Wikidata: entity search, SPARQL queries, external identifier lookups. No API key needed.

Apache-2.0 399 installs ★ 3 updated 2026-10-17

Install into Claude Code · Platform CLI: remote server All methods and platforms ↓
claude mcp add --transport http wikidata-mcp-server https://wikidata-mcp-server--cyanheads.run.tools
Open on GitHub

What wikidata-mcp-server does

The server exposes seven tools that read from Wikidata. Search entities by text, fetch a full record by QID or PID, batch-resolve up to 50 IDs into labels. Statement tools pull property claims with qualifiers and sitelinks to Wikipedia and other Wikimedia projects. wikidata_resolve_external_id turns a DOI, PMID, ORCID, OpenAlex or IMDb identifier into a Wikidata item.

SPARQL SELECT queries run against the Wikidata Query Service through wikidata_sparql_query. ASK, CONSTRUCT and DESCRIBE get rejected before they leave. Prefixes are added for you, and ?xLabel-style variables resolve through the label service. Responses cap at 64,000 bytes, cut between rows, so big results need paging with ORDER BY, LIMIT and OFFSET. Rate limit sits at 60 requests per minute per IP.

No API key. Runs through npx or as a Docker image, with a public hosted endpoint available. A bundled wikidata-guide skill covers entity disambiguation, qualified statements and external identifiers. Watch out for oversized records: a large item returns field categories with byte sizes instead of data, and you then fetch only the fields you need through fields.

What it helps with

  • find a QID by entity name
  • read statements and qualifiers for an item
  • list Wikipedia pages linked to an entity
  • run a SELECT query against Wikidata Query Service
  • map a DOI or PMID to its Wikidata item

Example prompts for the agent

  • Find the QID for the film Blade Runner on Wikidata
  • Run a SPARQL query: cities with more than 5 million people
  • Which DOI does the article linked to Q3813849 have?

How to install wikidata-mcp-server

Platform CLI: remote server

claude mcp add --transport http wikidata-mcp-server https://wikidata-mcp-server--cyanheads.run.tools

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about wikidata-mcp-server

How do I install wikidata-mcp-server in Claude Code?

Run claude mcp add --transport http wikidata-mcp-server https://wikidata-mcp-server--cyanheads.run.tools.

What does wikidata-mcp-server do?

It gives an agent read access to Wikidata: entity search, statements, sitelinks, SPARQL queries and external identifier resolution.

Does it need an API key?

No. The server queries Wikidata directly, so no key is required.

Similar MCP servers

All MCP servers for Data and databases →

Project sponsors

Companies that keep this analytics open