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.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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: mcp-offline-wikipedia
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
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Search and read Wikipedia articles and sections, list cited references, nearby pages, and languages.
Search and read Wikipedia in any language: summaries and full articles. Free, no key.
Wikipedia, Wikidata and Wiktionary as clean JSON, not HTML. 1.9M searchable. Free, no auth.
Pay-per-call x402 Wikipedia summaries/search and Wikidata facts, with CC BY-SA attribution.
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 gradedqualityCmaintenanceProvides offline search and retrieval of Wikipedia articles using Kiwix .zim files, enabling LLMs to access full Wikipedia content without internet.3MIT
- AlicenseAqualityDmaintenanceProvides offline access to Wikipedia and other ZIM content through a local Kiwix instance, enabling search, summaries, and full article retrieval without internet.4MIT
- FlicenseNot gradedqualityDmaintenanceEnables searching and retrieving Wikipedia content across multiple languages, including article summaries, sections, coordinates, and related topics.-