Wikipedia MCP Server
@danbunnell
A simple MCP Server in Python for working with Wikipedia topic content in a GenAI context
Overview
What is Wikipedia MCP Server?
A lightweight MCP server that fetches and returns Wikipedia article content for a given topic, intended for use with AI assistants like Cursor Composer.
How to use Wikipedia MCP Server?
Install dependencies with pip install -r requirements.txt and start the server using python src/server.py. Send a POST request to /mcp with a JSON body containing a topic field.
Key features of Wikipedia MCP Server
- Serves Wikipedia page content via the Model Context Protocol.
- Returns title, content, and URL for the requested topic.
- Runs as a local HTTP server on port 5000.
- Supports integration with Cursor Composer.
- Includes a test script to verify functionality.
Use cases of Wikipedia MCP Server
- Providing rich Wikipedia summaries to AI chatbots for grounded responses.
- Enabling Cursor Composer to answer questions using Wikipedia data.
- Building a lightweight knowledge retrieval tool for local AI workflows.
FAQ from Wikipedia MCP Server
What dependencies are required?
Python and the packages listed in requirements.txt (not detailed in the README).
How do I start the server?
Run python src/server.py after installing dependencies.
What is the API endpoint and format?
POST to http://localhost:5000/mcp with JSON body {"topic": "Topic_name"}.
What does the response look like?
A JSON object with status: "success" and data containing title, content, and url, or status: "error" with an error message.
Is there any authentication or transport security?
No. The server runs on plain HTTP with no authentication mentioned.