MediaWiki MCP Server is an MCP server that enables LLM clients to interact with any MediaWiki installation using the Model Context Protocol. Built for researchers, wiki administrators, and developers, it bridges AI assistants with public platforms like Wikipedia or private internal MediaWiki sites. The server exposes an extensive toolset for reading and writing content, managing wiki resources, and inspecting site metadata. Users can fetch page contents, inspect revisions, search namespaces, review diffs, and retrieve base64 image data directly within the chat interface. For authenticated setups, it supports operations such as creating, updating, moving, or deleting pages, as well as uploading files. It also features native integrations for popular MediaWiki extension packs, including Semantic MediaWiki, Wikibase, Cargo, Bucket, and NeoWiki, which unlock structured knowledge graphs, Cypher queries, SPARQL queries, and database tables. By supporting multiple configured wikis simultaneously via standard stdio or HTTP transports, the server provides a comprehensive interface for programmatic knowledge base interaction.
Category: Notes & Knowledge Management
Tags: content-management, mediawiki, wiki, wikipedia
@professional-wiki/mediawiki-mcp-server. 2. Create a config.json file configuring your MediaWiki connections, defining your defaultWiki and mapping specific wiki host configurations such as server, articlepath, and scriptpath. 3. Add the server entry into your MCP client configuration file (such as Claude Desktop's claude_desktop_config.json). Configure the server command to execute the package, setting the CONFIG environment variable to point to your config.json path. 4. Optionally specify environment variables such as MCP_TRANSPORT (e.g., stdio), MCP_CONTENT_MAX_BYTES, or OAuth settings if your wiki requires authentication. 5. Save the configuration and restart your MCP client to load the tools and wiki resources.Part of MCP Servers
It enables LLM clients to read and write content across any MediaWiki installation. The server provides tools for fetching pages, inspecting revision histories, viewing diffs, searching content, and handling file uploads. When integrated with extensions like Semantic MediaWiki, Cargo, or Wikibase, it can also execute structured queries.
You can use the published package @professional-wiki/mediawiki-mcp-server or build from source. Set up a config.json specifying your default wiki and paths, then register the server under the mcpServers configuration block in your MCP client, pointing the CONFIG environment variable to your configuration file.
Yes, MediaWiki MCP Server is open source software released under the MIT license. The source code and licensing details are maintained in its repository by ProfessionalWiki.
Yes, it supports private wikis and authenticated editing. You can configure authentication details in your configuration file or use standard MediaWiki OAuth workflows to grant the LLM access to private pages and restricted write operations.
Yes, you can register multiple wikis in your config.json file. Every tool that acts on a wiki accepts an optional wiki argument specifying the target wiki key, falling back to your configured default wiki when omitted.