Labsco
MCP SERVER

MediaWiki MCP Server

by olgasafonova

Search, read and edit any MediaWiki wiki — from a prompt or from the shell.

Team Wikis & Documentation Platforms
Summary
Reading is open; writing is what needs a bot password.

Public wikis answer without any login, so pointing it at Wikipedia takes only the API URL. The full reference covers 43 tools by category, and every operation is also a `wiki` command with typed exit codes — useful when you'd rather put a broken-link check in CI than ask for it in a chat.

What it is

A Go binary that talks to any MediaWiki installation's api.php. The same API client backs three surfaces: an MCP server, a `wiki` command-line tool, and a Claude Code plugin.

What you get
  • Search and read pages, including pulling several pages' content in one request
  • Quality checks a wiki doesn't give you: broken links on a page, orphaned pages nothing links to, pages not updated in the last N days, and pages similar to a given one
  • A whole-wiki health audit, returned as JSON when you want to act on the result
  • Editing once you authenticate — rename a page, find-and-replace inside one, publish a Markdown file as a wiki page
  • File uploads from a URL or from local bytes the agent base64-encodes, plus text search inside uploaded files
  • Markdown converted to wiki format, optionally with a theme and CSS
  • Change tracking — what was updated this week, diffs between versions, who has been editing most
Requirements

Your wiki's API endpoint in `MEDIAWIKI_URL` — usually `https://your-wiki.com/api.php`; Wikipedia is `https://en.wikipedia.org/w/api.php`. Reading a public wiki needs nothing else; private wikis and any editing need a bot password in `MEDIAWIKI_USERNAME` and `MEDIAWIKI_PASSWORD`. Take a binary from Releases, run the `ghcr.io/olgasafonova/mediawiki-mcp-server:1.28.0` image, or build with Go 1.24+. PDF search additionally needs `pdftotext` from poppler-utils.

Setup effort

Build from source — clone the repository and build it, then point your client at the binary