Mediawiki MCP Server

MediaWiki MCP server with multi-wiki support and REST API

Local serverstdioTypeScript

What is the Mediawiki MCP Server?

MediaWiki MCP server with multi-wiki support and REST API

The short version

A Model Context Protocol (MCP) server for MediaWiki instances with multi-wiki support. Uses the modern REST API (MediaWiki 1.42+) and Action API for full read/write access across multiple named wikis.

  • Multi-Wiki Support — Register named wikis, fan-out searches across all of them
  • REST API — Uses the modern /rest.php/v1/ endpoints for page CRUD, search, and revisions
  • Bot Password Auth — Logs in via Special:BotPasswords with per-wiki credentials
  • Page Operations — Read, create, update, delete, and undelete pages
  • Search — Full-text and prefix search across all registered wikis
  • File Operations — Get file metadata, upload files from data or URL

What it needs from you

  • Node.js 18 or higher - MediaWiki 1.42 or higher

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Mediawiki MCP Server

{
  "mcpServers": {
    "mediawiki-1": {
      "command": "npx",
      "args": ["-y", "mediawiki-mcp"],
      "env": {
        "MEDIAWIKI_BASE_URL": "your-value",
        "MEDIAWIKI_MCP_HOST": "your-value",
        "MEDIAWIKI_MCP_PUBLIC_URL": "your-value",
        "OAUTH_TENANT_ID": "your-value",
        "OAUTH_CLIENT_ID": "your-value",
        "OAUTH_CLIENT_SECRET": "your-value",
        "REDIS_URL": "your-value",
        "MEDIAWIKI_MCP_JWT_SECRET": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Node.js 18 or higher - MediaWiki 1.42 or higher
VariableDescriptionRequired
MEDIAWIKI_BASE_URLEndpoint or connection string the server talks to.Yes
MEDIAWIKI_MCP_HOSTEndpoint or connection string the server talks to.Optional
MEDIAWIKI_MCP_PUBLIC_URLEndpoint or connection string the server talks to.Yes
OAUTH_TENANT_IDConfiguration value read at startup.Optional
OAUTH_CLIENT_IDConfiguration value read at startup.Optional
OAUTH_CLIENT_SECRETCredential the server authenticates with.Yes
REDIS_URLEndpoint or connection string the server talks to.Yes
MEDIAWIKI_MCP_JWT_SECRETCredential the server authenticates with.Yes

Example prompts to try

  • “Use Mediawiki to Prerequisites.”
  • “Use Mediawiki to Categories.”

Frequently asked questions

MediaWiki MCP server with multi-wiki support and REST API Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.