Wikipedia MCP

by ravishka17

Not rated
GitHub

About

A remote MCP server for Wikipedia.

Details

Author
ravishka17
Categories
Search, Other, Knowledge Base

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

No reviews yet β€” be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.