- Wikipedia MCP Server
Wikipedia MCP Server
Content
Wikipedia MCP Server
Server for searching and analyzing Wikipedia articles using AI models.
API Reference
Search Articles
Endpoint: /search
Method: POST
Content-Type: application/json
Request body:
{
"topic": "string",
"limit": 5, // optional, default: 5
"model": "gpt-3.5-turbo" // optional
}
Response is a Server-Sent Events (SSE) stream with the following event types:
- Started event:
{
"status": "started"
}
- Processing event (sent for each article):
{
"status": "processing",
"article": {
"title": "string",
"url": "string",
"snippet": "string",
"relevance_score": float
}
}
- Completion event:
{
"status": "completed"
}
- Error event (if something goes wrong):
{
"status": "error",
"error": "error message"
}
Evaluate Article
Endpoint: /evaluate
Method: POST
Content-Type: application/json
Request body:
{
"article": {
"title": "string",
"snippet": "string",
"url": "string"
},
"model": "gpt-3.5-turbo" // optional
}
Response:
{
"relevance": "string",
"article": {
"title": "string",
"snippet": "string",
"url": "string"
}
}
Analyze Article
Endpoint: /analyze
Method: POST
Content-Type: application/json
Request body:
{
"article": {
"title": "string",
"snippet": "string",
"url": "string"
},
"model": "gpt-3.5-turbo" // optional
}
Response:
{
"analysis": "string",
"article": {
"title": "string",
"snippet": "string",
"url": "string"
}
}
Server Statistics
Endpoint: /stats
Method: GET
Response:
{
"total_requests": int,
"endpoints": {
"search": int,
"evaluate": int,
"analyze": int
},
"models": {
"gpt-3.5-turbo": int,
"gpt-4": int,
"claude-2": int,
"mistral-7b": int
},
"errors": int,
"last_update": timestamp
}
Environment Variables
Required:
OPENROUTER_API_KEY: API key for OpenRouter
Optional:
SERVER_TIMEOUT: Server timeout in seconds (default: 300)KEEPALIVE_TIMEOUT: Keep-alive timeout in seconds (default: 60)MAX_CONNECTIONS: Maximum number of concurrent connections (default: 100)
Running the Server
- Install dependencies:
pip install -r requirements.txt
- Set environment variables:
export OPENROUTER_API_KEY=your_api_key
- Run the server:
python wiki_mcp_server.py
The server will start on http://localhost:8000
Integration Examples
Python with SSE Client
from sseclient import SSEClient
import json
def search_articles(topic, max_results=3):
url = "http://localhost:8000/search"
headers = {
"Content-Type": "application/json",
"Accept": "text/event-stream"
}
payload = {
"topic": topic,
"limit": max_results,
"model": "gpt-3.5-turbo"
}
try:
response = requests.post(url,
json=payload,
headers=headers,
stream=True)
if response.status_code != 200:
print(f"Error: {response.status_code}")
print(response.text)
return
client = SSEClient(response)
for event in client.events():
try:
data = json.loads(event.data)
print(f"Event: {data}")
except json.JSONDecodeError as e:
print(f"Error parsing event data: {e}")
except Exception as e:
print(f"Error: {e}")
# Example usage
search_articles("King penguin", 3)
Curl Example
curl -X POST http://localhost:8000/search \
-H "Content-Type: application/json" \
-H "Accept: text/event-stream" \
-d '{"topic": "King penguin", "limit": 3}'
Available Models
The server supports the following AI models:
- gpt-3.5-turbo (default)
- gpt-4
- claude-2
- mistral-7b
License
MIT License
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
CursorThe AI Code Editor
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Playwright McpPlaywright MCP server
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题;
Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
WindsurfThe new purpose-built IDE to harness magic
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Serper MCP ServerA Serper MCP Server
Amap Maps高德地图官方 MCP Server
ChatWiseThe second fastest AI chatbot™
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Tavily Mcp
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
DeepChatYour AI Partner on Desktop
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。