Wikimedia MCP Server

by privetin

477 downloads
Not rated
GitHub

About

An MCP server for interacting with Wikimedia APIs. Access Wikipedia and other Wikimedia project content programmatically.

Details

Author
privetin
Downloads
477
Categories
Other, API

- Search full-text content across Wikimedia pages
- Search page titles with autocomplete suggestions
- Retrieve page content, title, URL, and metadata
- Find page versions in other languages
- Get featured articles, most read pages, and pictures of the day
- Get historical events, births, deaths, and holidays for any date

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Wikimedia MCP Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install using the uv package manager (Python 3.12+). Configure the server in Claude Desktop’s claude_desktop_config.json under mcpServers with the command uvx wikimedia (for published) or uv run wikimedia (for development). Once connected, call tools such as search_content, get_page, or get_featured with required parameters.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "wikimedia mcp server": {
            "wikimedia": {
                "command": "uv",
                "args": [
                    "--directory",
                    "C:\\MCP\\server\\community\\wikimedia",
                    "run",
                    "wikimedia"
                ]
            }
        }
    }
}

McpServers

{
    "wikimedia": {
        "command": "uv",
        "args": [
            "--directory",
            "C:\\MCP\\server\\community\\wikimedia",
            "run",
            "wikimedia"
        ]
    }
}

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:

~/Library/Application Support/Claude/claude_desktop_config.json

On Windows:

C:\Users\<username>\AppData\Roaming\Claude\claude_desktop_config.json

Development Configuration

{
  "mcpServers": {
    "wikimedia": {
      "command": "uv",
      "args": [
        "--directory",
        "C:\\MCP\\server\\community\\wikimedia",
        "run",
        "wikimedia"
      ]
    }
  }
}

Published Configuration

{
  "mcpServers": {
    "wikimedia": {
      "command": "uvx",
      "args": [
        "wikimedia"
      ]
    }
  }
}

Tools

search_content

Full-text search across Wikimedia page content. Returns snippets matching the query. - query (required): Search term - limit (1-50, default 10): Number of results - project (default "wikipedia"): Wikimedia project - language (default "en"): Language code

search_titles

Search Wikimedia page titles starting with the query. Returns suggestions with descriptions. - query (required): Search prefix - limit (1-100, default 10): Number of results - project (default "wikipedia"): Wikimedia project - language (default "en"): Language code

get_page

Get Wikimedia page content, title, URL and last modified date. - title (required): Page title - project (default "wikipedia"): Wikimedia project - language (default "en"): Language code

get_languages

Get versions of a Wikimedia page in other languages. - title (required): Page title - project (default "wikipedia"): Wikimedia project - language (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 for - project ("wikipedia" only): Must be Wikipedia - language (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 for - type (default "all"): Event type - all/selected/births/deaths/holidays/events - project ("wikipedia" only): Must be Wikipedia - language (en/de/fr/es/ru/ja/zh): Supported languages

Example Usage

```python

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.