Skip to main content
Glama
surendranb

mcp-server-wikipedia

by surendranb
README.md
# Wikipedia MCP Server šŸ“š

> **Surgical, token-efficient Wikipedia knowledge retrieval MCP server for AI agents with deterministic summary, search, and full-article projection.**

[![CI](https://github.com/surendranb/wikipedia-mcp-server/actions/workflows/ci.yml/badge.svg)](https://github.com/surendranb/wikipedia-mcp-server/actions)
[![PyPI version](https://img.shields.io/pypi/v/mcp-server-wikipedia.svg?style=flat-square&color=blue)](https://pypi.org/project/mcp-server-wikipedia/)
[![npm version](https://img.shields.io/npm/v/mcp-server-wikipedia.svg?style=flat-square&color=red)](https://www.npmjs.com/package/mcp-server-wikipedia)
[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/surendranb/wikipedia-mcp-server/badge)](https://scorecard.dev/viewer/?site=github.com/surendranb/wikipedia-mcp-server)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square)](LICENSE)

🌐 **Live Documentation & Web Portal**: [https://wikipedia.builditwithai.xyz](https://wikipedia.builditwithai.xyz)

---

## ⚔ Quickstart

```bash
# 1-Line Universal Installer (Auto-configures Claude Desktop, Cursor, Claude Code, Antigravity, VS Code, Zed, Windsurf)
curl -fsSL "https://wikipedia.builditwithai.xyz/install" | bash

# Or run directly via your preferred runtime:
uvx mcp-server-wikipedia
npx -y mcp-server-wikipedia
```

---

---

## šŸ¤– Client Setup

### A. Claude Code (CLI)
```bash
claude mcp add wikipedia -- uvx mcp-server-wikipedia
```

### B. Cursor & Google Antigravity (`mcp.json`)
```json
{
  "mcpServers": {
    "wikipedia": {
      "command": "uvx",
      "args": ["mcp-server-wikipedia"]
    }
  }
}
```

### C. Claude Desktop (`claude_desktop_config.json`)
```json
{
  "mcpServers": {
    "wikipedia": {
      "command": "uvx",
      "args": ["mcp-server-wikipedia"]
    }
  }
}
```

### D. VS Code (Cline / Roo Code / Continue)
```json
{
  "mcpServers": {
    "wikipedia": {
      "command": "npx",
      "args": ["-y", "mcp-server-wikipedia"]
    }
  }
}
```

---

## šŸ› ļø Tools & Capabilities

| Tool Name | Parameters | Description | Return Type |
|---|---|---|---|
| `get_summary` | `title` (string), `lang` (optional) | Fetches concise, factual lead summary of any Wikipedia page. | `string` |
| `get_article` | `title` (string), `lang` (optional) | Fetches complete article body formatted in clean, structured Markdown. | `string` |
| `search` | `query` (string), `limit` (int), `lang` (optional) | Searches Wikipedia articles with autocomplete and relevance ranking. | `JSON` |
| `get_section` | `title` (string), `section_title` (string), `lang` (optional) | Retrieves a specific section by header name, saving context window space. | `string` |
| `get_links` | `title` (string), `lang` (optional) | Extracts outgoing cross-reference links from an article. | `JSON` |
| `get_categories` | `title` (string), `lang` (optional) | Lists taxonomic categories and classifications for a page. | `JSON` |
| `skill_read` | `skill_name` (string) | Dynamically loads research playbooks from GitHub. | `Markdown` |
| `skills_list` | *(none)* | Lists all available Wikipedia research skills. | `JSON` |

---

## šŸ”’ Telemetry & Privacy

This package collects anonymous, non-PII diagnostic telemetry (command executions, latency, error codes) to improve tool reliability. No article search terms, personal data, source code, or environment variables are ever collected or stored.

You can opt out anytime by setting either of the following environment variables:
```bash
export DO_NOT_TRACK=1
# or
export MCP_TELEMETRY_OPT_OUT=1
```

---

## šŸ“„ License

MIT License. See [LICENSE](LICENSE) for details.

TDQS

A3.9/5.0

Scored across 7 tools

Disambiguation4/5

The tools are mostly distinct: get_page retrieves full text, get_section retrieves a specific section, get_summaries retrieves summaries, get_toc returns the table of contents, and search_articles finds candidates. However, get_page and get_summaries could overlap slightly in use cases (full text vs. summary) and the skills_list/skill_read pair is clearly distinct. Overall, minimal overlap.

Naming Consistency5/5

All tools consistently follow a verb_noun pattern with get_ prefix and lowercase nouns: get_page, get_section, get_summaries, get_toc, search_articles, skills_list, skill_read. The pattern is predictable and consistent.

Tool Count5/5

7 tools is within the ideal 3-15 range. Each tool serves a clear purpose for interacting with Wikipedia: search, read full page, read section, get summary, get TOC, and skill management. No redundant tools.

Completeness4/5

The set covers the core Wikipedia read operations: search, full page, section, summary, TOC. Missing might be a way to get page metadata or links, but for a read-only reference server this is well-covered. No obvious dead ends.

Maintenance

ActivityActive
ResponsivenessResponsive