Add your description here
Project description
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
vector_search_items(query: str) -> strPerforms 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.
keyword_search_items(query: str) -> strPerforms 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.
vector_search_properties(query: str) -> strPerforms 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.
keyword_search_properties(query: str) -> strPerforms 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.
get_entity_claims(entity_id: str) -> strReturns 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.
get_claim_values(entity_id: str, property_id: str) -> strGet 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.
execute_sparql(sparql: str) -> strExecutes 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iflow_mcp_philippesaade_wmde_wikidatamcp-0.1.0.tar.gz.
File metadata
- Download URL: iflow_mcp_philippesaade_wmde_wikidatamcp-0.1.0.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37434a03aaec3a56dcb8435c762b93918bca0a8e4627dd0c0b26f7ed7f60e229
|
|
| MD5 |
3c5df4d470322944abb67d81c55f303d
|
|
| BLAKE2b-256 |
358a1f599fa5d1f2ec264a66a67e11cb59f55f24052cf1340419b4310f2f1672
|
File details
Details for the file iflow_mcp_philippesaade_wmde_wikidatamcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: iflow_mcp_philippesaade_wmde_wikidatamcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ba1287742b08d0cb37c424d3d53ea1d80e388ea50bd64cb05999998a6bbbf61
|
|
| MD5 |
16c06c25a9ab93e7b66b585137bfb98c
|
|
| BLAKE2b-256 |
9557bf7545faf1e139bcfbc8cc65959e7b1eeab9f69ea926ed3c713418126f6c
|