mcp-server-wikipedia
This server provides a progressive retrieval strategy for Wikipedia, minimizing token usage by allowing LLMs to search, summarize, and selectively fetch sections. The tools include:
search_articles(query, limit=5): Search Wikipedia and return top matching pages with snippets.
get_summaries(titles): Fetch compact summaries for one or more page titles.
get_toc(title): Retrieve a structured table of contents with section indices, titles, and anchors.
get_section(title, section): Fetch a specific section by index or exact title.
get_page(title): Retrieve the full plain-text content of a page.
These tools can be chained (search → summaries → toc → section) to reduce token usage by up to 80% compared to fetching entire pages. It integrates as an MCP server with clients like Claude Desktop.
Provides tools for searching Wikipedia articles, getting summaries, inspecting table of contents, and retrieving specific sections or full pages using a progressive retrieval strategy to minimize token usage.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-server-wikipediaSearch for light reactions and summarize top result"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Wikipedia MCP Server 📚
Surgical, token-efficient Wikipedia knowledge retrieval MCP server for AI agents with deterministic summary, search, and full-article projection.
🌐 Live Documentation & Web Portal: https://wikipedia.builditwithai.xyz
⚡ Quickstart
# 1-Line Universal Installer (Auto-configures Claude Desktop, Cursor, Claude Code, Antigravity, VS Code, Zed, Windsurf)
curl -fsSL "https://wikipedia.builditwithai.xyz/install" | bash
# Or run directly via your preferred runtime:
uvx mcp-server-wikipedia
npx -y mcp-server-wikipediaRelated MCP server: Wikipedia MCP Server
🤖 Client Setup
A. Claude Code (CLI)
claude mcp add wikipedia -- uvx mcp-server-wikipediaB. Cursor & Google Antigravity (mcp.json)
{
"mcpServers": {
"wikipedia": {
"command": "uvx",
"args": ["mcp-server-wikipedia"]
}
}
}C. Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"wikipedia": {
"command": "uvx",
"args": ["mcp-server-wikipedia"]
}
}
}D. VS Code (Cline / Roo Code / Continue)
{
"mcpServers": {
"wikipedia": {
"command": "npx",
"args": ["-y", "mcp-server-wikipedia"]
}
}
}🛠️ Tools & Capabilities
Tool Name | Parameters | Description | Return Type |
|
| Fetches concise, factual lead summary of any Wikipedia page. |
|
|
| Fetches complete article body formatted in clean, structured Markdown. |
|
|
| Searches Wikipedia articles with autocomplete and relevance ranking. |
|
|
| Retrieves a specific section by header name, saving context window space. |
|
|
| Extracts outgoing cross-reference links from an article. |
|
|
| Lists taxonomic categories and classifications for a page. |
|
|
| Dynamically loads research playbooks from GitHub. |
|
| (none) | Lists all available Wikipedia research skills. |
|
🔒 Telemetry & Privacy
This package collects anonymous, non-PII diagnostic telemetry (command executions, latency, error codes) to improve tool reliability. No article search terms, personal data, source code, or environment variables are ever collected or stored.
You can opt out anytime by setting either of the following environment variables:
export DO_NOT_TRACK=1
# or
export MCP_TELEMETRY_OPT_OUT=1📄 License
MIT License. See LICENSE for details.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables LLMs to search for keywords and fetch full page content from Wikipedia across various languages. It provides direct access to Wikipedia information through search and fetch tools.23MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to access Wikipedia content, search articles, retrieve historical events, and fetch images through the Wikipedia API.4291MIT
- FlicenseNot gradedqualityCmaintenanceProvides comprehensive Wikipedia access for AI assistants via MCP Streamable HTTP transport, enabling search, article retrieval, summaries, section analysis, link discovery, and multi-language support.2
- AlicenseNot gradedqualityDmaintenanceEnables token-efficient web page fetching by converting HTML to Markdown with tiered access (outline, section, search) to minimize LLM context usage.2Apache 2.0
Related MCP Connectors
LLM-ready web search + instant answers + URL-to-clean-text fetch for agents and RAG.
Reduces AI Agent token usage by 40% via three-stage SOP workflow.
AI-agent web search, answer-ready content. Beats Tavily: 60.7% of quality duels, 20.2% fewer tokens.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/surendranb/wikipedia-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server