wikipedia-mcp-server

0.0.2 • Public • Published

wikipedia-mcp-server

npm version MIT License


Overview

Wikipedia MCP Server is a Model Context Protocol (MCP) compatible server that provides Wikipedia search and article retrieval tools for AI agents and MCP clients. You can search, get details, and fetch random articles from Wikipedia in multiple languages via MCP tools.


How to Use with MCP Clients

Add the following configuration to your MCP client (e.g., Cursor, Claude Desktop) to use this server. (See your client's documentation for details.)

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

Tools

search_wikipedia - Search Wikipedia articles

  • Search Wikipedia articles by keyword.
  • Parameters:
    • query (string): Search keyword
    • lang (string, default: "ja"): Language code (e.g., "ja", "en")
    • limit (number, default: 5): Number of results

get_wikipedia_article - Get article details

  • Get detailed information about a Wikipedia article.
  • Parameters:
    • title (string): Article title
    • lang (string, default: "ja"): Language code
    • include_content (boolean, default: false): Include article content (wikitext)

get_random_wikipedia - Get random articles

  • Get random Wikipedia articles.
  • Parameters:
    • lang (string, default: "ja"): Language code
    • count (number, default: 5): Number of articles

Notes

  • The information obtained via this server is subject to Wikipedia API changes.
  • Please handle the acquired data appropriately, especially when using with AI services.

License

MIT


Author

hatsu38

Readme

Keywords

Package Sidebar

Install

npm i wikipedia-mcp-server

Weekly Downloads

4

Version

0.0.2

License

MIT

Unpacked Size

11 kB

Total Files

3

Last publish

Collaborators

  • hatsu38