# wikipedia-mcp-server

Connects AI assistants to Wikipedia editions across languages through MCP. It fetches article summaries, targeted sections, citations, and nearby places.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · 6422 installs · ★ 6 repo stars
- Author: cyanheads
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/cyanheads/wikipedia-mcp-server
- Updated: 2026-10-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/wikipedia-mcp-server

## What it does

The server exposes seven tools to query encyclopedia entries without scraping HTML pages. Models can run CirrusSearch queries with filters like `incategory:` or `intitle:`, request short summaries, and look up language editions. It also parses bibliographic references, giving direct access to cited URLs, DOIs, and archive links.

Articles arrive as clean text with intact heading tags. By default, pages larger than `WIKIPEDIA_ARTICLE_OVERFLOW_BYTES` (80,000 bytes) are cut back to an outline, requiring callers to fetch specific parts via `section_index`. The lead section always lives at index 0.

## Requirements
- Remote server: `https://wikipedia-mcp-server--cyanheads.run.tools`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http wikipedia-mcp-server https://wikipedia-mcp-server--cyanheads.run.tools
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add wikipedia-mcp-server --url https://wikipedia-mcp-server--cyanheads.run.tools
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "wikipedia-mcp-server": {
            "url": "https://wikipedia-mcp-server--cyanheads.run.tools"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "wikipedia-mcp-server": {
            "type": "http",
            "url": "https://wikipedia-mcp-server--cyanheads.run.tools"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http wikipedia-mcp-server https://wikipedia-mcp-server--cyanheads.run.tools
```

## When to use it
- search Wikipedia entries with query operators and spelling hints
- read introductory article summaries alongside Wikidata identifiers
- extract specific sections by index to stay within context budgets
- discover geotagged locations within a radius of given coordinates
- retrieve full bibliographic footnotes including DOIs and web links

## Example prompts
- Look up the Wikipedia article on the Treaty of Westphalia and return its lead summary.
- Get the table of contents for quantum computing and fetch section index 3.
- Find geotagged Wikipedia pages within 5 kilometers of latitude 48.8566 and longitude 2.3522.

## Similar
- [Wikipedia](https://affpapa.org/en/nevibecode/mcp/wikipedia.md) — MCP server
- [pp-wikipedia](https://affpapa.org/en/nevibecode/skills/pp-wikipedia.md) — skill · 589 installs
- [Wikipedia Trends API](https://affpapa.org/en/nevibecode/mcp/wikipedia-trends-api.md) — MCP server
- [wikidata-mcp-server](https://affpapa.org/en/nevibecode/mcp/wikidata-mcp-server.md) — MCP server · 399 installs
- [entity-registry](https://affpapa.org/en/nevibecode/skills/entity-registry.md) — skill · 1100 installs
- [Math-MCP](https://affpapa.org/en/nevibecode/mcp/math-mcp.md) — MCP server · 5958 installs
- [authorprofilemcp](https://affpapa.org/en/nevibecode/mcp/authorprofilemcp.md) — MCP server · 5248 installs
- [Clinical Trials Data Server](https://affpapa.org/en/nevibecode/mcp/clinical-trials-data-server.md) — MCP server · 5823 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
