Wikidata MCP
Model Context Protocol for Wikidata
What is Wikidata MCP?
Wikidata MCP is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to model context protocol for wikidata
Model Context Protocol for Wikidata
This server falls under the Search & Data Extraction category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- Model Context Protocol for Wikidata
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx wikidatamcpConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Wikidata MCP
WikidataMCP is a Model Context Protocol server built by Wikimedia Deutschland that gives AI assistants direct, structured access to Wikidata — the world's largest open knowledge graph with hundreds of millions of statements about entities, relationships, and facts. It exposes six tools covering vector and keyword search, statement retrieval, SPARQL query execution, and entity hierarchy exploration. Developers and researchers use it to ground AI responses in verifiable, linked open data without writing SPARQL from scratch.
Prerequisites
- An MCP-compatible client such as Claude Desktop or any client supporting SSE/HTTP transport
- No API key required — the server is hosted publicly at wd-mcp.wmcloud.org
- Optional: Docker and Docker Compose if you want to self-host the server
- Optional: uv and Python 3.11+ for local development
Choose hosted or self-hosted deployment
WikidataMCP is publicly hosted by Wikimedia Deutschland at wd-mcp.wmcloud.org/mcp — no installation required for most users. For self-hosting, clone the repo and use Docker Compose.
# Self-hosted option:
git clone https://github.com/wmde/WikidataMCP.git
cd WikidataMCP
docker compose up --buildConfigure your MCP client to use the hosted endpoint
Add a remote MCP server entry pointing to the public Wikimedia-hosted endpoint. This uses the SSE or streamable-HTTP transport that most modern MCP clients support.
{
"mcpServers": {
"wikidata": {
"url": "https://wd-mcp.wmcloud.org/mcp"
}
}
}Verify the connection via the interactive docs
Open https://wd-mcp.wmcloud.org/docs in your browser to explore the available tools and test queries interactively before using them from Claude.
Test a basic entity search
In your MCP client, ask Claude to search for an entity using the search_items tool. This confirms the connection is working and returns Wikidata QIDs.
Wikidata MCP Examples
Client configuration
Connect Claude Desktop to the publicly hosted WikidataMCP endpoint via URL-based remote server configuration.
{
"mcpServers": {
"wikidata": {
"url": "https://wd-mcp.wmcloud.org/mcp"
}
}
}Prompts to try
Queries that exercise search_items, get_statements, execute_sparql, and get_instance_and_subclass_hierarchy tools.
- "Search Wikidata for items about Marie Curie and return her QID"
- "Get all statements for Wikidata entity Q7186 (Marie Curie) including qualifiers"
- "Run a SPARQL query to list all Nobel Prize winners in Physics with their birth dates"
- "Show the subclass hierarchy for 'chemical element' (Q11344) in Wikidata"
- "Find the Wikidata property ID for 'country of citizenship'"Troubleshooting Wikidata MCP
MCP client cannot connect to the hosted URL
Ensure your MCP client supports URL-based (SSE or streamable-HTTP) remote servers. Claude Desktop 0.10+ supports this. If using an older client, self-host with Docker Compose and point to localhost instead.
SPARQL query times out or returns an error
Wikidata's SPARQL endpoint has a 60-second execution limit. Add LIMIT clauses to your queries (e.g., LIMIT 100) and use indexed properties (P31, P279, P569) in WHERE clauses to improve performance.
search_items returns unexpected or irrelevant entities
The tool uses vector search when available and falls back to keyword search. For ambiguous terms, include additional context in your query (e.g., 'Python programming language' rather than just 'Python') or use get_instance_and_subclass_hierarchy to disambiguate.
Frequently Asked Questions about Wikidata MCP
What is Wikidata MCP?
Wikidata MCP is a Model Context Protocol (MCP) server that model context protocol for wikidata It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Wikidata MCP?
Follow the installation instructions on the Wikidata MCP GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Wikidata MCP?
Wikidata MCP works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Wikidata MCP free to use?
Yes, Wikidata MCP is open source and available under the BSD-3-Clause license. You can use it freely in both personal and commercial projects.
Wikidata MCP Alternatives — Similar Search & Data Extraction Servers
Looking for alternatives to Wikidata MCP? Here are other popular search & data extraction servers you can use with Claude, Cursor, and VS Code.
TrendRadar
★ 58.0kA real-time hotspot monitoring and news aggregation assistant that provides AI-powered analysis of trending topics across multiple platforms via the Model Context Protocol. It enables users to track news and receive automated notifications through va
Scrapling
★ 52.7k🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!
PDF Math Translate
★ 33.9k[EMNLP 2025 Demo] PDF scientific paper translation with preserved formats - 基于 AI 完整保留排版的 PDF 文档全文双语翻译,支持 Google/DeepL/Ollama/OpenAI 等服务,提供 CLI/GUI/MCP/Docker/Zotero
GPT Researcher
★ 27.2kAn autonomous agent that conducts deep research on any data using any LLM providers
Agent Reach
★ 20.1kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Xiaohongshu
★ 13.7kMCP for xiaohongshu.com
Browse More Search & Data Extraction MCP Servers
Explore all search & data extraction servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Wikidata MCP in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Wikidata MCP?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.