wikipedia
A comprehensive Model Context Protocol (MCP) server providing access to Wikipedia content with intelligent caching, batch operations, and advanced search capabilities for local development.
claude mcp add --transport stdio 1999azzar-wikipedia-mcp-server node /path/to/wikipedia-mcp-server/index.js \ --env CACHE_MAX="500" \ --env CACHE_TTL="300000" \ --env USER_AGENT="MCP-Wikipedia-Server/1.0" \ --env DEFAULT_LANGUAGE="en" \ --env ENABLE_DEDUPLICATION="true"
How to use
This MCP server provides programmatic access to Wikipedia content with intelligent caching, batch operations, and advanced search capabilities. Core tools include search for enhanced querying with snippet control and pagination, getPage and getPageById for rich article content, getPageSummary for quick summaries via the Wikipedia REST API, random article discovery, and pageLanguages to discover available language variants for a page. Advanced tools enable batchSearch and batchGetPages for parallel queries and fetches, searchNearby to locate articles near coordinates, and getPagesInCategory to browse content within categories. The server uses a memory-based cache and request routing optimizations to improve performance and reliability. You can integrate these tools into your application or development workflow to speed up content retrieval and reduce external API calls.
How to install
Prerequisites:
- Node.js (v14+ recommended) and npm
- Access to a local project directory containing the Wikipedia MCP server code
Install and run:
- Clone/download the repository: git clone https://github.com/your-org/wikipedia-mcp-server.git cd wikipedia-mcp-server
- Install dependencies: npm install
- Build the project (if required by the repo): npm run build
- Run the server locally (examples): npm start
- Configure your MCP client with the server details from the README example, replacing the path to index.js with your actual path.
Environment and configuration notes:
- The server supports in-memory caching with CACHE_MAX and CACHE_TTL, language defaults via DEFAULT_LANGUAGE, and optional deduplication via ENABLE_DEDUPLICATION.
Additional notes
Tips:
- Ensure the CACHE_MAX and CACHE_TTL values are tuned for your workload. A larger cache can improve performance for repeated requests but uses more memory.
- The DEFAULT_LANGUAGE sets the default Wikipedia language code (e.g., en, es, fr). Override per request if needed.
- ENABLE_DEDUPLICATION helps avoid duplicate requests under high concurrency; disable only if you have specific dedup constraints.
- If you deploy behind a reverse proxy, ensure proper CORS and request routing configuration for MCP clients.
- The server exposes a set of dynamic resources via the wikipedia:// URI scheme; use resources/read with the patterns described in the README to fetch cached content, metadata, and categories.
Related MCP Servers
mcp-router
A Unified MCP Server Management App (MCP Manager).
MCP-Defender
Desktop app that automatically scans and blocks malicious MCP traffic in AI apps like Cursor, Claude, VS Code and Windsurf.
cli
Fine-grained control over model context protocol (MCP) clients, servers, and tools. Context is God.
MiniMax -JS
Official MiniMax Model Context Protocol (MCP) JavaScript implementation that provides seamless integration with MiniMax's powerful AI capabilities including image generation, video generation, text-to-speech, and voice cloning APIs.
furi
CLI & API for MCP management
mcp -js
MCP server that exposes YepCode processes as callable tools for AI platforms. Securely connect AI assistants to your YepCode workflows, APIs, and automations.