Integrations
Provides access to the project repository for installation via git clone from GitHub.
Enables integration with LangChain through langchain-mcp-adapters, allowing AI agents to interact with Wikidata's knowledge graph through the Model Context Protocol.
Provides tools for interacting with Wikidata, including searching for entity and property identifiers, retrieving entity metadata (labels and descriptions), accessing entity properties, and executing SPARQL queries against the Wikidata knowledge base.
Wikidata MCP Server
A server implementation for Wikidata API using the Model Context Protocol (MCP). This project provides tools to interact with Wikidata, such as searching identifiers (entity and property), extracting metadata (label and description) and executing sparql query.
Installation
Installing via Smithery
To install Wikidata MCP Server for Claude Desktop automatically via Smithery:
Installing Manually
Install uv
if it is not installed yet.
Then, install dependencies.
Run
Run the server with:
If you want to test it with a simple client code (with langchain-mcp-adapters
), run the client with:
The LLM extracts valid entity and property identifiers, executes a sparql query, and finally recommend a movie directed by Bong Joon-ho.
Wikidata MCP Tools
The following tools are implemented in the server:
Tool | Description |
---|---|
search_entity(query: str) | Search for a Wikidata entity ID by its query. |
search_property(query: str) | Search for a Wikidata property ID by its query. |
get_properties(entity_id: str) | Get the properties associated with a given Wikidata entity ID. |
execute_sparql(sparql_query: str) | Execute a SPARQL query on Wikidata. |
get_metadata(entity_id: str, language: str = "en") | Retrieve the English label and description for a given Wikidata entity ID. |
License
MIT License
You must be authenticated.
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A server implementation for interacting with Wikidata API using the Model Context Protocol, providing tools for searching identifiers, extracting metadata, and executing SPARQL queries.
Related Resources
Related MCP Servers
- -securityAlicense-qualityEnables programmatic interaction with Wikimedia APIs, offering features like searching content, retrieving page information, and accessing historical events across multiple languages.Last updated -62PythonMIT License
- -securityFlicense-qualityA Model Context Protocol server utilizing Claude AI for generating intelligent queries and offering documentation assistance based on API documentation analysis.Last updated -32TypeScript
- -securityAlicense-qualityA Model Context Protocol server that enables Large Language Models to seamlessly interact with ClickHouse databases, supporting resource listing, schema retrieval, and query execution.Last updated -1PythonMIT License
- AsecurityFlicenseAqualityA Model Context Protocol server that enables searching, reading, and editing wiki pages on Wizzypedia from MCP-enabled tools like Cursor or Claude Desktop.Last updated -6JavaScript