npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

agentpay-wikipedia-mcp

v1.1.0

Published

Wikipedia MCP Server — Free knowledge access for AI agents with AgentPay Pro upsell

Readme

Wikipedia MCP Server

MCP Server Python License: MIT Free Tier Pro Tier

Free knowledge access for AI agents. Search, read, and explore 6.8M+ Wikipedia articles with zero API keys. Built for agents that need facts, summaries, and discovery.

Agent: "What's the capital of Bhutan?"
  → wiki_get_summary("Thimphu")
  → "Thimphu is the capital and largest city of Bhutan..."

Agent: "What are the categories of 'Quantum computing'?"
  → wiki_get_categories("Quantum computing")
  → ["Quantum information science", "Computational complexity theory", ...]

Architecture

┌──────────────┐     stdio/JSON-RPC      ┌──────────────────┐
│  AI Agent     │ ◄──────────────────────► │  Wikipedia MCP   │
│  (Claude, etc)│                         │  Server (Python)  │
└──────────────┘                         └───────┬────────────┘
                                                  │  HTTPS
                                                  ▼
                                         ┌──────────────────┐
                                         │  Wikipedia REST  │
                                         │  API (Free, No   │
                                         │  Auth Required)   │
                                         └──────────────────┘

Why Wikipedia? 6.8M+ English articles, CC BY-SA 4.0 licensed, comprehensive, constantly updated. No API key, generous rate limits (~200 req/s), and 300+ language editions.


Tools

| # | Tool | Description | Parameters | |---|------|-------------|-----------| | 1 | wiki_search | Search Wikipedia by query | query (required), limit, language, response_format | | 2 | wiki_get_article | Get full article content | title (required), language, max_sections, response_format | | 3 | wiki_get_summary | Get short summary/extract | title (required), sentences, language, response_format | | 4 | wiki_get_categories | Get article categories | title (required), limit, language, response_format | | 5 | wiki_get_languages | Get available translations | title (required), limit, response_format | | 6 | wiki_random | Get a random article | language, response_format | | 7 | wiki_page_info | Get page metadata | title (required), language, response_format |

Tool Details

wiki_search — Find articles

Search by natural language query. Returns titles, snippets (with bold highlights), page IDs, word counts, and direct URLs. Supports 300+ language editions.

// Example: wiki_search("quantum entanglement", limit=5)
{
  "query": "quantum entanglement",
  "total_hits": 1234,
  "results": [
    {
      "title": "Quantum entanglement",
      "pageid": 24934,
      "snippet": "**Quantum entanglement** is a physical phenomenon...",
      "word_count": 15623,
      "url": "https://en.wikipedia.org/wiki/Quantum_entanglement"
    }
  ]
}

wiki_get_article — Read full articles

Returns the complete article text as markdown with section headings. Use max_sections to limit for very large articles (>50KB). All content is CC BY-SA 4.0 licensed.

// Example: wiki_get_article("Python (programming language)", max_sections=3)
{
  "title": "Python (programming language)",
  "length_chars": 42310,
  "extract": "# Python (programming language)\n\n**Python** is a high-level...",
  "categories": ["Programming languages", "Python (programming language)"],
  "url": "https://en.wikipedia.org/wiki/Python_(programming_language)"
}

wiki_get_summary — Quick facts

Returns the introductory extract (2-5 sentences by default) plus key metadata. Perfect for quick fact-checking, trivia, and agent decision-making.

wiki_get_categories — Navigate the knowledge graph

Returns all categories an article belongs to. Filters out Wikipedia infrastructure categories. Useful for topic exploration and building knowledge taxonomies.

wiki_get_languages — Cross-language access

Shows all available language versions of an article with language codes, native names, and full URLs. Supports 300+ languages from Afrikaans to Zulu.

wiki_random — Serendipitous discovery

Returns a random article with summary. Great for icebreakers, exploration, and "did you know?" moments.

wiki_page_info — Metadata at a glance

Returns page size, last modified date, content model, redirect status, and preview text.


Quality Standards

All tools implement Anthropic's MCP quality standards:

| Standard | Implementation | |----------|---------------| | Tool Annotations | All 4 booleans: readOnlyHint, destructiveHint, idempotentHint, openWorldHint | | Service Prefix | wiki_ prefix on all tools to avoid namespace collisions | | Dual Response Format | markdown (human-readable) or json (programmatic) | | Pagination | limit parameter on all list tools | | CHARACTER_LIMIT | 25,000 char limit with automatic truncation + guidance | | Error as Result | Errors returned as JSON with isError: true and next_steps |


Installation

Prerequisites

  • Python 3.10+
  • pip

Setup

git clone https://github.com/Rumblingb/wikipedia-mcp.git
cd wikipedia-mcp
pip install -r requirements.txt

Configure in Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "wikipedia": {
      "command": "python3",
      "args": ["server.py"],
      "cwd": "/path/to/wikipedia-mcp"
    }
  }
}

Configure in VS Code / Cursor

{
  "mcpServers": {
    "wikipedia": {
      "command": "python3",
      "args": ["server.py"],
      "cwd": "/path/to/wikipedia-mcp"
    }
  }
}

Deploy to Smithery

Deploy to Smithery

Visit smithery.ai → Import from GitHub → Select wikipedia-mcp.


Pricing

| Tier | Price | Queries/Month | Support | |------|-------|---------------|---------| | Free | $0 | 50 | Community | | Pro | $19/mo | Unlimited | Priority Email | | Enterprise | $99/mo | Unlimited + SLA | Dedicated |

👉 Subscribe to Pro →


FAQ

Q: Is this really free? No API key? Yes. Wikipedia's API is public and requires no authentication. The free tier gives you 50 queries/month through this server.

Q: What about content licensing? All Wikipedia content is licensed under CC BY-SA 4.0. Attribution is included in article responses.

Q: Which languages are supported? 300+ language editions. Use the language parameter on any tool (e.g., language="es" for Spanish).

Q: How is this different from just hitting the Wikipedia API directly? This server adds: agent-friendly response formats (markdown + JSON), automatic truncation, category filtering, error recovery with actionable next steps, and MCP protocol compliance for direct agent integration.

Q: Can I contribute? Yes! PRs welcome. See CONTRIBUTING.md.


Developer Notes

  • Rate Limiting: Wikipedia allows ~200 requests/second. Be respectful — add delays between requests if making many calls.
  • Attribution: Always attribute Wikipedia content per CC BY-SA 4.0.
  • Caching: Consider caching results for repeated queries — Wikipedia content rarely changes.

Built by AgentPay Labs — Governed payment middleware for AI agents.