Search and fetch Wikidata entities, execute SPARQL queries, and resolve external identifiers.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Search and fetch Wikidata entities, execute SPARQL queries, and resolve external identifiers via MCP. STDIO or Streamable HTTP.
Public Hosted Server: https://wikidata.caseyjhand.com/mcp
7 tools for working with Wikidata's knowledge graph:
| Tool | Description |
|---|---|
wikidata_search_entities | Search for items or properties by text query, returning QIDs/PIDs with labels, descriptions, and match metadata |
wikidata_get_entity | Fetch a full entity by QID or PID with optional field and language filtering |
wikidata_get_labels | Batch-resolve up to 50 QIDs or PIDs to human-readable labels and descriptions |
wikidata_get_statements | Fetch property claims for an entity with qualifier detail and QID label resolution |
wikidata_get_sitelinks | Fetch Wikipedia and Wikimedia project article URLs for a Wikidata item |
wikidata_sparql_query | Execute a SPARQL SELECT query against the Wikidata Query Service |
wikidata_resolve_external_id | Look up a Wikidata entity by an external identifier (DOI, PubMed ID, ORCID, OpenAlex ID, etc.) |
wikidata_search_entitiesSearch Wikidata for items or properties by text query.
type="item" for real-world concepts (people, places, works); type="property" for predicate P-IDswikidata_get_entityFetch a Wikidata entity by QID or PID with field selection.
Q76) fetch items; P-IDs (e.g. P31) fetch properties β endpoint routing is automaticfields parameter selects labels, descriptions, aliases, statements, or sitelinksfields narrows the upstream fetch, not just the response β Q76 is 344,114 bytes whole, 6,703 for labels alonelanguages parameter filters multilingual maps to specific language codes, client-side (the entity endpoint takes no language parameter)retrieval_notice: it names a literal fields set already measured to fit (category sizes are additive, so requesting every name listed would overflow again), defers the remainder to a further call, and redirects a category too large to deliver whole (statements or sitelinks on a major item) to the tool that can narrow itwikidata_get_labelsBatch-resolve QIDs/PIDs to human-readable labels and descriptions.
wbgetentities APIfound count and notFound IDs for partial-result handlingwikidata_get_statementsFetch property claims for a Wikidata entity with full qualifier and reference detail.
properties parameter fetches only specific P-IDs β omit to return all statementsresolve_labels=false for raw QIDs only (faster, smaller payload)properties for the ones you need (unfiltered, Q30 carries 467 properties across 1,717 statements)wikidata_get_sitelinksFetch Wikipedia and Wikimedia project article URLs for a Wikidata item.
enwiki) to article titles and URLssites parameter filters to specific site codeswikis_only=true returns only Wikipedia links (excludes Wiktionary, Wikiquote, Wikisource, etc.)wikidata_sparql_queryExecute a SPARQL SELECT query against the Wikidata Query Service (Blazegraph).
wd:, wdt:, p:, ps:, pq:, wikibase:, bd:) are auto-injectedwikibase:label SERVICE auto-injected when language is set and the query uses ?<var>Label variables{ type, value, "xml:lang"? }timeout parameter (1β55s) applies earlierwikidata_resolve_external_idLook up a Wikidata entity by an external identifier.
https://doi.org/, https://pubmed.ncbi.nlm.nih.gov/, https://orcid.org/), DOIs uppercased, PMID prefixes stripped, ORCID hyphens normalizedexternal-id β item-valued or media properties (e.g. P31, P18) are rejected rather than returning an empty matchmatch=null when not found (the Query Service lags the live wiki, so a null is not proof of absence)multipleMatches when a Wikidata data integrity issue causes more than one entity to claim the same external ID| Type | Name | Description |
|---|---|---|
| Resource | wikidata://entity/{id} | Compact markdown summary of a Wikidata entity β labels, English description, instance-of, Wikipedia link, image, and statement count |
All resource data is also reachable via tools.
Built on @cyanheads/mcp-ts-core:
none, jwt, oauth)in-memory, filesystem, Supabase, Cloudflare KV/R2/D1Wikidata-specific:
wbgetentities API for efficient batch label resolutionUser-Agent per Wikimedia policyAgent-friendly output:
wikidata_get_labels designed to follow SPARQL result sets β run the query, then humanize in one callwikidata_resolve_external_id handles DOI/PMID/ORCID normalization transparently, with multipleMatches for data integrity edge caseswikidata_get_statements resolves QID values to labels in the same call, with resolve_labels=false escape hatch for raw payloadsAdd the following to your MCP client configuration file.
Or with npx (no Bun required):
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/wikidata-mcp-server)<a href="https://allmcps.com/mcp/wikidata-mcp-server"><img src="https://allmcps.com/api/badge/wikidata-mcp-server?style=directory" alt="Wikidata MCP Server on AllMCPs" /></a>