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
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.
모델 컨텍스트 프로토콜을 사용하여 Wikidata API와 상호작용하기 위한 서버 구현으로, 식별자 검색, 메타데이터 추출, SPARQL 쿼리 실행을 위한 도구를 제공합니다.
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that retrieves information from Wikipedia to provide context to LLMs, allowing users to search articles, get summaries, full content, sections, and links from Wikipedia.Last updated -1089MIT 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 -63
- -securityAlicense-qualityA custom Model Context Protocol adapter for MediaWiki and WikiBase APIsLast updated -4GPL 3.0
- AsecurityAlicenseAqualityA Model Context Protocol server that allows AI assistants and applications to access IQ.wiki data, enabling retrieval of specific wikis, user-created wikis, user-edited wikis, and detailed wiki activities.Last updated -54951MIT License