wikipedia-mcp-server
This project is a Cloudflare Worker that provides a Model Context Protocol (MCP) compliant interface to access Wikipedia search functionalities. By leveraging JSON-RPC 2.0, it offers structured methods for searching articles and retrieving page content by title or ID. Its deployment is focused on simplicity and efficiency for the user.
Wikipedia MCP Server (Cloudflare Worker)
A Cloudflare Worker implementing Wikipedia search and page retrieval using the Model Context Protocol (MCP) standard with JSON-RPC 2.0.
Features
- MCP Endpoint: Supports JSON-RPC 2.0 requests.
- Configurable LRU Cache for in-memory storage.
- Developed in TypeScript with Hono and deployable to Cloudflare Workers.
Requirements
- Node.js
- npm or yarn
- Wrangler CLI
- Cloudflare account
Installation
Clone the repository and install dependencies. Authenticate with Wrangler for deployment.
Configuration
Configure via wrangler.toml
for settings such as worker name, entry point, and compatibility date.
Running Locally
Use npm run dev
to start a local server simulating the Cloudflare environment.
Deployment
Deploy using npm run deploy
.
API Endpoint
POST /mcp
accepts JSON-RPC 2.0 calls for Wikipedia operations like search and retrieving page content.