Wikidata MCP Server
by zzaebok
A server implementation for the Wikidata API using the Model Context Protocol (MCP). It provides tools to interact with Wikidata, such as searching identifiers and executing SPARQL queries.
Last updated: N/A
What is Wikidata MCP Server?
This is a server that allows you to interact with the Wikidata API using the Model Context Protocol (MCP). It provides tools for searching entities and properties, extracting metadata, and executing SPARQL queries.
How to use Wikidata MCP Server?
First, install the dependencies using uv sync
. Then, run the server using uv run src/server.py
. You can test it with the client code using uv run src/client.py
in another shell.
Key features of Wikidata MCP Server
Search for Wikidata entity IDs by query
Search for Wikidata property IDs by query
Get properties associated with a Wikidata entity ID
Execute SPARQL queries on Wikidata
Retrieve the English label and description for a Wikidata entity ID
Use cases of Wikidata MCP Server
Building knowledge-based applications
Integrating Wikidata into LLM workflows
Extracting structured data from Wikidata
Developing tools for exploring Wikidata
FAQ from Wikidata MCP Server
What is Wikidata?
What is Wikidata?
Wikidata is a free, collaborative, multilingual, secondary database, collecting structured data to provide support for Wikipedia, other Wikimedia projects, and to anyone else in the world.
What is MCP?
What is MCP?
MCP stands for Model Context Protocol, likely used here for structured communication with language models or other systems.
What is SPARQL?
What is SPARQL?
SPARQL is a query language used for querying data stored in Resource Description Framework (RDF) format, commonly used with knowledge graphs like Wikidata.
What kind of queries can I run?
What kind of queries can I run?
You can run any valid SPARQL query against the Wikidata database.
What license is this project under?
What license is this project under?
This project is licensed under the MIT License.