Wikidata MCP Server
Search and fetch Wikidata entities, execute SPARQL queries, and resolve external identifiers.
Connect it
Settings → Connectors → Add custom connector
URL: https://wikidata.caseyjhand.com/mcpSettings → Apps & Connectors → Advanced → Developer mode
Create connector with URL: https://wikidata.caseyjhand.com/mcp{
"mcpServers": {
"wikidata-mcp-server": {
"url": "https://wikidata.caseyjhand.com/mcp"
}
}
}claude mcp add --transport http wikidata-mcp-server https://wikidata.caseyjhand.com/mcp{
"servers": {
"wikidata-mcp-server": {
"type": "http",
"url": "https://wikidata.caseyjhand.com/mcp"
}
}
}{
"mcpServers": {
"wikidata-mcp-server": {
"command": "npx",
"args": [
"-y",
"@cyanheads/wikidata-mcp-server@0.2.0"
]
}
}
}claude mcp add wikidata-mcp-server -- npx -y @cyanheads/wikidata-mcp-server@0.2.07 tools, verified live
wikidata_search_entitiesread-onlySearch Wikidata for items or properties by text query. Returns QIDs or PIDs with labels, descriptions, and match metadata indicating whether the hit was on a label or alias. Use type="item" for real-world concepts (people, places, works) and type="property" to find predicate P-IDs. The API returns no total count â pagination is offset-based with no result ceiling indicator.
wikidata_get_entityread-onlyFetch a Wikidata entity (item or property) by QID or PID. The fields parameter narrows the upstream fetch, not just the response â asking for labels alone costs a fraction of the whole entity, so name the fields you need. Omit fields for all data; a well-connected item is large enough to overflow, and an oversized entity returns kind: "outline" â the field categories with their byte sizes â
wikidata_get_labelsread-onlyResolve one or more QIDs or PIDs to their human-readable labels and descriptions. Lightweight â returns no claim data. Supports up to 50 IDs per call (batched automatically). Designed for the common agent pattern: receive QIDs from a SPARQL query, then humanize them.
wikidata_get_statementsread-onlyFetch property claims for a Wikidata entity with qualifier and reference detail. Item QIDs and quantity units â in values, qualifiers, and references â are resolved to human-readable labels by default. Use the properties parameter to fetch only specific P-IDs â omitting it returns every statement, and a well-connected item (a country, a major city) carries hundreds of properties: more than f
wikidata_get_sitelinksread-onlyFetch Wikipedia and Wikimedia project article URLs for a Wikidata item. A sitelink maps a site code (e.g., "enwiki") to a Wikipedia article title and URL. Major items can have 300+ sitelinks across languages. Use sites to filter to specific language editions, or wikis_only to return only Wikipedia links. Only Q-IDs (items) have sitelinks â properties (P-IDs) do not.
wikidata_sparql_queryread-onlyExecute a SPARQL SELECT query against the Wikidata Query Service. Full graph power: multi-hop traversals, aggregations, subqueries, OPTIONAL, FILTER, UNION, BIND. Standard Wikidata prefixes (wd:, wdt:, p:, ps:, pq:, wikibase:, bd:, rdfs:, schema:) are auto-injected. The wikibase:label SERVICE is also auto-injected when the query references a ?<var>Label, ?<var>Description, or ?<var>AltLabel variab
wikidata_resolve_external_idread-onlyLook up a Wikidata entity by an external identifier such as a DOI, PubMed ID, ORCID iD, or OpenAlex ID. Returns match=<entity> on success, match=null when not found, and match=null with multipleMatches populated when a Wikidata data integrity issue causes more than one entity to claim the same external ID. Common cross-server join use cases: CrossRef DOI â Wikidata paper QID (P356), PubMed PMID
Alternatives in Search & Research
Compare →
GitHitsA
Search public open-source code, documentation, metadata, vulnerabilities, changelogs, and examples.
CMClinicaltrialsgov MCP ServerA
Search ClinicalTrials.gov: find studies, retrieve results, match patients to candidate trials.
ESG Hub MCP ServerA
ESG knowledge base for AI agents: hybrid search, glossary, frameworks, industries, graph traversal.
pmndrs docsA
Search and read the docs and examples of react-three-fiber, drei, zustand, jotai... from your agent
PMPubmed MCP ServerA
Search PubMed/Europe PMC, fetch articles and full text (PMC/EPMC/Unpaywall), citations, MeSH terms.
Google Ads + Meta Ads + SEO/GEO MCPA
Google Ads, Meta Ads, Google Analytics (GA4) & Search Console MCP server by Ryze AI