Install
$ agentstack add mcp-rudra-ravi-wikipedia-mcp ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Wikipedia MCP Server
[](https://smithery.ai/server/@Rudra-ravi/wikipedia-mcp) [](https://spark.entire.vc/assets/vb-wikipedia-mcp) [](https://agentseal.org/mcp/wikipedia-mcp)
A Model Context Protocol (MCP) server that retrieves information from Wikipedia to provide context to Large Language Models (LLMs). This tool helps AI assistants access factual information from Wikipedia to ground their responses in reliable sources.
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.
Verified By
[](https://mseep.ai/app/rudra-ravi-wikipedia-mcp)
Features
- Search Wikipedia: Find articles matching specific queries with enhanced diagnostics
- 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
--languageor-largument when running the server (e.g.,wikipedia-mcp --language tafor Tamil). - Country/Locale Support: Use intuitive country codes like
--country US,--country China, or--country TWinstead of language codes. Automatically maps to appropriate Wikipedia language variants. - Language Variant Support: Support for language variants such as Chinese traditional/simplified (e.g.,
zh-hansfor Simplified Chinese,zh-twfor Traditional Chinese), Serbian scripts (sr-latn,sr-cyrl), and other regional variants. - Optional caching: Cache API responses for improved performance using --enable-cache
- Modern MCP Transport Support: Supports
stdio,http, andstreamable-http(with legacyssecompatibility). - Optional MCP Transport Auth: Secure network transports with
--auth-mode staticor--auth-mode jwt. - 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:
# Install pipx if you don't have it
pip install pipx
pipx ensurepath
# Install the Wikipedia MCP server
pipx install wikipedia-mcp
This ensures the wikipedia-mcp command is available in Claude Desktop's PATH.
Installing via Smithery
To install wikipedia-mcp for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @Rudra-ravi/wikipedia-mcp --client claude
From PyPI (Alternative)
You can also install directly from PyPI:
pip install wikipedia-mcp
Note: If you use this method and encounter connection issues with Claude Desktop, you may need to use the full path to the command in your configuration. See the [Configuration](#configuration-for-claude-desktop) section for details.
Using a virtual environment
# Create a virtual environment
python3 -m venv venv
# Activate the virtual environment
source venv/bin/activate
# Install the package
pip install git+https://github.com/rudra-ravi/wikipedia-mcp.git
From source
# Clone the repository
git clone https://github.com/rudra-ravi/wikipedia-mcp.git
cd wikipedia-mcp
# Create a virtual environment
python3 -m venv wikipedia-mcp-env
source wikipedia-mcp-env/bin/activate
# Install in development mode
pip install -e .
Usage
Running the server
# If installed with pipx
wikipedia-mcp
# If installed in a virtual environment
source venv/bin/activate
wikipedia-mcp
# Specify transport protocol (default: stdio)
wikipedia-mcp --transport stdio # For Claude Desktop
wikipedia-mcp --transport http --host 0.0.0.0 --port 8080 --path /mcp
wikipedia-mcp --transport streamable-http --host 0.0.0.0 --port 8080 --path /mcp
wikipedia-mcp --transport sse # Legacy compatibility transport
# Specify language (default: en for English)
wikipedia-mcp --language ja # Example for Japanese
wikipedia-mcp --language zh-hans # Example for Simplified Chinese
wikipedia-mcp --language zh-tw # Example for Traditional Chinese (Taiwan)
wikipedia-mcp --language sr-latn # Example for Serbian Latin script
# Specify country/locale (alternative to language codes)
wikipedia-mcp --country US # English (United States)
wikipedia-mcp --country China # Chinese Simplified
wikipedia-mcp --country Taiwan # Chinese Traditional (Taiwan)
wikipedia-mcp --country Japan # Japanese
wikipedia-mcp --country Germany # German
wikipedia-mcp --country france # French (case insensitive)
# List all supported countries
wikipedia-mcp --list-countries
# Optional: Specify host/port/path for network transport (use 0.0.0.0 for containers)
wikipedia-mcp --transport http --host 0.0.0.0 --port 8080 --path /mcp
# Optional: Enable caching
wikipedia-mcp --enable-cache
# Optional: Use Personal Access Token to avoid rate limiting (403 errors)
wikipedia-mcp --access-token your_wikipedia_token_here
# Or set via environment variable
export WIKIPEDIA_ACCESS_TOKEN=your_wikipedia_token_here
wikipedia-mcp
# Optional: Secure incoming MCP network requests with static bearer token
wikipedia-mcp --transport http --auth-mode static --auth-token your_mcp_token --host 0.0.0.0 --port 8080
# Optional: Secure incoming MCP network requests with JWT validation
wikipedia-mcp --transport http --auth-mode jwt --auth-jwks-uri https://issuer/.well-known/jwks.json --auth-issuer https://issuer
# Security note: prefer http/streamable-http + auth-mode for exposed network transport.
# Combine options
wikipedia-mcp --country Taiwan --enable-cache --access-token your_wikipedia_token --transport http --path /mcp --port 8080
### Docker/Kubernetes
When running inside containers, bind the HTTP MCP server to all interfaces and map
the container port to the host or service:
```bash
# Build and run with Docker
docker build -t wikipedia-mcp .
docker run --rm -p 8080:8080 wikipedia-mcp --transport http --host 0.0.0.0 --port 8080 --path /mcp
Kubernetes example (minimal):
apiVersion: apps/v1
kind: Deployment
metadata:
name: wikipedia-mcp
spec:
replicas: 1
selector:
matchLabels:
app: wikipedia-mcp
template:
metadata:
labels:
app: wikipedia-mcp
spec:
containers:
- name: server
image: your-repo/wikipedia-mcp:latest
args: ["--transport", "http", "--host", "0.0.0.0", "--port", "8080", "--path", "/mcp"]
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: wikipedia-mcp
spec:
selector:
app: wikipedia-mcp
ports:
- name: http
port: 8080
targetPort: 8080
### Configuration for Claude Desktop
Add the following to your Claude Desktop configuration file:
**Option 1: Using command name (requires `wikipedia-mcp` to be in PATH)**
```json
{
"mcpServers": {
"wikipedia": {
"command": "wikipedia-mcp"
}
}
}
Option 2: Using full path (recommended if you get connection errors)
{
"mcpServers": {
"wikipedia": {
"command": "/full/path/to/wikipedia-mcp"
}
}
}
Option 3: With country/language specification
{
"mcpServers": {
"wikipedia-us": {
"command": "wikipedia-mcp",
"args": ["--country", "US"]
},
"wikipedia-taiwan": {
"command": "wikipedia-mcp",
"args": ["--country", "TW"]
},
"wikipedia-japan": {
"command": "wikipedia-mcp",
"args": ["--country", "Japan"]
}
}
}
To find the full path, run: which wikipedia-mcp
Configuration file locations:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%/Claude/claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
> Note: If you encounter connection errors, see the [Troubleshooting](#common-issues) section for solutions.
Documentation Index
- CLI usage and options: see [
docs/CLI.md](docs/CLI.md) - API and MCP tools/resources: see [
docs/API.md](docs/API.md) - Architecture overview: see [
docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) - User guide and troubleshooting: see [
docs/USER_GUIDE.md](docs/USER_GUIDE.md) - Development guide: see [
docs/DEVELOPMENT.md](docs/DEVELOPMENT.md) - Testing guide: see [
docs/TESTING.md](docs/TESTING.md)
Available MCP Tools
The Wikipedia MCP server provides the following tools for LLMs to interact with Wikipedia:
Each tool is also exposed with a wikipedia_-prefixed alias (for example, wikipedia_get_article) for improved cross-server discoverability.
search_wikipedia
Search Wikipedia for articles matching a query.
Parameters:
query(string): The search termlimit(integer, optional): Maximum number of results to return (default: 10)
Returns:
- A list of search results with titles, snippets, and metadata
get_article
Get the full content of a Wikipedia article.
Parameters:
title(string): The title of the Wikipedia article
Returns:
- Article content including text, summary, sections, links, and categories
get_summary
Get a concise summary of a Wikipedia article.
Parameters:
title(string): The title of the Wikipedia article
Returns:
- A text summary of the article
get_sections
Get the sections of a Wikipedia article.
Parameters:
title(string): The title of the Wikipedia article
Returns:
- A structured list of article sections with their content
get_links
Get the links contained within a Wikipedia article.
Parameters:
title(string): The title of the Wikipedia article
Returns:
- A list of links to other Wikipedia articles
get_coordinates
Get the coordinates of a Wikipedia article.
Parameters:
title(string): The title of the Wikipedia article
Returns:
- A dictionary containing coordinate information including:
title: The article titlepageid: The page IDcoordinates: List of coordinate objects with latitude, longitude, and metadataexists: Whether the article existserror: Any error message if retrieval failed
get_related_topics
Get topics related to a Wikipedia article based on links and categories.
Parameters:
title(string): The title of the Wikipedia articlelimit(integer, optional): Maximum number of related topics (default: 10)
Returns:
- A list of related topics with relevance information
summarize_article_for_query
Get a summary of a Wikipedia article tailored to a specific query.
Parameters:
title(string): The title of the Wikipedia articlequery(string): The query to focus the summary onmax_length(integer, optional): Maximum length of the summary (default: 250)
Returns:
- A dictionary containing the title, query, and the focused summary
summarize_article_section
Get a summary of a specific section of a Wikipedia article.
Parameters:
title(string): The title of the Wikipedia articlesection_title(string): The title of the section to summarizemax_length(integer, optional): Maximum length of the summary (default: 150)
Returns:
- A dictionary containing the title, section title, and the section summary
extract_key_facts
Extract key facts from a Wikipedia article, optionally focused on a specific topic within the article.
Parameters:
title(string): The title of the Wikipedia articletopic_within_article(string, optional): A specific topic within the article to focus fact extractioncount(integer, optional): Number of key facts to extract (default: 5)
Returns:
- A dictionary containing the title, topic, and a list of extracted facts
Country/Locale Support
The Wikipedia MCP server supports intuitive country and region codes as an alternative to language codes. This makes it easier to access region-specific Wikipedia content without needing to know language codes.
Supported Countries and Regions
Use --list-countries to see all supported countries:
wikipedia-mcp --list-countries
This will display countries organized by language, for example:
Supported Country/Locale Codes:
========================================
en: US, USA, United States, UK, GB, Canada, Australia, ...
zh-hans: CN, China
zh-tw: TW, Taiwan
ja: JP, Japan
de: DE, Germany
fr: FR, France
es: ES, Spain, MX, Mexico, AR, Argentina, ...
pt: PT, Portugal, BR, Brazil
ru: RU, Russia
ar: SA, Saudi Arabia, AE, UAE, EG, Egypt, ...
Usage Examples
# Major countries by code
wikipedia-mcp --country US # United States (English)
wikipedia-mcp --country CN # China (Simplified Chinese)
wikipedia-mcp --country TW # Taiwan (Traditional Chinese)
wikipedia-mcp --country JP # Japan (Japanese)
wikipedia-mcp --country DE # Germany (German)
wikipedia-mcp --country FR # France (French)
wikipedia-mcp --country BR # Brazil (Portuguese)
wikipedia-mcp --country RU # Russia (Russian)
# Countries by full name (case insensitive)
wikipedia-mcp --country "United States"
wikipedia-mcp --country China
wikipedia-mcp --country Taiwan
wikipedia-mcp --country Japan
wikipedia-mcp --country Germany
wikipedia-mcp --country france # Case insensitive
# Regional variants
wikipedia-mcp --country HK # Hong Kong (Traditional Chinese)
wikipedia-mcp --country SG # Singapore (Simplified Chinese)
wikipedia-mcp --country "Saudi Arabia" # Arabic
wikipedia-mcp --country Mexico # Spanish
Country-to-Language Mapping
The server automatically maps country codes to appropriate Wikipedia language editions:
- English-speaking: US, UK, Canada, Australia, New Zealand, Ireland, South Africa →
en - Chinese regions:
- CN, China →
zh-hans(Simplified Chinese) - TW, Taiwan →
zh-tw(Traditional Chinese - Taiwan) - HK, Hong Kong →
zh-hk(Traditional Chinese - Hong Kong) - SG, Singapore →
zh-sg(Simplified Chinese - Singapore) - Major languages: JP→
ja, DE→de, FR→fr, ES→es, IT→it, RU→ru, etc. - Regional variants: Supports 140+ countries and regions
Error Handling
If you specify an unsupported country, you'll get a helpful error message:
$ wikipedia-mcp --country INVALID
Error: Unsupported country/locale: 'INVALID'.
Supported country codes include: US, USA, UK, GB, CA, AU, NZ, IE, ZA, CN.
Use --language parameter for direct language codes instead.
Use --list-countries to see supported country codes.
Language Variants
The Wikipedia MCP server supports language variants for languages that have multiple writing systems or regional variations. This feature is particularly useful for Chinese, Serbian, Kurdish, and other languages with multiple scripts or regional differences.
Supported Language Variants
Chinese Language Variants
zh-hans- Simplified Chinesezh-hant- Traditional Chinesezh-tw- Traditional Chinese (Taiwan)zh-hk- Traditional Chinese (Hong Kong)zh-mo- Traditional Chinese (Macau)zh-cn- Simplified Chinese (China)zh-sg- Simplified Chinese (Singapore)zh-my- Simplified Chinese (Malaysia)
Serbian Language Variants
sr-latn- Serbian Latin scriptsr-cyrl- Serbian Cyrillic script
Kurdish Language Variants
ku-latn- Kurdish Latin scriptku-arab- Kurdish Arabic script
Norwegian Language Variants
no- Norwegian (automatically mapped to Bokmål)
Usage Examples
…
## Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.
- **Author:** [Rudra-ravi](https://github.com/Rudra-ravi)
- **Source:** [Rudra-ravi/wikipedia-mcp](https://github.com/Rudra-ravi/wikipedia-mcp)
- **License:** MIT
- **Homepage:** https://pypi.org/project/wikipedia-mcp/
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.