mcp-wikipedia
Allows searching Wikipedia's Vital Articles from a local index and retrieving article summaries, infobox facts, section headings, and section text, with typo-tolerant keyword or title search and metadata such as Wikidata ID, Vital level, and topic.
Click on "Deploy 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-wikipediaget the summary and infobox for Albert Einstein"
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.
mcp-wikipedia
An MCP server for searching Wikipedia's Vital Articles, the roughly 50,000 most important English articles, from a local index.
Setup
Copy .env.example to .env and set a User-Agent with your contact details, which Wikipedia asks clients to send.
Related MCP server: Wikipedia MCP Server
Run
task setup
task serveThe first run downloads the article list, streams the 37 GB English Wikipedia dataset keeping only the Vital Articles, and builds the index in ./data. If interrupted, it resumes where it left off. Later runs start immediately.
The server listens at http://localhost:8000/mcp.
Docker
Set UID and GID in .env to your user and group IDs so the files in ./data belong to you. Then:
mkdir data
docker compose up -dTools
search(query, limit=5): find articles by keywords or title; tolerates small typos. Returns title, description, start of the summary, Wikidata ID, Vital level, and topic.get_article(title, section=None): an article's summary, infobox facts, and section headings. Passsectionto also get that section's text.
Evaluate
Create data/questions.tsv with a question and the expected article title per line, separated by a tab, then run task evaluate to see how often the expected article is in the top 3 results.
Refresh the article list
The Vital list is fetched as it stood on the dataset's snapshot date, so its titles match the dataset. To move to a newer dataset, update REVISION and SNAPSHOT in src/mcp_wikipedia/download.py, then:
task vital --force
task serveThe articles are downloaded again for the new list and the index is rebuilt. With Docker: docker compose exec wikipedia task vital --force, then docker compose restart.
Development
task check # tests, lint, formattingLicense
This server cannot be deployed
Maintenance
Related MCP Connectors
Search Wikipedia, read summaries and full text, target sections, find nearby pages, list languages.
Wikipedia, Wikidata and Wiktionary as clean JSON, not HTML. 1.9M searchable. Free, no auth.
Search and fetch Wikidata entities, execute SPARQL queries, and resolve external identifiers.
Wikipedia MCP — wraps Wikipedia REST API (free, no auth)
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables completely offline Wikipedia search through locally-indexed content using BM25 algorithm, allowing AI assistants to query Wikipedia without internet connectivity or external API calls.-
- AlicenseNot gradedqualityDmaintenanceProvides comprehensive access to Wikipedia content including article search, full text retrieval, summaries, categories, links, images, language versions, and external references through 9 specialized tools.24 npmMIT
- AlicenseNot gradedqualityDmaintenanceProvides offline search and retrieval of Wikipedia articles using Kiwix .zim files, enabling LLMs to access full Wikipedia content without internet.2MIT
- AlicenseAqualityDmaintenanceProvides offline access to Wikipedia and other ZIM content through a local Kiwix instance, enabling search, summaries, and full article retrieval without internet.4MIT