wikidata-mcp-server
io.github.cyanheads/wikidata-mcp-server
Serveur MCP OK 7 outils
Search and fetch Wikidata entities, execute SPARQL queries, and resolve external identifiers.
Fiche technique
- Auteur
- cyanheads (espace de noms du registre)
- Dépôt
- github.com/cyanheads/wikidata-mcp-server
- Site
- —
- Version
- 0.4.1
- Transport
- Streamable HTTP stdio
- Authentification
- Aucune (constatée par notre test)
- Adresse du serveur
- https://wikidata.caseyjhand.com/mcp Streamable HTTP
- Paquets
- @cyanheads/wikidata-mcp-server 0.4.1 npm stdio
@cyanheads/wikidata-mcp-server 0.4.1 npm Streamable HTTP - Outils
- 7
- Catégories
- —
- Dernière mise à jour
- 22 nov. 2026
- Publication
- 22 nov. 2026
Auteur vérifié et popularité
Fiche pas encore revendiquée. C’est votre projet ? Revendiquez-la
Pas « Populaire » pour l’instant Retiré tout seul dès que les critères ne sont plus remplis.
- Visiteurs distincts de la fiche sur 30 jours : 0 (il en faut 30) pas encore
- ou configurations d’installation copiées sur 30 jours : 0 (il en faut 5) pas encore
- et un test réussi de moins de 14 jours : testé le 28 nov. 2026 rempli
Badge à jour tout seul. Toujours « testé le … », jamais « certifié ». Comment ça marche
[](https://latlas.dev/mcp/io.github.cyanheads/wikidata-mcp-server)<a href="https://latlas.dev/mcp/io.github.cyanheads/wikidata-mcp-server"><img src="https://latlas.dev/badge/statut/mcp/io.github.cyanheads/wikidata-mcp-server.svg" alt="Statut sur L’Atlas" height="20"></a>Badge pour votre README
Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.
[](https://latlas.dev/mcp/io.github.cyanheads/wikidata-mcp-server)<a href="https://latlas.dev/mcp/io.github.cyanheads/wikidata-mcp-server"><img src="https://latlas.dev/badge/fiche/io.github.cyanheads/wikidata-mcp-server.svg" alt="Référencé sur L’Atlas" height="20"></a>Nos tests
Chaque semaine : initialize puis tools/list, sans identifiant, sans jamais appeler d’outil. Méthode
- Adresse
- https://wikidata.caseyjhand.com/mcp
- Dernier résultat
- OK 28 nov. 2026, 10:21
- Temps de réponse
- 1 338 ms (initialize + tools/list)
- Version du protocole
- 2025-11-25
- Nom annoncé
- wikidata-mcp-server 0.4.1
- Outils
- 7
Historique
| Date | Résultat | Réponse | Outils |
|---|---|---|---|
| 28 nov. 2026, 10:21 | OK | 1 338 ms | 7 |
Outils exposés (7, réponse à tools/list, 28 nov. 2026)
wikidata_search_entities
Search Wikidata Entities
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 endpoint returns no total count: page by sending each page's nextOffset as offset until a page returns no results or no nextOffset. Only the first 10,000 results are reachable.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| query | string | oui | Search terms to match against entity labels, aliases, and descriptions. |
| type | enum: "item" | "property" | non | Entity type to search. Use "item" for Q-IDs (people, places, concepts) or "property" for P-IDs (predicates). |
| language | string | non | Wikidata language code for returned labels and descriptions (e.g., "en", "de", "zh-hant"). Case-insensitive; "_" is read as "-"; blank means "en". |
| limit | integer | non | Results per page. Default 10; a value above 500, the search endpoint's page maximum, returns at most 500 and says so. |
| offset | integer | non | Pagination offset, 0–9,999: the endpoint serves only the first 10,000 results. Start at 0, then send each page's nextOffset. |
wikidata_get_entity
Get Wikidata Entity
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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | Q-ID (e.g., "Q76") or P-ID (e.g., "P31"), bare or as an entity URI or wd: form (e.g., "http://www.wikidata.org/entity/Q76", "wd:Q76"). Case-insensitive — normalized to uppercase. |
| fields | array<enum: "labels" | "descriptions" | "aliases" | "statements" | "sitelinks"> | non | Fields 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 fields. |
| languages | array<string> | non | Wikidata language codes to include in labels, descriptions, and aliases (e.g., ["en", "de"]). Case-insensitive; "_" is read as "-"; blank entries are dropped. A requested language with no label of its own falls back to the entity's multilingual ("mul") value, returned under the requested code. Omit… |
wikidata_get_labels
Get Wikidata Labels
Resolve QIDs or PIDs to their human-readable labels and descriptions, with no claim data. Resolves up to 500 distinct IDs per call, batched automatically; distinct IDs past the first 500 come back in deferredIds to send in a follow-up call. Accepts bare IDs (Q76), entity URIs (http://www.wikidata.org/entity/Q76), and wd:Q76 — the forms wikidata_sparql_query returns — so its results can be humanized as they are.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| ids | array<string> | oui | Q-IDs (e.g., "Q76") or P-IDs (e.g., "P31") to resolve, bare or as an entity URI or wd: form (e.g., "http://www.wikidata.org/entity/Q76", "wd:Q76"). Up to 10,000 entries; duplicates count once, the first 500 distinct IDs resolve, and the rest come back in deferredIds. A malformed entry is returned i… |
| languages | array<string> | non | Wikidata language codes for returned labels and descriptions (e.g., ["en", "de", "fr"]), up to 50. Case-insensitive; "_" is read as "-"; blank entries are dropped, and an empty list means ["en"]. A language with no label of its own falls back to the entity's multilingual ("mul") value, returned und… |
wikidata_get_statements
Get Wikidata Statements
Fetch 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, and every P-ID the statements name comes back labelled in propertyLabels. Each property returns up to limit statements (default 10) starting at offset, in upstream order; propertyTotals counts every statement each property holds, and nextOffset, present while any property holds more, continues every property at once. Use the properties parameter to fetch only specific P-IDs — omitting it returns every property, and a well-connected item (a country, a major city) carries hundreds of them: more than fits inline. A page of several properties over 24,000 bytes before labels comes back as kind: "outline" — every P-ID on the page with its byte size, largest first — instead of the statements; re-call with the same id, limit, offset, and rank plus properties:[...] naming P-IDs whose sizes sum to 24,000 or less (the retrieval_notice names one such set). Labels are added after that check, so a returned page can run past 24,000 bytes by their size, and a single property is never outlined: it returns its window whatever the size. Designed for fact verification: "what does Wikidata say about this entity's {property}?". For a current value, rank: "best" keeps each property's preferred statements, or its normal ones when none is preferred, and never deprecated ones — the statements SPARQL's…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | Q-ID (e.g., "Q76") or P-ID of the entity to fetch statements for, bare or as an entity URI or wd: form (e.g., "http://www.wikidata.org/entity/Q76", "wd:Q76"). |
| properties | array<string> | non | P-IDs to fetch (e.g., ["P31", "P569", "P27"]), bare or as an entity URI or wd: form. Omit to return all properties (may be large for major items). |
| language | string | non | Wikidata language code for label resolution of QID values and P-IDs (e.g., "en", "de"). Case-insensitive; "_" is read as "-"; blank means "en". |
| resolve_labels | boolean | non | Resolve item QIDs (label), quantity unit QIDs (unitLabel), and the P-IDs of statements, qualifiers, reference parts, and property-typed values (propertyLabels) to human-readable labels via one batched label call over the returned statements. Set to false to skip label resolution and return raw IDs… |
| rank | enum: "all" | "best" | non | Which statements each property keeps. "all" keeps every statement, deprecated ones included. "best" keeps a property's preferred statements when it has any, otherwise its normal ones, and never deprecated ones — the truthy statements SPARQL's wdt: reads. Applied before every count, the limit/offset… |
| limit | integer | non | Statements returned per property, starting at offset, in upstream order. Default 10; a larger value returns at most 500 per property and says so. |
| offset | integer | non | Statements skipped in each property before its window. Start at 0; pass the nextOffset a response returns to continue every property at once. |
wikidata_get_sitelinks
Get Wikidata Sitelinks
Fetch Wikipedia and other Wikimedia project article URLs for a Wikidata item. A sitelink maps a site code (e.g., "enwiki", "commonswiki") to an article title and URL. Major items can have 300+ sitelinks across languages. Use sites to filter to specific site codes, or wikis_only to return only Wikipedia editions. Only Q-IDs (items) have sitelinks — properties (P-IDs) do not.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| id | string | oui | Q-ID of the item (e.g., "Q76"), bare or as an entity URI or wd: form (e.g., "http://www.wikidata.org/entity/Q76", "wd:Q76"). Only items have sitelinks; properties (P-IDs) are not supported. |
| sites | array<string> | non | Optional filter to specific site codes (e.g., ["enwiki", "frwiki", "commonswiki"]), matched in any case with surrounding whitespace ignored. Omit to return all sitelinks. |
| wikis_only | boolean | non | When true, return only Wikipedia language editions: sitelinks whose URL is on a .wikipedia.org host, such as enwiki (en.wikipedia.org) or be_x_oldwiki (be-tarask.wikipedia.org). Excludes Abstract Wikipedia, Wikimedia Commons, Wikispecies, Wikisource, Wiktionary, Wikiquote, and every other project. |
wikidata_sparql_query
Wikidata SPARQL Query
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:, rdfs:, schema:) are auto-injected. The wikibase:label SERVICE is also auto-injected when the query references a ? Label, ? Description, or ? AltLabel variable and declares no label SERVICE of its own — so you can use ?itemLabel without writing the boilerplate. Scholarly articles, and every triple they own (DOI, PMID, authorship), live in a separate graph reachable only inside SERVICE wdsubgraph:scholarly_articles { … } (wdsubgraph: is predeclared). The injected label SERVICE runs on the main graph, so read a scholarly article's label inside that block, with BIND(?paperLabel AS ?paperLabel) and a label SERVICE there; a query that writes a label SERVICE gets none injected, so add a top-level one for main-graph labels. Hard server timeout is 60s; use LIMIT to keep queries fast. Each call returns at most 4,000 rows; a larger result returns its first rows with truncated, shown, and cap in place of totalCount — narrow the WHERE clause or aggregate in the query, or, for a result not much larger than that, page with ORDER BY plus LIMIT and OFFSET. Bindings use the SPARQL 1.1 JSON format: each value is { type, value, "xml:lang"?, datatype? }. Use wikidata_get_labels to humanize QID results from this tool.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| query | string | oui | SPARQL SELECT query. Any other form — ASK, CONSTRUCT, DESCRIBE, an update, or plain search text — is rejected before it is sent. Standard prefixes (wd:, wdt:, p:, ps:, pq:, wikibase:, bd:, rdfs:, schema:) are injected automatically. Example: SELECT ?item ?itemLabel WHERE { ?item wdt:P31 wd:Q146. }… |
| language | string | non | Wikidata language code, or a comma-separated fallback list tried in order (e.g., "en", "de", "fr,en"), for the injected wikibase:label SERVICE — the language of ? Label, ? Description, and ? AltLabel variables. The list falls back to the multilingual ("mul") label last unless it already names mul.… |
| timeout | integer | non | Client-side timeout in seconds (1–55). Capped at 55s — the Wikidata server hard limit is 60s. |
wikidata_resolve_external_id
Resolve Wikidata External ID
Look up a Wikidata entity by an external identifier such as a DOI, PubMed ID, ORCID iD, OpenAlex ID, or IMDb ID. Returns match= 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. The identifier matches through statements of every rank — entities holding it at best rank first, then at another non-deprecated rank, then deprecated — and each match reports the rank of the statement it was found through. The lookup searches both the main Wikidata graph and the scholarly-article graph, where scholarly articles and the DOIs and PubMed IDs on them live; when one does not answer, the result covers the other, with unavailableGraphs naming the one missed. 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 forms are normalized automatically. Surrounding whitespace is trimmed. Resolver prefixes are stripped, in any case and with https://, http://, or no scheme: doi.org/, dx.doi.org/, www.doi.org/, and doi: for DOIs; pubmed.ncbi.nlm.nih.gov/, www.ncbi.nlm.nih.gov/pubmed/, and PMID: for PubMed IDs; orcid.org/, www.orcid.org/, and orcid: for O…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| property | string | oui | P-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). Properties of any other data type are rejected — check an unfamiliar P-ID's data type with wikidata_ge… |
| value | string | oui | The 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, "A5035517966" for an OpenAlex ID, "tt0111161" for an IMDb ID). Accepts resolver or page URLs for DOI, PubMed, ORCID, OpenAlex, IMDb, and ROR, and abs URLs… |
| language | string | non | Wikidata language code for the label and description in the response (e.g., "en", "de"). Case-insensitive; "_" is read as "-"; blank means "en". An entity with no label in this language returns its multilingual ("mul") label. |
Compatibilité clients
Selon les transports que chaque client déclare accepter dans sa documentation officielle ; ce n’est pas un essai réel dans le client.
| Client | Transports documentés | Ce serveur | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepté | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepté | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepté | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepté | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepté | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepté | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepté | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepté | doc |
Configs prêtes à copier
Adresse distante utilisée : https://wikidata.caseyjhand.com/mcp. Formats repris de la documentation de chaque client.
claude mcp add --transport http wikidata-mcp-server https://wikidata.caseyjhand.com/mcpCustomize > Connectors > + Add > Add custom connector ; Name : wikidata-mcp-server ; URL : https://wikidata.caseyjhand.com/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : wikidata-mcp-server ; Server URL : https://wikidata.caseyjhand.com/mcp ; Create as a plugin{
"mcpServers": {
"wikidata-mcp-server": {
"url": "https://wikidata.caseyjhand.com/mcp"
}
}
}{
"mcpServers": {
"wikidata-mcp-server": {
"type": "http",
"url": "https://wikidata.caseyjhand.com/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"wikidata-mcp-server": {
"url": "https://wikidata.caseyjhand.com/mcp"
}
}
}{
"mcpServers": {
"wikidata-mcp-server": {
"httpUrl": "https://wikidata.caseyjhand.com/mcp"
}
}
}[mcp_servers.wikidata-mcp-server]
url = "https://wikidata.caseyjhand.com/mcp"Citer cette source
Vous rédigez un article ou un comparatif ? Cette fiche distingue les informations du registre et nos mesures. Citez le lien permanent et la date du test ; un résultat OK ne constitue pas un audit de sécurité ni une garantie de disponibilité.
wikidata-mcp-server · L’Atlas · Test du
[wikidata-mcp-server — L’Atlas](https://latlas.dev/mcp/io.github.cyanheads/wikidata-mcp-server)Source : Registre officiel MCP · relevé le 2 déc. 2026. L’Atlas n’ajoute aucune donnée qui ne vienne de cette source ou de ses propres tests.