skillfed

wikipedia-mcp

MCP server for Wikipedia API

wikipedia-mcp v2.0.1 118.6K downloads/30d#12,108 on PyPI285
Permissive license MIT Active released

What it is and what it does

Wikipedia-mcp is a Model Context Protocol server that bridges Wikipedia and large language models, allowing AI assistants to retrieve factual information directly from Wikipedia during conversation. It wraps the Wikipedia API behind the MCP interface, exposing tools for article search, full-text retrieval, summaries, section extraction, link discovery, and related-topic suggestions. The server supports multiple languages and regional variants (e.g., Simplified vs. Traditional Chinese, Serbian scripts) via country codes or explicit language tags, and can run over stdio (for Claude Desktop), HTTP, or streamable-HTTP transports with optional static or JWT authentication.

The package is designed for developers integrating LLMs with reliable reference sources. It handles Wikipedia's API directly through wikipedia-api and fastmcp, manages HTTP requests via requests, and supports environment configuration through python-dotenv. Installation is straightforward via pipx (recommended for Claude Desktop) or pip, and the server runs as a command-line tool with extensive configuration options for transport, language, caching, and security.

Use it for:

  • Integrate Claude Desktop with Wikipedia so it can cite and verify factual claims during conversations.
  • Ground LLM responses in real-time Wikipedia content for research, tutoring, or fact-checking applications.
  • Deploy a multi-language Wikipedia MCP server in Kubernetes or Docker for AI frameworks requiring strict function schemas.
  • Cache Wikipedia queries to reduce API calls and improve response latency in high-volume LLM deployments.
  • Secure network MCP transports with static bearer tokens or JWT validation for production AI agent infrastructure.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Exposes Wikipedia search, article retrieval, and content extraction as a Model Context Protocol server for LLMs to access factual information in real time.

Yes, if you are building an LLM application (especially Claude Desktop) that needs reliable factual grounding. The package is actively maintained, has no known vulnerabilities, installs cleanly, and offers rich Wikipedia integration with multi-language support and flexible transport options. Install via pipx for Claude Desktop or pip for programmatic use.

Install

wikipedia-mcp on PyPI

pip

pip install wikipedia-mcp

uv

uv add wikipedia-mcp

poetry

poetry add wikipedia-mcp

Installing wikipedia-mcp

Before you install

Low friction: pure Python wheel with four runtime dependencies (fastmcp, wikipedia-api, requests, python-dotenv). Active maintenance with recent commits and no known vulnerabilities.

License in practice

MIT license permits commercial and private use with minimal restrictions—suitable for most deployment scenarios.

Quickstart

pip install wikipedia-mcp
wikipedia-mcp --transport stdio

# In Claude Desktop config:
# {"mcpServers": {"wikipedia": {"command": "wikipedia-mcp"}}}

Requires Python >=3.10. For Claude Desktop use, wikipedia-mcp command must be in PATH or full path specified in config.

Verify before relying

  • Whether caching (--enable-cache) persists across server restarts and what storage backend it uses.
  • Rate-limiting behavior when accessing Wikipedia without a personal access token.
  • Performance characteristics for large article retrievals or high-volume queries.

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 4 — fastmcp, wikipedia-api, requests, python-dotenv
Maintenance actively maintained — 105 days since the last release
Last repo commit
First released
Downloads 118,638/month — #12,108 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: wikipedia_mcp-2.0.1-py3-none-any.whl

Keywords: mcp, wikipedia, model-context-protocol, ai, llm

Development Status :: 4 - BetaIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Topic :: Software Development :: Libraries :: Python Modules

Tags

wikipedia api for llmsmcp server wikipediallm grounding with wikipediaai assistant wikipedia accessmodel context protocol wikipediawikipedia information retrievalclaude wikipedia integration
llm-integrationmcp-serverknowledge-grounding

More Python Modules packages

Further reading