Wikipedia MCP
About
A remote MCP server for Wikipedia.
Details
- Author
- ravishka17
- Categories
- Search, Other, Knowledge Base
Jump to
Setup
Install Wikipedia MCP in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/ravishka17/Wikipedia-MCP
Follow the installation instructions in the repository README, then restart your MCP client.
- πAdvanced Searchβ find articles with relevance ranking
- πFull Article Accessβ plain text extracts or complete wikitext
- πSmart Summariesβ concise summaries tailored to a specific query
- ποΈSection Analysisβ extract and summarize individual sections
- πLink Discoveryβ internal links and related articles
- πMulti-languageβ 50+ language codes, 140+ country codes, resolved automatically
- πParallel Searchβmulti_search_wikipediaruns multiple queries simultaneously
- π―Fact Extractionβ structured key-fact lists from any article
- πCoordinatesβ lat/lon for geographic articles
- β‘Streamable HTTPβ full MCP transport support (POST + GET SSE + DELETE)
- πSecurity hardenedβ input sanitization, tiered rate limiting, noServerheader
- πVercel readyβ stateless serverless deployment, zero cold-start friction
git clone https://github.com/YOUR_USERNAME/wikipedia-mcp-vercel.git cd wikipedia-mcp-vercel vercel
Or use theDeploy with Vercelbutton above.
The server implementsMCP Streamable HTTP transport(2025-03-26).
Both the POST channel (client β server) and the GET SSE channel (server β client) are supported.
MCP endpoint:https://your-app.vercel.app/mcp
{ "mcpServers": { "wikipedia": { "type": "http", "url": "https://your-app.vercel.app/mcp" } } }
claude mcp add wikipedia --transport http https://your-app.vercel.app/mcp
Configure the client with transport typestreamable-httpand the endpoint URL above.
The server usesstateless mode(noMcp-Session-Idheader), which is correct and expected for serverless deployments.
Copy.env.exampleβ.envfor local development.
# Health check curl https://your-app.vercel.app/health # Test MCP initialize curl -X POST https://your-app.vercel.app/mcp \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}'
All 13 tools accept optionallanguage(e.g."ja") andcountry(e.g."JP") parameters. When set, the query is sent as-is to that language's Wikipedia endpoint (e.g.ja.wikipedia.org). Wikipedia's own search can often match a short English title phrase to the correct local article, but there is no translation layer in this server.
Three prompt templates are registered and available viaprompts/list/prompts/get:
Standard HTTP endpoints for non-MCP usage:
GET /health GET /search/:query?limit=10 GET /article/:title GET /summary/:title GET /sections/:title GET /links/:title GET /coordinates/:title GET /related/:title?limit=10 GET /summary/:title/query/:query/length/:maxLength GET /summary/:title/section/:section/length/:maxLength GET /facts/:title?topic=...&count=5 GET /test-connectivity GET /supported-countries POST /tools/:toolName
src/ βββ server.ts # Express app wiring βββ routes/ β βββ mcp.ts # Streamable HTTP transport (POST + GET SSE + DELETE) β βββ rest.ts # REST endpoints βββ mcp-server.ts # MCPServer helper β tool dispatch, language routing βββ handlers.ts # Tool handler functions βββ toolRegistrations.ts # SDK tool + prompt registration βββ toolDefinitions.ts # JSON Schema definitions (for REST /mcp info) βββ prompts.ts # Prompt template logic βββ wikipedia-client.ts # Wikipedia Action API client βββ sanitize.ts # Input sanitization βββ middleware.ts # Rate limiting, Server header removal βββ utils.ts # Shared helpers βββ types.ts # TypeScript interfaces
The server usesstateless Streamable HTTPβ the correct mode for serverless platforms:
- POST /mcpβ receives JSON-RPC messages, returns JSON or SSE stream
- GET /mcpβ opens an SSE channel for server-initiated messages (clients reconnect on timeout)
- DELETE /mcpβ session termination (acknowledged; no server-side sessions to clean up)
A freshMcpServer+StreamableHTTPServerTransportinstance is created for each request. All Wikipedia logic is handled by the shared, statelessMCPServerhelper.
npm install npm run dev # tsx watch mode on port 8000 npm run build # tsc β dist/ npm start # node dist/server.js vercel dev # local Vercel simulation
For higher Wikipedia API rate limits, create a bot password:
- Log in to your Wikipedia account
- Go toSpecial:BotPasswords
- Create a new bot password
- SetWIKIPEDIA_BOT_USERNAME=YourAccount@BotNameandWIKIPEDIA_BOT_PASSWORD=...
Search global news using natural language. Webz.io News Search API returns the most relevant articles and content, with filters for source, country, language, date, sentiment, and category.
Fetch, convert, and search AWS documentation pages, with recommendations for related content.
Search campgrounds around the world on campertunity, check availability, and provide booking links.
The Ferryhopper MCP Server exposes ferry routes, schedules and booking redirects so an AI assistant can discover connections across Europe and the Mediterranean and send users to Ferryhopper to complete bookings.
All-in-One SEO & Web Intelligence Toolkit API from FetchSERP.
MCP server that provides read-only access to HyperKitty, the web-based email archive component of Mailman 3.
At Sunrise Apps, we believe AI agents should be limitless, especially when it comes to visual data. We created ImageSorcery to bridge the critical gap in AI's ability to interact with and manipulate images directly, all while upholding the highest standards of privacy and security.
Just Domain is the domain registrar for businesses built with AI. Its remote MCP server checks availability and returns first-year and renewal pricing, plus a link to register on justdomain.ai, with DNS and WHOIS privacy in the same place. No account, no API key, read only. Endpoint: https://mcp.justdomain.ai/
Research tools, including a Sqlite-backed document stash
Semantic search over 9 free-license stock photo sources. Hosted remote server with OAuth β no API key to paste.
SerpApi MCP Server for Google and other search engine results
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.




