WM

Wikipedia MCP

Created 4 months ago

A Model Context Protocol (MCP) server that retrieves information from Wikipedia to provide context to Large Language Models (LLMs).

development documentation public MCP Wikipedia

What is Wikipedia MCP?

Access and search Wikipedia articles via MCP for AI-powered information retrieval.

Documentation

Overview

The Wikipedia MCP server provides real-time access to Wikipedia information through a standardized Model Context Protocol interface. This allows LLMs to retrieve accurate and up-to-date information directly from Wikipedia to enhance their responses.

Features

  • Search Wikipedia: Find articles matching specific queries
  • Retrieve Article Content: Get full article text with all information
  • Article Summaries: Get concise summaries of articles
  • Section Extraction: Retrieve specific sections from articles
  • Link Discovery: Find links within articles to related topics
  • Related Topics: Discover topics related to a specific article
  • Multi-language Support: Access Wikipedia in different languages by specifying the --language or -l argument when running the server.
  • Country/Locale Support: Use intuitive country codes like --country US, --country China, or --country TW instead of language codes.
  • Optional caching: Cache API responses for improved performance using --enable-cache
  • Google ADK Compatibility: Fully compatible with Google ADK agents and other AI frameworks that use strict function calling schemas

Installation# Using pipx (Recommended for Claude Desktop)

The best way to install for Claude Desktop usage is with pipx, which installs the command globally:

pip install pipx
pipx ensurepath\n\n# Install the Wikipedia MCP server
pipx install wikipedia-mcp
```\n\n### Installing via Smithery
To install wikipedia-mcp for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@Rudra-ravi/wikipedia-mcp):
```bash
npx -y @smithery/cli install @Rudra-ravi/wikipedia-mcp --client claude
```\n\n### From PyPI (Alternative)
You can also install directly from PyPI:
```bash
pip install wikipedia-mcp
```\n\n### Using a virtual environment
```bash\n\n# Create a virtual environment
python3 -m venv venv\n\n# Activate the virtual environment
source venv/bin/activate\n\n# Install the package
pip install git+https://github.com/rudra-ravi/wikipedia-mcp.git
```\n\n### From source
```bash\n\n# Clone the repository
git clone https://github.com/rudra-ravi/wikipedia-mcp.git
cd wikipedia-mcp\n\n# Create a virtual environment
python3 -m venv wikipedia-mcp-env
source wikipedia-mcp-env/bin/activate\n\n# Install in development mode
pip install -e .

Usage# Running the server

wikipedia-mcp\n\n# If installed in a virtual environment
source venv/bin/activate
wikipedia-mcp\n\n# Specify transport protocol (default: stdio)
wikipedia-mcp --transport stdio\n\n# For Claude Desktop
wikipedia-mcp --transport sse\n\n# For HTTP streaming\n\n# Specify language (default: en for English)
wikipedia-mcp --language ja\n\n# Example for Japanese
wikipedia-mcp --language zh-hans\n\n# Example for Simplified Chinese
wikipedia-mcp --language zh-tw\n\n# Example for Traditional Chinese (Taiwan)
wikipedia-mcp --language sr-latn\n\n# Example for Serbian Latin script\n\n# Specify country/locale (alternative to language codes)
wikipedia-mcp --country US\n\n# English (United States)
wikipedia-mcp --country China\n\n# Chinese Simplified
wikipedia-mcp --country Taiwan\n\n# Chinese Traditional (Taiwan)
wikipedia-mcp --country Japan\n\n# Japanese
wikipedia-mcp --country Germany\n\n# German
wikipedia-mcp --country france\n\n# French (case insensitive)\n\n# List all supported countries
wikipedia-mcp --list-countries\n\n# Optional: Specify port for SSE (default 8000)
wikipedia-mcp --transport sse --port 8080\n\n# Optional: Enable caching
wikipedia-mcp --enable-cache\n\n# Combine options
wikipedia-mcp --country Taiwan --enable-cache --transport sse --port 8080

License

This project is licensed under the MIT License - see the LICENSE file for details.

Server Config

{
  "mcpServers": {
    "wikipedia-mcp-server": {
      "command": "npx",
      "args": [
        "wikipedia-mcp"
      ]
    }
  }
}

Links & Status

Repository: github.com
Hosted: No
Global: Yes
Official: Yes

Project Info

Hosted Featured
Created At: Jul 07, 2025
Updated At: Aug 07, 2025
Author: Ravi Kumar
Category: community
License: MIT License
Tags:
development documentation public