Mediawiki MCP Server

MediaWiki MCP server with multi-wiki support and REST API

Local serverstdioTypeScript

What is the Mediawiki MCP server?

Most monitoring and observability work still happens through a UI a human drives. Mediawiki MCP server moves it into the conversation instead. 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

The tools it exposes

The server publishes 2 tools. What each one is for:

  • Prerequisites — The Prerequisites tool exposed by this server
  • Categories — The Categories tool exposed by this server

Getting it running

The server ships on npm as mediawiki-mcp, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

What it needs from you

Configuration is passed through the environment: MEDIAWIKI_BASE_URL, MEDIAWIKI_MCP_HOST, MEDIAWIKI_MCP_PUBLIC_URL, OAUTH_TENANT_ID, OAUTH_CLIENT_ID, OAUTH_CLIENT_SECRET, REDIS_URL, MEDIAWIKI_MCP_JWT_SECRET. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

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

How it compares

This sits in the monitoring and observability group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Mediawiki's toolset — Prerequisites, Categories — is a fair guide to whether it matches your workflow. It is maintained by GitHub Actions; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
PrerequisitesThe Prerequisites tool exposed by this server.
CategoriesThe Categories tool exposed by this server.

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

It connects Mediawiki to MCP-compatible AI assistants such as Claude and Cursor, exposing 2 tools (Prerequisites, Categories) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Mediawiki directly.