MediaWiki MCP adapter

MediaWiki MCP adapter

A custom Model Context Protocol adapter for MediaWiki and WikiBase APIs

4
Stars
2
Forks
0
Releases

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.

Details

Owner
lucamauri
Language
TypeScript
License
GNU General Public License v3.0
Updated
2025-12-01

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.

Audience

DevelopersIntegrate MediaWiki/WikiBase page fetch and edit workflows in MCP apps.

Tags

MediaWikiWikiBaseMCPAdapterAPIPageContentEditPageWiki API