Minimal TypeScript-based HTTP server exposing Wikipedia search and page retrieval via MediaWiki API
Overview
what is Wikipedia MCP Server?
Wikipedia MCP Server is a minimal TypeScript-based HTTP server that exposes Wikipedia search and page retrieval functionalities via the MediaWiki API, allowing for flexible integration and configurable caching.
how to use Wikipedia MCP Server?
To use the server, clone the repository, install the dependencies, configure the environment variables, and run the server. You can then access the API endpoints to search for articles or retrieve page content.
key features of Wikipedia MCP Server?
- Search: Perform article searches with optional title filtering.
- Page Fetch: Retrieve parsed HTML and section data for a given page or page ID.
- Configurable LRU Cache: Enhance performance for repeated requests.
- Security Headers: Implement security measures via helmet.
- Configurable CORS: Set allowed origins for cross-origin requests.
- Rate Limiting: Control the number of requests per time window.
- TypeScript: Full type safety in the implementation.
use cases of Wikipedia MCP Server?
- Building applications that require Wikipedia content retrieval.
- Integrating Wikipedia search functionality into existing services.
- Creating educational tools that utilize Wikipedia data.
FAQ from Wikipedia MCP Server?
- How do I install the server?
Clone the repository, copy the example environment file, install dependencies, and run the build command.
- What are the requirements to run the server?
You need Node.js v14+ and npm installed.
- Can I customize the caching settings?
Yes, you can configure the maximum entries and TTL for the cache in the environment variables.