Skip to main content
MCP server CX Codex

MediaWiki — Claude Code MCP server: features and setup

Connect an AI agent to a MediaWiki site to search, read, check, and edit pages. Handy for working with Wikipedia, Fandom, or a corporate wiki.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add --env MEDIAWIKI_URL=<MEDIAWIKI_URL> --env MEDIAWIKI_USERNAME=<MEDIAWIKI_USERNAME> --env MEDIAWIKI_PASSWORD=<MEDIAWIKI_PASSWORD> --transport stdio mediawiki -- docker run -i --rm -e MEDIAWIKI_URL -e MEDIAWIKI_USERNAME -e MEDIAWIKI_PASSWORD ghcr.io/olgasafonova/mediawiki-mcp-server:1.36.0
Open on GitHub

What MediaWiki does

The server lets an agent find pages, retrieve their contents, compare revisions, spot broken links, and locate stale material. It can also rename pages, replace text, and publish Markdown to a wiki. These actions run through MCP; a separate wiki client supports terminal use.

Reading public wikis works without a login. Private wikis and edits need a bot password, supplied through MEDIAWIKI_USERNAME and MEDIAWIKI_PASSWORD, along with the API address in MEDIAWIKI_URL. PDF text search depends on pdftotext from poppler-utils; searches in TXT and Markdown files work without it. Editing is unavailable until bot credentials are configured.

What it helps with

  • search a wiki for pages on a topic
  • retrieve content from several pages
  • find broken links and stale pages
  • compare recent page revisions
  • publish Markdown to a MediaWiki site

Example prompts for the agent

  • Search the wiki for API setup pages and summarize what they say.
  • Check the Docs page for broken links and find pages with no incoming links.
  • Publish README.md to the wiki as “Getting Started Guide”.

How to install MediaWiki

Platform CLI

claude mcp add --env MEDIAWIKI_URL=<MEDIAWIKI_URL> --env MEDIAWIKI_USERNAME=<MEDIAWIKI_USERNAME> --env MEDIAWIKI_PASSWORD=<MEDIAWIKI_PASSWORD> --transport stdio mediawiki -- docker run -i --rm -e MEDIAWIKI_URL -e MEDIAWIKI_USERNAME -e MEDIAWIKI_PASSWORD ghcr.io/olgasafonova/mediawiki-mcp-server:1.36.0

Replace <…> with your own values

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about MediaWiki

How do I install MediaWiki in Claude Code?

Run `claude mcp add --env MEDIAWIKI_URL=<MEDIAWIKI_URL> --env MEDIAWIKI_USERNAME=<MEDIAWIKI_USERNAME> --env MEDIAWIKI_PASSWORD=<MEDIAWIKI_PASSWORD> --transport stdio mediawiki -- docker run -i --rm -e MEDIAWIKI_URL -e MEDIAWIKI_USERNAME -e MEDIAWIKI_PASSWORD ghcr.io/olgasafonova/mediawiki-mcp-server:1.36.0`. Set the API address and account values in the environment variables.

What does MediaWiki do?

It connects an agent to a MediaWiki site for finding and reading pages, checking wiki content, and making edits. It can also inspect page history and links.

Do I need a password to use MediaWiki?

Public pages are readable without signing in. Private wikis and edits require a bot password, while PDF text search requires pdftotext.

Similar MCP servers

MCP servers catalog →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor