Wikimedia MCP Server
Wikimedia MCP Server
A Model Context Protocol (MCP) server for interacting with Wikimedia APIs. Access Wikipedia and other Wikimedia project content programmatically with natural language queries.
Features
- Search Content: Full-text search across Wikimedia page content
- Search Titles: Search page titles with autocomplete suggestions
- Get Page: Retrieve page content, title, URL and metadata
- Language Versions: Find versions of a page in other languages
- Featured Content: Get featured articles, most read pages, and pictures of the day
- Historical Events: Get events, births, deaths, and holidays for any date
Requirements
- Python 3.12+
- uv package manager
- MCP server framework
Security
- All user inputs are validated
- No sensitive data or credentials required
- Rate limiting handled by Wikimedia API
- Error messages don't expose internal details
Installation
Claude Desktop Configuration
On MacOS:
On Windows:
Development Configuration
Published Configuration
Tools
search_content
Full-text search across Wikimedia page content. Returns snippets matching the query.
query
(required): Search termlimit
(1-50, default 10): Number of resultsproject
(default "wikipedia"): Wikimedia projectlanguage
(default "en"): Language code
search_titles
Search Wikimedia page titles starting with the query. Returns suggestions with descriptions.
query
(required): Search prefixlimit
(1-100, default 10): Number of resultsproject
(default "wikipedia"): Wikimedia projectlanguage
(default "en"): Language code
get_page
Get Wikimedia page content, title, URL and last modified date.
title
(required): Page titleproject
(default "wikipedia"): Wikimedia projectlanguage
(default "en"): Language code
get_languages
Get versions of a Wikimedia page in other languages.
title
(required): Page titleproject
(default "wikipedia"): Wikimedia projectlanguage
(default "en"): Language code
get_featured
Get featured Wikimedia content for a date. Returns featured article, most read pages, and picture of the day.
date
(YYYY/MM/DD, default today): Date to get content forproject
("wikipedia" only): Must be Wikipedialanguage
(en/de/fr/es/ru/ja/zh): Supported languages
get_on_this_day
Get historical events from Wikimedia for a date.
date
(MM/DD, default today): Date to get events fortype
(default "all"): Event type - all/selected/births/deaths/holidays/eventsproject
("wikipedia" only): Must be Wikipedialanguage
(en/de/fr/es/ru/ja/zh): Supported languages
Example Usage
Contributing
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
License
MIT License. See LICENSE file for details.
Enables programmatic interaction with Wikimedia APIs, offering features like searching content, retrieving page information, and accessing historical events across multiple languages.