Skip to main content

Wikidata MCP

The Wikidata MCP (Model Context Protocol) provides a set of standardized tools that allow large language models (LLMs) to explore and query Wikidata programmatically. It is designed for agentic AI or AI workflows that need to search, inspect, and query Wikidata, without relying on hardcoded assumptions about its structure or content.

The Wikidata MCP server is running at https://wd-mcp.wmcloud.org/
You can connect your AI application to it at https://wd-mcp.wmcloud.org/mcp/


🧰 Tools

  1. vector_search_items(query: str) -> str Performs semantic search over Wikidata items using vector embeddings. Returns a list of semantically similar QIDs with labels and descriptions.

Use When: Starting the exploration process with vague, conceptual, or open-ended queries.

  1. keyword_search_items(query: str) -> str Performs keyword search over Wikidata item labels, aliases, and descriptions. Returns matching QIDs with their labels and descriptions.

Use When: You know the expected label or terminology used in a Wikidata item.

  1. vector_search_properties(query: str) -> str Performs semantic search over Wikidata properties using vector embeddings. Returns a list of semantically similar PIDs with labels and descriptions.

Use When: You want to identify relevant properties for building claims or SPARQL queries.

  1. keyword_search_properties(query: str) -> str Performs keyword search over Wikidata property labels, aliases, and descriptions. Returns matching PIDs with their labels and descriptions.

Use When: You know the expected label or terminology used in a Wikidata property.

  1. get_entity_claims(entity_id: str) -> str Returns all direct graph connections (statements) of a Wikidata entity in a triplet format, includes all claim values and their qualifiers.

Use When: You need to understand the structure of a Wikidata entity and how it connects to other items.

  1. get_claim_values(entity_id: str, property_id: str) -> str Get all values for a specific claim (entity-property pair), including all qualifiers, ranks and references. This is the only tool that gets references and values that are deprecated.

Use When: References or deprecated values are relevant, for example in fact-checking systems.

  1. execute_sparql(sparql: str) -> str Executes any valid SPARQL query against Wikidata and returns the results as a plain-text table.

Use when: You want to test, verify, or retrieve structured results based on conditions.


🌐 Services

Vector Search

This service interfaces with the Wikidata Vector Database, enabling semantic search over Wikidata items using natural language. It is ideal for discovering relevant items without needing to know exact labels. This serves as a first step in exploratory or context-rich workflows.

🚀 API: wd-vectordb.wmcloud.org
📚 Docs: wd-vectordb.wmcloud.org/docs
📄 Project Page: Wikidata Embedding Project

Wikidata Textifier

This service returns readable triplet or textual representations of Wikidata entities, with resolved lables, optimized for use by language models.

🚀 API: wd-textify.toolforge.org
📚 Docs: wd-textify.toolforge.org/docs


📅 Future Updates

  • Hybrid Search: The upcoming update of the vector search will integrate keyword search, eliminating the need for separate tools.
  • API Key Removal: Future versions of the vector database will drop the requirement for an API key.
  • Get Entity Hierarchy Tool: When writing a SPARQL query, users tend to explore the "instance of" and "subclass of" hierarchy of entities to understand what classification level to filter for. This new tool will output the full hierarchical path of an entity.
  • Property Example Tool: Inspired by SPINACH, a new tool will provide examples of how specific properties are used in Wikidata.

Metadata

Release files for iflow-mcp_philippesaade-wmde-wikidatamcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iflow-mcp_philippesaade-wmde-wikidatamcp 0.1.0
File Size Uploaded
iflow_mcp_philippesaade_wmde_wikidatamcp-0.1.0.tar.gz 11.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iflow-mcp_philippesaade-wmde-wikidatamcp 0.1.0
File Interpreter ABI Platform
iflow_mcp_philippesaade_wmde_wikidatamcp-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 23.7 kB

Release files / iflow_mcp_philippesaade_wmde_wikidatamcp-0.1.0.tar.gz

Download URL iflow_mcp_philippesaade_wmde_wikidatamcp-0.1.0.tar.gz
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
37434a03aaec3a56dcb8435c762b93918bca0a8e4627dd0c0b26f7ed7f60e229
BLAKE2b-256 checksum
How to use checksums
358a1f599fa5d1f2ec264a66a67e11cb59f55f24052cf1340419b4310f2f1672
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / iflow_mcp_philippesaade_wmde_wikidatamcp-0.1.0-py3-none-any.whl

Download URL iflow_mcp_philippesaade_wmde_wikidatamcp-0.1.0-py3-none-any.whl
Size 12.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ba1287742b08d0cb37c424d3d53ea1d80e388ea50bd64cb05999998a6bbbf61
BLAKE2b-256 checksum
How to use checksums
9557bf7545faf1e139bcfbc8cc65959e7b1eeab9f69ea926ed3c713418126f6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page