Overview
MediaWikiAdapter is a custom MCP (Model Context Protocol) adapter designed to interact with MediaWiki and WikiBase APIs. It enables programmatic fetching and editing of MediaWiki pages within the MCP framework, and supports configuring separate API endpoints for different MediaWiki and WikiBase instances. Built to run on Node.js (v16+) with TypeScript support for development, it requires a MediaWiki API-enabled instance. After installation, configure the adapter via server.configure() with mediaWikiAPIBase and wikiBaseAPIBase, then start the MCP server with node build/index.js. The MCP-facing resources include getPageContent, which fetches the content of a MediaWiki page given a title, and editPage, a tool that updates a page’s content with an optional summary. Default API bases point to public Wikimedia endpoints but can be overridden. Development tooling includes npm run dev and npm run lint, with tests currently not implemented. The project is licensed under LGPL-3.0-or-later and authored by Luca Mauri.
Features
Fetch Page Content
Fetches the content of a MediaWiki page.
Edit Page
Edits a MediaWiki page with new content and an optional summary.
Configurable API Endpoints
Configurable API base URLs for different MediaWiki and WikiBase instances.
Who Is This For?
- Developers:Integrate MediaWiki/WikiBase page fetch and edit workflows in MCP apps.




