/wikidata-mcp-server:wikidata-guidefrom wikidata-mcp-server
Use wikidata_* tools to identify entities, verify qualified claims, join external identifiers, and build SPARQL graph queries. Use for Wikidata research that needs identity disambiguation, statement evidence, or completeness checks.
Ships in wikidata-mcp-server. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use Wikidata for structured relationships, identifiers, multilingual entity names, and links to Wikimedia articles. No API key is required. Use an article or source-document service when the task needs full text; a Wikidata statement or sitelink does not supply that text. Missing claims and links do not establish that a real-world fact or article is absent.
wikidata_search_entities, wikidata_resolve_external_id, a returned statement value, or a SPARQL entity URI. Keep the Q-ID through joins; labels can be shared by unrelated items.wikidata_search_entities or read from returned statements. Inspect an unfamiliar property's entity with wikidata_get_entity to check its meaning and datatype before using it.wikidata_resolve_external_id; a name or title is not an external identifier.wikidata_get_statements; retain it with the evidence it identifies. It is not the entity's Q-ID or the property's P-ID.enwiki in returned sitelinks, identifying a Wikimedia project and language. Obtain article URLs with wikidata_get_sitelinks, rather than constructing URLs from entity labels.multipleMatches before interpreting a null match as a miss; fetch candidates to disambiguate them. Check unavailableGraphs too: a graph named there (wikidata_main or scholarly_articles) was not searched, so retry before calling the result a miss. An ordinary null means no indexed match, not proof of absence: the Query Service can lag the live wiki. Inspect known candidate entities directly when recent edits matter. A match's rank says how the entity holds the identifier; deprecated usually means a retired or mistaken ID, so confirm the entity before relying on it.kind: "outline" response contains an inventory, not the statements or entity fields. Follow retrieval_notice; do not turn section names or counts into evidence.rank: "best" on wikidata_get_statements keeps the preferred statements, or the normal ones when none is preferred, and never deprecated ones — the same statements SPARQL's truthy wdt: reads. Check time qualifiers for time-sensitive claims, and state when Wikidata supplies no supporting reference.somevalue means an unknown value, novalue an explicit absence; neither means a missing property. Preserve time precision, quantity units and bounds, coordinate precision, and language tags when present. Do not convert a year-precision time into a known day, or an unresolved Q-ID into a guessed label.truncated: true, shown, cap, and a notice, and without totalCount, since the rows past the ceiling were never read. Statements return 10 per property by default: propertyTotals counts what each property holds, and nextOffset continues every property. Labels past the first 500 distinct IDs come back in deferredIds. A missing flag, a LIMIT-bounded query, or a page of results does not prove completeness. Describe an empty query as no matching indexed rows under that query's conditions.Resolve identity → discover relevant properties → retrieve targeted statements → interpret qualifiers and references → follow related Q-IDs or retrieve sitelinks. Use wikidata_get_labels for display-only batches; fetch full entities only when their additional fields are needed.
Search the name, then inspect plausible candidates with wikidata_get_entity. Find the predicate with property search if its P-ID is unknown. Use wikidata_get_statements for the chosen entity and relevant predicates; it labels the properties it returns in propertyLabels. For an affiliation or office, examine date qualifiers before presenting it as current; for a quantity, keep the unit beside the value.
If the entity fetch outlines statements, switch to wikidata_get_statements. If that tool outlines properties, retrieve only those needed for the question, following its notice with the same limit, offset, and rank. A single property is never outlined: it returns its limit statements from offset, so page it with nextOffset when propertyTotals shows more. For oversized sitelinks, use wikidata_get_sitelinks; narrow multilingual fields on the entity fetch instead of repeatedly requesting the same oversized category.
Start with the identifier in the source record and resolve it with wikidata_resolve_external_id. Check the echoed normalized value, especially for identifier schemes other than DOI, PubMed, ORCID, OpenAlex, and IMDb, whose value is passed through without scheme-specific normalization. DOIs and PubMed IDs of scholarly articles resolve too: the lookup searches the scholarly-article graph beside the main one. On ambiguity, compare candidate entities against the source record. On success, retrieve the needed statements or use wikidata_get_sitelinks for article URLs. No sitelink means no link was returned for that item and selection, not that Wikipedia has no relevant article.
Resolve the query's subjects, classes, and unfamiliar predicates before writing SPARQL. Use wikidata_sparql_query for joins, traversals, or aggregation that individual lookups cannot express. Choose direct claims only when qualifier and reference detail is unnecessary; use statement nodes otherwise. The SPARQL patterns cover this distinction.
Keep queries selective. On timeout, narrow graph patterns or simplify traversal rather than repeatedly increasing the wait. On throttling, follow the returned recovery guidance and reduce concurrent queries. For multiple pages, use stable ordering and retain the same query conditions; changing live data can still move rows between pages. Use aggregation when the user needs counts rather than individual records.
Scholarly articles and their triples (DOI, PMID, authorship) sit in a separate graph, reachable only inside SERVICE wdsubgraph:scholarly_articles { … }; the SPARQL patterns show the query and how to read an article's label. For a single DOI or PMID, wikidata_resolve_external_id is the shorter route.
Read each SPARQL binding's type and value; a URI, language-tagged literal, and typed literal are different kinds of result. Pass entity URIs from results straight to wikidata_get_labels for unresolved display names; it takes them as returned. Keep the IDs even when labels are available.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
wikidata-mcp-server@cyanheads is listed by cyanheads/cyanheads — review the source before installing
npx claudepluginhub cyanheads/cyanheads --plugin wikidata-mcp-server