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
- 01Search articles by keyword
- 02Retrieve article details
- 03Optionally include wikitext
- 04Fetch random articles
- 05Choose the query language
Use cases
- 01Find encyclopedia entries on a topic
- 02Retrieve article details for further processing
- 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.
Tools
3Saved tool list · updated 3w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | Yes | Search keyword |
| lang | string | No | Language code (ja, en, etc.) |
| limit | number | No | Number of search results |
Details
From the project READMEwikipedia-mcp-server
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 keywordlang(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 titlelang(string, default: "ja"): Language codeinclude_content(boolean, default: false): Include article content (wikitext)
get_random_wikipedia - Get random articles
- Get random Wikipedia articles.
- Parameters:
lang(string, default: "ja"): Language codecount(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
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.