mcpField
W
wikipedia-mcp-server

wikipedia-mcp-server

Local
github.com/hatsu38Search0Updated 73w ago

About wikipedia-mcp-server

wikipedia-mcp-server provides Wikipedia search and article retrieval over MCP for AI agents and clients looking up reference material. It supports multiple languages and can also return random articles.

Key features

  1. 01Search articles by keyword
  2. 02Retrieve article details
  3. 03Optionally include wikitext
  4. 04Fetch random articles
  5. 05Choose the query language

Use cases

  1. 01Find encyclopedia entries on a topic
  2. 02Retrieve article details for further processing
  3. 03Discover random Wikipedia articles

MCP support

The server exposes Wikipedia search, article retrieval, and random article tools to MCP clients.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"wikipedia-mcp-server-hatsu38": {
"command": "npx",
"args": [
"-y",
"wikipedia-mcp-server"
]
}
}
}
Run commandnpx -y wikipedia-mcp-server

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmwikipedia-mcp-server

Tools

3

Saved tool list · updated 3w ago

ParameterTypeRequiredDescription
querystringYesSearch keyword
langstringNoLanguage code (ja, en, etc.)
limitnumberNoNumber of search results

Details

From the project README

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.)

npx
{
  "mcpServers": {
    "wikipedia": {
      "command": "npx",
      "args": [
        "-y",
        "wikipedia-mcp-server"
      ]
    }
  }
}
Docker
{
  "mcpServers": {
    "wikipedia": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "hatsu38/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

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.