Provides Wikipedia content on requested topics via Model Context Protocol (MCP), enabling seamless retrieval of article titles, summaries, and URLs through a simple API for integration with AI models and applications.
Unlock the full potential of Wikipedia MCP Server through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.
Free tier available • No credit card required
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)"}'
!cursor api example
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!