An MCP server that retrieves and provides Wikipedia content for requested topics, enabling easy access to Wikipedia information directly through the Model Control Protocol.
This is an MCP (Model Control Protocol) server that provides Wikipedia content for the requested topic.
pip install -r requirements.txt
python src/server.py
The server will run on http://localhost:5000
.
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)"}'
Successful response:
{ "status": "success", "data": { "title": "Page Title", "content": "Page Content", "url": "Wikipedia URL" } }
Error response:
{ "status": "error", "error": "Error message" }
Run the test script to verify the server is working:
python src/test_server.py
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!