Wikipedia MCP Server
by danbunnell
This is an MCP server that provides Wikipedia content for a requested topic. It allows users to retrieve information from Wikipedia using the Model Control Protocol.
Last updated: N/A
What is Wikipedia MCP Server?
The Wikipedia MCP Server is a service that allows users to access and retrieve content from Wikipedia programmatically using the Model Control Protocol (MCP). It acts as an intermediary, fetching Wikipedia articles based on a specified topic and returning the content in a structured JSON format.
How to use Wikipedia MCP Server?
- Install the required dependencies using
pip install -r requirements.txt
. 2. Start the server usingpython src/server.py
. 3. Send a POST request to/mcp
with a JSON body containing atopic
field (e.g.,{"topic": "Python_(programming_language)"}
). The server will return a JSON response containing the title, content, and URL of the Wikipedia page.
Key features of Wikipedia MCP Server
Retrieves Wikipedia content
Uses the Model Control Protocol (MCP)
Provides structured JSON response
Easy to set up and use
Use cases of Wikipedia MCP Server
Integrating Wikipedia content into applications
Building AI models that require factual information
Creating chatbots that can answer questions using Wikipedia
Automated research and information gathering
FAQ from Wikipedia MCP Server
What is MCP?
What is MCP?
MCP stands for Model Control Protocol. It is a protocol used to control and interact with models.
What kind of data does the server return?
What kind of data does the server return?
The server returns a JSON response containing the title, content, and URL of the Wikipedia page for the requested topic.
How do I specify the Wikipedia topic?
How do I specify the Wikipedia topic?
You specify the topic in the JSON body of the POST request to the /mcp
endpoint. The topic should be the Wikipedia page title (e.g., Python_(programming_language)
).
What happens if the topic is not found?
What happens if the topic is not found?
The server will return an error response with an appropriate error message.
Can I use this server with Cursor Composer?
Can I use this server with Cursor Composer?
Yes, the server is designed to be used with Cursor Composer. You can ask a question about a topic on Wikipedia, and Cursor will use this server to retrieve the relevant information.