wikipedia-mcp
Enables AI agents to search, read, and explore Wikipedia articles via tools like summaries, categories, and random articles, with no API keys required.
README
Wikipedia MCP Server
Free knowledge access for AI agents. Search, read, and explore 6.8M+ Wikipedia articles with zero API keys. Built for agents that need facts, summaries, and discovery.
Agent: "What's the capital of Bhutan?"
→ wiki_get_summary("Thimphu")
→ "Thimphu is the capital and largest city of Bhutan..."
Agent: "What are the categories of 'Quantum computing'?"
→ wiki_get_categories("Quantum computing")
→ ["Quantum information science", "Computational complexity theory", ...]
Architecture
┌──────────────┐ stdio/JSON-RPC ┌──────────────────┐
│ AI Agent │ ◄──────────────────────► │ Wikipedia MCP │
│ (Claude, etc)│ │ Server (Python) │
└──────────────┘ └───────┬────────────┘
│ HTTPS
▼
┌──────────────────┐
│ Wikipedia REST │
│ API (Free, No │
│ Auth Required) │
└──────────────────┘
Why Wikipedia? 6.8M+ English articles, CC BY-SA 4.0 licensed, comprehensive, constantly updated. No API key, generous rate limits (~200 req/s), and 300+ language editions.
Tools
| # | Tool | Description | Parameters |
|---|---|---|---|
| 1 | wiki_search |
Search Wikipedia by query | query (required), limit, language, response_format |
| 2 | wiki_get_article |
Get full article content | title (required), language, max_sections, response_format |
| 3 | wiki_get_summary |
Get short summary/extract | title (required), sentences, language, response_format |
| 4 | wiki_get_categories |
Get article categories | title (required), limit, language, response_format |
| 5 | wiki_get_languages |
Get available translations | title (required), limit, response_format |
| 6 | wiki_random |
Get a random article | language, response_format |
| 7 | wiki_page_info |
Get page metadata | title (required), language, response_format |
Tool Details
wiki_search — Find articles
Search by natural language query. Returns titles, snippets (with bold highlights), page IDs, word counts, and direct URLs. Supports 300+ language editions.
// Example: wiki_search("quantum entanglement", limit=5)
{
"query": "quantum entanglement",
"total_hits": 1234,
"results": [
{
"title": "Quantum entanglement",
"pageid": 24934,
"snippet": "**Quantum entanglement** is a physical phenomenon...",
"word_count": 15623,
"url": "https://en.wikipedia.org/wiki/Quantum_entanglement"
}
]
}
wiki_get_article — Read full articles
Returns the complete article text as markdown with section headings. Use max_sections to limit for very large articles (>50KB). All content is CC BY-SA 4.0 licensed.
// Example: wiki_get_article("Python (programming language)", max_sections=3)
{
"title": "Python (programming language)",
"length_chars": 42310,
"extract": "# Python (programming language)\n\n**Python** is a high-level...",
"categories": ["Programming languages", "Python (programming language)"],
"url": "https://en.wikipedia.org/wiki/Python_(programming_language)"
}
wiki_get_summary — Quick facts
Returns the introductory extract (2-5 sentences by default) plus key metadata. Perfect for quick fact-checking, trivia, and agent decision-making.
wiki_get_categories — Navigate the knowledge graph
Returns all categories an article belongs to. Filters out Wikipedia infrastructure categories. Useful for topic exploration and building knowledge taxonomies.
wiki_get_languages — Cross-language access
Shows all available language versions of an article with language codes, native names, and full URLs. Supports 300+ languages from Afrikaans to Zulu.
wiki_random — Serendipitous discovery
Returns a random article with summary. Great for icebreakers, exploration, and "did you know?" moments.
wiki_page_info — Metadata at a glance
Returns page size, last modified date, content model, redirect status, and preview text.
Quality Standards
All tools implement Anthropic's MCP quality standards:
| Standard | Implementation |
|---|---|
| Tool Annotations | All 4 booleans: readOnlyHint, destructiveHint, idempotentHint, openWorldHint |
| Service Prefix | wiki_ prefix on all tools to avoid namespace collisions |
| Dual Response Format | markdown (human-readable) or json (programmatic) |
| Pagination | limit parameter on all list tools |
| CHARACTER_LIMIT | 25,000 char limit with automatic truncation + guidance |
| Error as Result | Errors returned as JSON with isError: true and next_steps |
Installation
Prerequisites
- Python 3.10+
- pip
Setup
git clone https://github.com/Rumblingb/wikipedia-mcp.git
cd wikipedia-mcp
pip install -r requirements.txt
Configure in Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"wikipedia": {
"command": "python3",
"args": ["server.py"],
"cwd": "/path/to/wikipedia-mcp"
}
}
}
Configure in VS Code / Cursor
{
"mcpServers": {
"wikipedia": {
"command": "python3",
"args": ["server.py"],
"cwd": "/path/to/wikipedia-mcp"
}
}
}
Deploy to Smithery
Visit smithery.ai → Import from GitHub → Select wikipedia-mcp.
Pricing
| Tier | Price | Queries/Month | Support |
|---|---|---|---|
| Free | $0 | 50 | Community |
| Pro | $19/mo | Unlimited | Priority Email |
| Enterprise | $99/mo | Unlimited + SLA | Dedicated |
FAQ
Q: Is this really free? No API key? Yes. Wikipedia's API is public and requires no authentication. The free tier gives you 50 queries/month through this server.
Q: What about content licensing? All Wikipedia content is licensed under CC BY-SA 4.0. Attribution is included in article responses.
Q: Which languages are supported?
300+ language editions. Use the language parameter on any tool (e.g., language="es" for Spanish).
Q: How is this different from just hitting the Wikipedia API directly? This server adds: agent-friendly response formats (markdown + JSON), automatic truncation, category filtering, error recovery with actionable next steps, and MCP protocol compliance for direct agent integration.
Q: Can I contribute? Yes! PRs welcome. See CONTRIBUTING.md.
Developer Notes
- Rate Limiting: Wikipedia allows ~200 requests/second. Be respectful — add delays between requests if making many calls.
- Attribution: Always attribute Wikipedia content per CC BY-SA 4.0.
- Caching: Consider caching results for repeated queries — Wikipedia content rarely changes.
Built by AgentPay Labs — Governed payment middleware for AI agents.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。