Skip to content
verify mcp Beta VerifyMCP is currently in beta. If you notice any issues, get in touch and we’ll put it right.

io.github.cyanheads/wikidata-mcp-server

NPM · @CYANHEADS/WIKIDATA-MCP-SERVER · 2 COMPONENTS · SCANNED SEP 20

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

+40 this week 83 Trust /100
Trust breakdown (7 categories)

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score → Why this is hard to score →

Supply Chain Security98
  • No malware found by supply-chain analysis.Pass
  • No known CVEs affecting this package version or its production dependencies.Pass
  • No install/post-install scripts declared.Pass
  • 16 of 49 dependencies flagged as unhealthy. View diagnostics → Partial
Provenance & Transparency48
  • Source repository is publicly reachable at the declared URL. View diagnostics → Pass
  • Provenance check failed: no build-provenance attestation is published. See how to fix → View diagnostics → Fail
  • Clear OSI-approved license (Apache-2.0).Pass
  • Actively maintained (last published 0 days ago).Pass
  • Publishes a security disclosure policy (SECURITY.md).Pass
Schema Quality & AI Usability78
  • 100% of prompts and resources have a non-trivial description (not blank, and not just the item's name).Pass
  • AI-judged instruction clarity (excellent).Pass
  • Context-footprint check failed: tool/resource definitions use about 2277 tokens (~227/item across 10 items; 7 tools + 3 resources), over budget; trim descriptions and params. See how to fix → Fail
  • Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management97
  • Stability observed for 29 of 30 days with no destabilising changes; credit accrues until the full window elapses.Partial
Tool Coverage100
  • 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
  • 100% of tool parameters carry a description.Pass
  • Structured output schemas are declared (100% of tools); any adoption earns full credit.Pass
Tool Safety75
  • No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.Pass
  • 0 of 1 tool(s) whose name or description implies an irreversible operation declare an MCP destructiveHint annotation; "wikidata_sparql_query" implies "execute" and declares readOnlyHint instead, contradicting what its own name says it does. See how to fix → Fail
  • An AI judge read all 9 captured unit(s) of tool text and found none that tries to manipulate the model reading it.Pass
Capabilities100
  • Implements a current MCP spec version (2026-07-28).Pass
Install

How do I install the io.github.cyanheads/wikidata-mcp-server server?

io.github.cyanheads/wikidata-mcp-server runs locally as an npm package, launched with npx -y @cyanheads/wikidata-mcp-server. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.

npm · @cyanheads/wikidata-mcp-server

# add to Claude Code
claude mcp add cyanheads-wikidata-mcp-server -- npx -y @cyanheads/wikidata-mcp-server
// .cursor/mcp.json
{
  "mcpServers": {
    "cyanheads-wikidata-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/wikidata-mcp-server"
      ]
    }
  }
}
// .vscode/mcp.json
{
  "servers": {
    "cyanheads-wikidata-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/wikidata-mcp-server"
      ]
    }
  }
}
# add to Codex CLI
codex mcp add cyanheads-wikidata-mcp-server -- npx -y @cyanheads/wikidata-mcp-server
// opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "cyanheads-wikidata-mcp-server": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "@cyanheads/wikidata-mcp-server"
      ],
      "enabled": true
    }
  }
}
# add to OpenClaw
openclaw mcp add cyanheads-wikidata-mcp-server --command npx --arg -y --arg @cyanheads/wikidata-mcp-server
# ~/.hermes/config.yaml
mcp_servers:
  cyanheads-wikidata-mcp-server:
    command: "npx"
    args: ["-y", "@cyanheads/wikidata-mcp-server"]
// ~/.netclaw/config/netclaw.json
{
  "McpServers": {
    "cyanheads-wikidata-mcp-server": {
      "Transport": "stdio",
      "Command": "npx",
      "Arguments": [
        "-y",
        "@cyanheads/wikidata-mcp-server"
      ]
    }
  }
}
# add to Vellum
assistant mcp add cyanheads-wikidata-mcp-server -t stdio -c npx -a -y @cyanheads/wikidata-mcp-server
// mcp.json
{
  "mcpServers": {
    "cyanheads-wikidata-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/wikidata-mcp-server"
      ]
    }
  }
}
Changelog

Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.

  • 20 Sept 26 +27
    • Stability: 0.93 → unverified security
    • Injection markers: unverified → pass security
    • Tool safety: Tool safety not yet verified: we do not have a sandbox capture of the tool definitions this version of the package serves yet. security
    • Capabilities: pass → unverified functional
    • Schema quality: 317 → 227 functional
    • Tool coverage: unverified → 100 functional
    • Schema quality: unverified → 100 functional
    • Schema quality: Schema quality not yet verified: we do not have a sandbox capture of the MCP schema this version of the package serves yet. functional
    • Tool coverage: Tool coverage not yet verified: we do not have a sandbox capture of the tool definitions this version of the package serves yet. functional
    • Package version: 0.1.18 → 0.1.19 functional
  • 19 Sept 26 +13
    • Stability: fail → 0.93 functional
  • 9 Sept 26 +1
    • Security disclosure: unverified → pass functional
  • 8 Sept 26 −1
    • Security disclosure: pass → unverified functional
  • 6 Sept 26 −36
    • Tool safety: pass → unverified security
    • Stability: 0.80 → fail security
    • Tool coverage: 100 → unverified functional
  • 5 Sept 26 −2
    • Stability: pass → 0.80 functional
  • 4 Sept 26 0
    • Stability: 0.97 → pass security
  • 3 Sept 26 +1

    No change was recorded against any check on this day. Stability & Change Management went from 93 to 97. That category is still filling its 30-day observation window: 28 days of observed history at the previous scan, 29 at this one. The score rises as the window fills, whether or not the server changes.

Diagnostics

Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.

Captured 20 Sept 2026 · Analysed npm/@cyanheads/wikidata-mcp-server@0.1.19

Provenance No attestation

The registry publishes no build provenance for this version, so there is nothing to verify.

Result No attestation
Ecosystem npm

Background: How many MCP packages publish verified provenance →

Dependencies 49 packages
Packages resolved 49
Stale 16
Tree resolution Complete

Background: SBOMs and build attestations, explained →

MCP tools · 7 exposed · ~2,058 tokens

The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability. A tool's description is untrusted text the model reads on every call, which is what makes this list a security surface and not just an inventory: how tool poisoning works →

Tool Tokens
wikidata_get_entity ~388

Fetch 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 — instead of the data. Follow its retrieval_notice literally rather than picking from sections yourself — it names a fields set already measured to fit, since category sizes are additive and requesting them all would overflow again; for a category too large to deliver whole (statements or sitelinks on a major item) it names the sibling tool that can narrow it. Q-IDs (e.g. Q76) fetch items; P-IDs (e.g. P31) fetch properties from the correct endpoint automatically. Use wikidata_get_statements for deep claim traversal with label resolution, and whenever an entity's statements are large — its properties parameter selects individual P-IDs, granularity fields does not carry.

NameTypeReqDescription
fieldsarrayFields to include. Options: "labels", "descriptions", "aliases", "statements", "sitelinks". Narrows the upstream fetch as well as the response, so a narrow selection is markedly cheaper. Omit for all…
idstringyesQ-ID (e.g., "Q76") or P-ID (e.g., "P31"). Case-insensitive — normalized to uppercase.
languagesarrayLanguage codes to include in labels, descriptions, and aliases (e.g., ["en", "de"]). A requested language with no label of its own falls back to the entity's multilingual ("mul") value, returned unde…
NameTypeReqDescription
aliasesobjectMap of language code to list of alias strings (e.g., {"en": ["Barack H. Obama", "President Obama"]}).
data_typestringProperty data type (e.g., "wikibase-item", "external-id"). Present on properties only.
descriptionsobjectMap of language code to description string (e.g., {"en": "44th President of the United States"}).
errorobjectPresent when the call failed. Absent on success.
fieldsReturnedarrayWhich fields were requested. In outline mode these are the categories the outline covers, not data returned.
idstringNormalized entity ID (e.g., "Q76" or "P31").
kindstringfull — the requested field categories carry their data. outline — the entity overflowed the inline byte budget, so sections lists the categories with their byte sizes instead, and retrieval_notice na…
labelsobjectMap of language code to label string (e.g., {"en": "Barack Obama", "de": "Barack Obama"}).
retrieval_noticestringPresent when kind = outline: the next call to make, and the authoritative one to follow. It names a literal fields set already measured to fit the budget, defers any category that would not fit along…
sectionsarrayPresent when kind = outline: the entity's field categories, largest first, each with its byte size. Sizes are additive — a set of categories is only retrievable together if their total fits the budge…
sitelinksobjectMap of site code (e.g., "enwiki") to sitelink metadata with title, url, and badges fields.
statementsobjectMap of property ID to array of raw statement objects. Use wikidata_get_statements for resolved claims with label resolution, and whenever this entity's statements are large — its properties parameter…
typestringEntity type: "item" or "property".

No examples provided.

wikidata_get_labels ~165

Resolve 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.

NameTypeReqDescription
idsarrayyesQ-IDs (e.g., "Q76") or P-IDs (e.g., "P31") to resolve. 1–50 IDs per call.
languagesarrayBCP 47 language codes for returned labels and descriptions (e.g., ["en", "de", "fr"]). A language with no label of its own falls back to the entity's multilingual ("mul") value, returned under the re…
NameTypeReqDescription
entitiesobjectMap of entity ID to labels and descriptions. IDs that were not found are absent.
errorobjectPresent when the call failed. Absent on success.
foundnumberCount of IDs that returned data.
languagesarrayThe language codes that were requested.
notFoundarrayIDs from the request that did not return data (not found or invalid).

No examples provided.

wikidata_get_sitelinks ~226

Fetch 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.

NameTypeReqDescription
idstringyesQ-ID of the item (e.g., "Q76"). Only items have sitelinks; properties (P-IDs) are not supported.
sitesarrayOptional filter to specific site codes (e.g., ["enwiki", "frwiki", "dewiki"]). Omit to return all sitelinks.
wikis_onlybooleanWhen true, return only Wikipedia sitelinks (site codes ending in "wiki", e.g., "enwiki", "dewiki"). Excludes Wikisource, Wiktionary, Wikiquote, etc.
NameTypeReqDescription
countnumberNumber of sitelinks returned.
errorobjectPresent when the call failed. Absent on success.
idstringThe Q-ID whose sitelinks were fetched.
messagestringInformational note when no sitelinks were found. Absent when sitelinks are present.
sitelinksobjectMap of site code to sitelink metadata. Empty when the entity has no matching sitelinks.

No examples provided.

wikidata_get_statements ~293

Fetch property claims for a Wikidata entity with qualifier and reference detail. Value QIDs 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 fits inline. An oversized set comes back as kind: "outline" — every available P-ID with its byte size, largest first — instead of the statements; re-call with the same id plus properties:[...] naming the P-IDs you want. Designed for fact verification: "what does Wikidata say about this entity's {property}?". Preferred-rank statements are the most current values.

NameTypeReqDescription
idstringyesQ-ID (e.g., "Q76") or P-ID of the entity to fetch statements for.
languagestringLanguage code for label resolution of QID values (e.g., "en", "de").
propertiesarrayP-IDs to fetch (e.g., ["P31", "P569", "P27"]). Omit to return all properties (may be large for major items).
resolve_labelsbooleanResolve wikibase-item value QIDs to human-readable labels via a batched label call. Set to false to skip label resolution and return raw QIDs only (faster, smaller payload).
NameTypeReqDescription
errorobjectPresent when the call failed. Absent on success.
idstringThe entity ID whose statements were fetched.
kindstringfull — statements carries the claims. outline — the statement set overflowed the inline byte budget, so sections lists the P-IDs available instead; re-call with properties:[...] to retrieve specific…
labelsResolvedbooleanTrue when QID values were resolved to labels. False when resolve_labels was set to false.
propertyCountnumberNumber of distinct properties — those returned in full mode, those offered as sections in outline mode.
retrieval_noticestringPresent when kind = outline: how to re-call for specific properties.
sectionsarrayPresent when kind = outline: the P-IDs this entity carries statements for, largest first. Copy names into the properties input to retrieve them.
statementCountnumberTotal number of statement objects across all properties. Counted before any overflow, so it reports the entity's full statement volume in both modes.
statementsobjectMap of property ID to array of normalized statements. Each statement has id, rank, property, value (with type-specific fields), and optional qualifiers and references arrays. Present in full mode; om…

No examples provided.

wikidata_resolve_external_id ~438

Look 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 → Wikidata paper QID (P698), ORCID → author QID (P496), OpenAlex ID → entity QID (P10283). The property must be one whose Wikidata data type is external-id — item-valued or media properties (e.g. P31 instance-of, P18 image) are rejected rather than returning an empty match. Known value normalization is applied automatically: surrounding whitespace is trimmed, identifier-resolver URL prefixes are stripped (https://doi.org/, https://pubmed.ncbi.nlm.nih.gov/, https://orcid.org/), DOIs are uppercased, PMID prefixes stripped, ORCID hyphens normalized.

NameTypeReqDescription
languagestringLanguage code for label and description in the response (e.g., "en", "de").
propertystringyesP-ID of the external identifier property, whose Wikidata data type must be external-id (e.g., "P356" for DOI, "P698" for PubMed ID, "P496" for ORCID, "P10283" for OpenAlex ID, "P345" for IMDb ID). Pr…
valuestringyesThe external identifier value to look up (e.g., "10.1038/nature01234" for a DOI, "32283226" for a PubMed ID, "0000-0002-1825-0097" for an ORCID). A resolver URL is accepted for DOI, PubMed, and ORCID…
NameTypeReqDescription
errorobjectPresent when the call failed. Absent on success.
matchMatching entity, or null when no Wikidata entity claims this external identifier (including the case where multipleMatches is populated). A null match is not proof of absence — the Query Service back…
multipleMatchesarrayPresent when more than one Wikidata entity claims this external ID (data integrity issue). match is null when this field is present. Inspect the list and select the correct QID manually.
propertystringThe P-ID used for the lookup.
valuestringThe normalized value that was searched (may differ from input due to canonicalization).

No examples provided.

wikidata_search_entities ~220

Search 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.

NameTypeReqDescription
languagestringBCP 47 language code for returned labels and descriptions (e.g., "en", "de", "zh").
limitintegerMaximum number of results to return. Range: 1–50.
offsetintegerPagination offset. Start at 0; increment by limit to page through results.
querystringyesSearch terms to match against entity labels, aliases, and descriptions.
typestringEntity type to search. Use "item" for Q-IDs (people, places, concepts) or "property" for P-IDs (predicates).
NameTypeReqDescription
capnumberThe limit parameter in effect.
effectiveQuerystringThe search query that was executed.
errorobjectPresent when the call failed. Absent on success.
languagestringThe language used for label and description display.
noticestringRecovery hint when results are empty — echoes filters and suggests how to broaden. Absent when results are present.
resultsarrayRanked list of matching entities. Empty when no results found.
searchTypestringThe entity type that was searched ("item" or "property").
shownnumberNumber of results returned on this page.
truncatedbooleanTrue when results were capped at the limit. The Wikidata search API returns no total count — use offset pagination to retrieve more.

No examples provided.

wikidata_sparql_query ~328

Execute 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:) are auto-injected. The wikibase:label SERVICE is also auto-injected when language is set and the query includes ?<var>Label variables — so you can use ?itemLabel without writing the boilerplate. Hard server timeout is 60s; use LIMIT to keep queries fast. Bindings use the SPARQL 1.1 JSON format: each value is { type, value, "xml:lang"? }. Use wikidata_get_labels to humanize QID results from this tool.

NameTypeReqDescription
languagestringLanguage for the wikibase:label SERVICE (e.g., "en", "de"). Controls the language of ?<var>Label variables. Set to "" to suppress label SERVICE injection.
querystringyesSPARQL SELECT query. Must be a SELECT query (not CONSTRUCT/DESCRIBE/ASK). Standard prefixes (wd:, wdt:, p:, ps:, pq:, wikibase:, bd:) are injected automatically. Example: SELECT ?item ?itemLabel WHER…
timeoutintegerClient-side timeout in seconds (1–55). Capped at 55s — the Wikidata server hard limit is 60s.
NameTypeReqDescription
errorobjectPresent when the call failed. Absent on success.
noticestringRecovery hint when no results returned — suggests checking query logic or broadening filters. Absent on non-empty results.
resultsarrayArray of result bindings. Each row maps variable names to binding objects with { type, value, "xml:lang"?, datatype? } fields.
totalCountnumberNumber of result rows returned.
truncatedbooleanTrue when the row count equals 10,000 — the Wikidata/Blazegraph server-side cap — indicating the result set was likely truncated. False otherwise. Add a LIMIT clause to avoid hitting the cap. Note: t…
variablesarrayVariable names returned by the SELECT clause.

No examples provided.

Common questions

What is the io.github.cyanheads/wikidata-mcp-server server?

io.github.cyanheads/wikidata-mcp-server is listed in the public MCP registry as io.github.cyanheads/wikidata-mcp-server. Search and fetch Wikidata entities, execute SPARQL queries, and resolve external identifiers. This page covers its npm package (@cyanheads/wikidata-mcp-server).

Is the io.github.cyanheads/wikidata-mcp-server server safe to use?

io.github.cyanheads/wikidata-mcp-server scores 83 out of 100 on VerifyMCP. We found no known CVEs affecting it as of 20 September 2026. It declares no install or post-install scripts. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.

What tools does the io.github.cyanheads/wikidata-mcp-server server expose?

io.github.cyanheads/wikidata-mcp-server exposes 7 tools: wikidata_search_entities, wikidata_get_entity, wikidata_get_labels, wikidata_get_statements, wikidata_get_sitelinks, and 2 more. Their descriptions and schemas cost roughly 2,058 tokens of context every time the server is loaded.

Is the io.github.cyanheads/wikidata-mcp-server server still maintained?

io.github.cyanheads/wikidata-mcp-server is still listed as active in the MCP registry. We last reached this channel on 20 September 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.

What licence is the io.github.cyanheads/wikidata-mcp-server server under?

io.github.cyanheads/wikidata-mcp-server declares the Apache-2.0 licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.