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

wiki-mcp

v1.1.0

Published

MCP server for Wikipedia - search articles, get content, summaries, categories, links, images, and more

Downloads

44

Readme

wiki-mcp

npm version Smithery License: MIT

MCP (Model Context Protocol) server for Wikipedia. Provides tools to search articles, retrieve content, summaries, categories, links, images, language versions, and external references.

Features

  • 9 Wikipedia tools for comprehensive article access
  • Proper TypeScript types for all API responses
  • Request timeout handling
  • Error handling with informative messages
  • Modular architecture

Tools

| Tool | Description | |------|-------------| | wiki_search | Search Wikipedia for articles matching a query | | wiki_get_article | Get the full text content of an article | | wiki_get_summary | Get a short summary of an article | | wiki_random | Get random Wikipedia articles | | wiki_get_categories | Get categories an article belongs to | | wiki_get_links | Get internal Wikipedia links from an article | | wiki_get_images | Get images used in an article | | wiki_get_languages | Get available language versions of an article | | wiki_get_references | Get external references/links from an article |

Installation

Quick install (recommended)

bunx wiki-mcp install

This automatically adds wiki-mcp to Claude Desktop and Claude Code.

Manual install

# Or install globally
bun add -g wiki-mcp
npm install -g wiki-mcp

Via Smithery

npx @smithery/cli install wiki-mcp

From source

git clone https://github.com/msilverblatt/wiki-mcp.git
cd wiki-mcp
bun install

Usage

With Claude Desktop

Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "wikipedia": {
      "command": "bunx",
      "args": ["wiki-mcp"]
    }
  }
}

With Claude Code

Add to your Claude Code MCP settings (~/.claude/settings.json):

{
  "mcpServers": {
    "wikipedia": {
      "command": "bunx",
      "args": ["wiki-mcp"]
    }
  }
}

Standalone

bun run index.ts

The server communicates via stdio using the MCP protocol.

Tool Examples

wiki_search

Search for articles:

{
  "query": "artificial intelligence",
  "limit": 5
}

Returns:

[
  {
    "title": "Artificial intelligence",
    "snippet": "Artificial intelligence (AI) is the intelligence of machines...",
    "pageid": 1234
  }
]

wiki_get_article

Get full article content:

{
  "title": "JavaScript"
}

Returns plain text article content.

wiki_get_summary

Get article summary:

{
  "title": "TypeScript"
}

Returns:

{
  "title": "TypeScript",
  "description": "Programming language",
  "extract": "TypeScript is a strongly typed programming language...",
  "url": "https://en.wikipedia.org/wiki/TypeScript"
}

wiki_get_categories

Get article categories:

{
  "title": "Python (programming language)",
  "limit": 10
}

Returns:

{
  "title": "Python (programming language)",
  "categories": ["Programming languages", "Scripting languages", "..."]
}

wiki_get_links

Get internal links:

{
  "title": "Machine learning",
  "limit": 50
}

Returns:

{
  "title": "Machine learning",
  "links": ["Artificial intelligence", "Data science", "..."]
}

wiki_get_images

Get article images:

{
  "title": "Solar System",
  "limit": 20
}

Returns:

{
  "title": "Solar System",
  "images": [
    {
      "title": "Solar System.jpg",
      "url": "https://en.wikipedia.org/wiki/File:Solar_System.jpg"
    }
  ]
}

wiki_get_languages

Get available translations:

{
  "title": "Albert Einstein"
}

Returns:

{
  "title": "Albert Einstein",
  "languageCount": 200,
  "languages": [
    {
      "language": "Deutsch",
      "code": "de",
      "title": "Albert Einstein",
      "url": "https://de.wikipedia.org/wiki/Albert_Einstein"
    }
  ]
}

wiki_get_references

Get external references:

{
  "title": "Climate change",
  "limit": 30
}

Returns:

{
  "title": "Climate change",
  "references": ["https://www.ipcc.ch/", "..."]
}

wiki_random

Get random articles:

{
  "count": 3
}

Returns:

[
  { "title": "Random Article 1", "id": 12345 },
  { "title": "Random Article 2", "id": 67890 }
]

Development

# Run tests
bun test

# Type check
bun run typecheck

# Start server
bun run start

Project Structure

wiki-mcp/
├── index.ts              # Entry point
├── src/
│   ├── api.ts            # Wikipedia API client
│   ├── server.ts         # MCP server setup
│   ├── types.ts          # TypeScript interfaces
│   └── tools/
│       ├── index.ts      # Tool registration
│       ├── search.ts     # wiki_search
│       ├── article.ts    # wiki_get_article
│       ├── summary.ts    # wiki_get_summary
│       ├── random.ts     # wiki_random
│       ├── categories.ts # wiki_get_categories
│       ├── links.ts      # wiki_get_links
│       ├── images.ts     # wiki_get_images
│       ├── languages.ts  # wiki_get_languages
│       └── references.ts # wiki_get_references
└── tests/
    ├── api.test.ts       # API helper tests
    └── tools.test.ts     # Tool integration tests

License

MIT