wiki_page_editLABSCO SUMMARY
Undelete is in the box, which tells you how far the write surface goes.
This is a full editing bot, not a reader with an edit button — delete and undelete both exist, with watchlist and logging handled properly. That makes the bot password's permission set the real control: the documentation recommends least privilege, IP restrictions, and monitoring the wiki's own logs. The comparison tool is the quiet favourite, since diffing revisions before writing is how an automated edit stops being a gamble.
What it is
An MCP server that talks to a MediaWiki installation through its API as a bot user. Every tool carries a wiki_ prefix, CSRF tokens are managed automatically, and each tool has its own reference page in the repository.
What you get
- Page reading and editing with the full set of MediaWiki editing options —
wiki_page_get,wiki_page_edit - Page lifecycle operations: move with talk pages, subpages and redirects; delete with watchlist and logging control; and undelete with restoration options —
wiki_page_move,wiki_page_delete,wiki_page_undelete - Content processing: parse wikitext into HTML with metadata extraction, and compare two pages, revisions or text blocks to see the differences —
wiki_page_parse,wiki_page_compare - Search two ways: the search API with advanced filtering, and OpenSearch for quick suggestions and autocomplete —
wiki_search,wiki_opensearch - Site information covering general settings, namespaces, statistics and installed extensions —
wiki_meta_siteinfo
Requirements
Bot credentials from your wiki's Special:BotPasswords page, with read plus high-volume editing rights, supplied as MEDIAWIKI_API_BOT_USERNAME (in the YourUserName@YourBotName form) and MEDIAWIKI_API_BOT_PASSWORD, alongside MEDIAWIKI_API_URL pointing at your api.php. MEDIAWIKI_API_BOT_USER_AGENT is optional but expected practice — put contact information in it. Python with uv: install dependencies, then run uv run mediawiki-api-mcp. The package is mediawiki-api-mcp (version 0.3.0).
Setup effort
Build from source — get the source, then follow the project's own run instructions
USE CASES
Making a batch of edits without hand-editing each page
Fetch the page, edit it through the API with proper edit options, and let CSRF handling take care of itself.
Reviewing a change before committing to it
Compare two revisions or compare your proposed text against the current page, then edit.
Reorganising pages
Move a page along with its talk page and subpages, leaving redirects where they are wanted.
Undoing a deletion
Restore a deleted page with its history rather than recreating it from scratch.
Finding the right page to work on
Use filtered search when you know what you want, and OpenSearch for quick title suggestions.
10 tools
Listed in project docs. Your client may show a different list.
wiki_page_getwiki_page_parsewiki_page_comparewiki_page_movewiki_page_deletewiki_page_undeletewiki_searchwiki_opensearchwiki_meta_siteinfoBEFORE YOU INSTALL
What to know first
Tools you get
10 tools named in the project's documentation.
Requires
- MEDIAWIKI_API_BOT_PASSWORD in your environment
- MEDIAWIKI_API_URL in your environment
- MEDIAWIKI_API_BOT_USERNAME in your environment
Where it runs
The documented client runs the server on your machine.
INSTALLATION
Connect your client
Server setup
uv run mediawiki-api-mcpMCP Clients
Claude Desktop
{
"mcpServers": {
"mediawiki-api": {
"command": "uv",
"args": [
"--directory",
"<YOUR_PATH_TO_MEDIAWIKI_API_MCP>",
"run",
"mediawiki-api-mcp"
],
"env": {
"MEDIAWIKI_API_URL": "http://mediawiki.test/api.php",
"MEDIAWIKI_API_BOT_USERNAME": "<YOUR_USER_NAME>@<YOUR_BOT_NAME>",
"MEDIAWIKI_API_BOT_PASSWORD": "<YOUR_MEDIAWIKI_API_BOT_PASSWORD>",
"MEDIAWIKI_API_BOT_USER_AGENT": "MediaWiki-MCP-Bot/1.0 (<YOUR_EMAIL>)"
}
}
}
}