MediaWiki is an MCP server that enables large language models to interact directly with MediaWiki installations through the MediaWiki API using a designated bot user. Knowledge base administrators, technical writers, and software engineering teams use this server to automate wiki management tasks and query internal documentation directly from AI interfaces. The server provides dedicated tools for retrieving page content, parsing wikitext into HTML, comparing revisions or text differences, creating and editing pages, and handling administrative tasks such as page moves, deletions, and restorations. It also supports discovery operations through full-text search, OpenSearch autocompletion, and site metadata queries that inspect namespaces, statistics, and installed extensions. By acting through authenticated bot credentials generated via Special:BotPasswords, the server maintains access controls and tracks edits under a discrete bot account. It automates CSRF token management and enforces proper user-agent headers on all outgoing HTTP calls, allowing assistants to safely inspect and update organizational wikis, technical knowledge bases, and encyclopedic archives without requiring manual browser interaction or ad-hoc scripting.
Category: CRM, ERP & E-commerce
Tags: collaboration, content-management, mediawiki, wiki
uv install 3. Generate bot credentials with read and write permissions at your wiki's Special:BotPasswords page. 4. Add the server to your Claude Desktop configuration file: json { "mcpServers": { "mediawiki-api": { "command": "uv", "args": [ "--directory", "/absolute/path/to/mediawiki-api-mcp", "run", "mediawiki-api-mcp" ], "env": { "MEDIAWIKI_API_URL": "http://mediawiki.test/api.php", "MEDIAWIKI_API_BOT_USERNAME": "YourUserName@YourBotName", "MEDIAWIKI_API_BOT_PASSWORD": "YourBotPassword", "MEDIAWIKI_API_BOT_USER_AGENT": "MediaWiki-MCP-Bot/1.0 (your.email@mediawiki.test)" } } } } 5. Replace the directory path, API URL, and bot credentials with your specific environment details, then launch Claude Desktop.Part of MCP Servers
It connects AI assistants to MediaWiki instances via the MediaWiki API. The server allows models to fetch page content, parse wikitext to HTML, edit or create articles, compare page revisions, move pages, delete or undelete content, search articles, and retrieve wiki site information and extension lists.
To install it, clone the repository from GitHub and install its dependencies using the uv package manager. You then add the server to your Claude Desktop configuration JSON file, providing your MediaWiki API URL, bot username, and bot password generated from Special:BotPasswords.
MediaWiki works with Claude Desktop and any Model Context Protocol client capable of spawning local process servers via stdio. You can configure it by launching uv run mediawiki-api-mcp or executing the module directly with Python while passing the required bot environment variables.
The bot user requires basic rights to read pages at a minimum. To allow the model to create, modify, move, or delete pages, you must grant high-volume editing permissions and specific management privileges when generating the bot password in your wiki settings under Special:BotPasswords.
Yes, MediaWiki MCP Server is open source software released under the MIT License. The complete source code, test suites, and documentation are publicly available on GitHub, allowing developers to inspect the implementation, contribute bug fixes, and customize the tool integration for their self-hosted or cloud MediaWiki environments.