Get the FREE Ultimate OpenClaw Setup Guide →

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.

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
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:

  1. Clone/download the repository: git clone https://github.com/your-org/wikipedia-mcp-server.git cd wikipedia-mcp-server
  2. Install dependencies: npm install
  3. Build the project (if required by the repo): npm run build
  4. Run the server locally (examples): npm start
  5. 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

Sponsor this space

Reach thousands of developers