
mcp wikipedia
A simple MCP Server in Python for working with Wikipedia topic content in a GenAI context
Repository Info
About This Server
A simple MCP Server in Python for working with Wikipedia topic content in a GenAI context
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Wikipedia MCP Server
This is an MCP (Model Control Protocol) server that provides Wikipedia content for the requested topic.
Setup
- Install the required dependencies:
pip install -r requirements.txt
- Start the server:
python src/server.py
The server will run on http://localhost:5000.
API Usage
Using the API from the CLI
Send a POST request to /mcp with a JSON body containing a topic field:
curl -X POST http://localhost:5000/mcp \
-H "Content-Type: application/json" \
-d '{"topic": "Python_(programming_language)"}'
Using the API from Cursor Composer
- Ask a question about a topic on Wikipedia
- Cursor will display a proposed MCP request and ask for your permission to run the tool
- After approving, Cursor will execute the request to the MCP Server
- The prompt result will be based on the selected models analysis of the MCP Server response
!cursor api example
Response Format
Successful response:
{
"status": "success",
"data": {
"title": "Page Title",
"content": "Page Content",
"url": "Wikipedia URL"
}
}
Error response:
{
"status": "error",
"error": "Error message"
}
Testing
Run the test script to verify the server is working:
python src/test_server.py
Quick Start
Clone the repository
git clone https://github.com/danbunnell/mcp-wikipediaInstall dependencies
cd mcp-wikipedia
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.