MediaWiki

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

Visit MediaWiki

How to install and configure MediaWiki

  1. Clone the repository from https://github.com/entanglr/mediawiki-api-mcp and check out the main branch. 2. Install dependencies using uv by running: 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.

What you can do with MediaWiki

  • Querying and retrieving wikitext or parsed HTML documentation to answer technical questions and extract knowledge base articles directly within AI chat sessions. - Creating and updating wiki documentation pages with new release notes, API references, or procedural guides automatically using bot editing permissions. - Comparing page revisions and displaying structural diffs to review changes, track editorial modifications, or audit documentation history before publishing updates. - Performing administrative maintenance by moving pages with redirects, cleaning up outdated documentation through deletions, or restoring previously removed wiki articles. - Searching internal knowledge bases with keyword queries and OpenSearch autocompletion to surface relevant documentation and identify duplicate wiki content.

Key facts

  • Open Source
  • https://github.com/entanglr/mediawiki-api-mcp
  • CRM, ERP & E-commerce, Notes & Knowledge Management
  • collaboration, content-management, mediawiki, wiki

Part of MCP Servers

Related MCP servers

  • MCP Notes — MCP Notes is an MCP server that provides note-taking and note-management capabilities to AI models using Amazon Web Services DynamoDB…
  • MCP Microsoft Office Bridge — MCP Microsoft Office Bridge is an MCP server that connects AI assistants like Claude to Microsoft 365 services through the…
  • MCP NIF.PT — MCP NIF.PT is an MCP server that connects LLM clients to the Portuguese NIF.PT public API to retrieve and analyze…
  • MCP Memory Server - Python Implementation — MCP Memory Server - Python Implementation is an MCP server that provides persistent knowledge graph storage and retrieval using standard…
  • MCP Open Library — MCP Open Library is an MCP server that connects AI assistants to the Open Library catalogue API to retrieve book,…
  • MCP Personal — MCP Personal is an MCP server collection that provides local productivity tools and system utilities to AI assistants. It connects…

What can MediaWiki do?

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.

How do I install MediaWiki?

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.

Which MCP clients work with MediaWiki?

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.

What permissions are required for the MediaWiki bot?

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.

Is MediaWiki open source?

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.

  • AI Tools
  • Categories
  • Industries
  • CLI Coding Agents
  • MCP Servers
  • MCP Categories