home / mcp / wikipedia mcp server

Wikipedia MCP Server

Provides search and retrieval of Wikipedia articles with Markdown-formatted output via MCP.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "timjuenemann-wikipedia-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "wikipedia-mcp"
      ]
    }
  }
}

You can run a Wikipedia knowledge MCP server that lets language models search Wikipedia and fetch article content, with automatic HTML-to-Markdown conversion for easy reading. This server is useful when you want concise article summaries, full article retrieval by title or page ID, and seamless integration into MCP clients for conversational AI workflows.

How to use

Start the Wikipedia MCP Server from your command line, then connect your MCP client to it to perform searches and retrieve articles. You can search for topics, retrieve full articles by title or page ID, and receive content converted to Markdown for easy display in chats or assistants.

How to install

Prerequisites: Node.js (version 14 or newer) and npm installed on your machine.

Run the MCP server directly without a separate install step by using npx.

Start the server with the following command:

npx wikipedia-mcp

Configuration and usage notes

Configure your MCP client to connect to the server. The following JSON snippet shows a typical MCP configuration entry for the Wikipedia MCP Server.

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

Notes on tools and capabilities

This server supports several practical capabilities for your AI workflows, including search for Wikipedia articles, reading complete articles by title or page ID, and automatic Markdown conversion of article content.

Troubleshooting

If the server fails to start, ensure Node.js and npm are installed and that you have network access to fetch the MCP package. If your MCP client reports connection issues, verify you are using the correct command and arguments as shown in the configuration snippet.

Available tools

search

Find Wikipedia articles matching specific search terms to obtain article titles or IDs for retrieval.

read_article

Retrieve full Wikipedia articles by title or page ID, with content converted to Markdown.

markdown_conversion

Automatically convert article HTML content to Markdown for readable presentation.