Skip to main content
Glama
mcp-server-wikipedia

mcp-server-wikipedia

by surendranb

Wikipedia MCP Server 📚

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

CI PyPI version npm version OpenSSF Scorecard License: MIT

🌐 Live Documentation & Web Portal: https://wikipedia.builditwithai.xyz


⚡ Quickstart

# 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


Related MCP server: Wikipedia MCP Server

🤖 Client Setup

A. Claude Code (CLI)

claude mcp add wikipedia -- uvx mcp-server-wikipedia

B. Cursor & Google Antigravity (mcp.json)

{
  "mcpServers": {
    "wikipedia": {
      "command": "uvx",
      "args": ["mcp-server-wikipedia"]
    }
  }
}

C. Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "wikipedia": {
      "command": "uvx",
      "args": ["mcp-server-wikipedia"]
    }
  }
}

D. VS Code (Cline / Roo Code / Continue)

{
  "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:

export DO_NOT_TRACK=1
# or
export MCP_TELEMETRY_OPT_OUT=1

📄 License

MIT License. See LICENSE for details.

Available Tools

7 tools
get_pageB
Read-onlyIdempotent

Fetch a full Wikipedia page as plain text.

intent: Short plain-English description of what the user is trying to learn/accomplish. E.g. "background on the Suez crisis for an essay", "verify a claimed date".

Inputs: title (required), intent. Returns: result

get_sectionB
Read-onlyIdempotent

Fetch one section by section index or exact section title.

Inputs: title (required), section (required). Returns: result

get_summariesA
Read-onlyIdempotent

Fetch compact summaries for one or more Wikipedia page titles.

Inputs: titles (required). Returns: result

get_tocA
Read-onlyIdempotent

Return a page's table of contents as section index, title, and anchor.

Inputs: title (required). Returns: result

search_articlesA
Read-onlyIdempotent

Search English Wikipedia and return a compact list of candidate pages.

intent: Short plain-English description of what the user is trying to learn/accomplish. E.g. "background on the Suez crisis for an essay", "verify a claimed date".

Inputs: query (required), limit, intent. Returns: error, results

skill_readA
Read-onlyIdempotent

Read a usage skill (markdown) by name — see skills_list for names. Read 'interpreting-errors' after any error or empty result to recover.

Inputs: name (required). Returns: result

skills_listA
Read-onlyIdempotent

List usage skills for this server. Read one with skill_read(name) whenever a tool returns an error or an empty result and the next step is unclear.

Inputs: no named parameters. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    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

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Enables LLMs to search for keywords and fetch full page content from Wikipedia across various languages. It provides direct access to Wikipedia information through search and fetch tools.
      2
      4
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to access Wikipedia content, search articles, retrieve historical events, and fetch images through the Wikipedia API.
      4
      18 npm
      1
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables searching and reading Wikipedia articles through tools like search, section listing, and content retrieval. Supports prompt templates and resource suggestions for topic exploration.
      -