MediaWiki-MCP-adapter

MediaWiki-MCP-adapter

3

MediaWikiAdapter is a custom MCP adapter developed by Luca Mauri that enables interaction with MediaWiki and WikiBase APIs for fetching and editing pages. It supports configuration for different API instances and requires Node.js and TypeScript.

MediaWikiAdapter

A custom Model Context Protocol (MCP) adapter for interacting with MediaWiki and WikiBase APIs, allowing programmatic fetching and editing of MediaWiki pages using the MCP framework.

Features

  • Fetch the content of a MediaWiki page.
  • Edit a MediaWiki page with new content and an optional summary.
  • Configurable API base URLs for different MediaWiki and WikiBase instances.

Requirements

  • Node.js (v16 or later)
  • TypeScript (for development)
  • MediaWiki instance with API access enabled

Installation

  1. Clone the repository and navigate into it.
  2. Install dependencies using npm.
  3. Build the project using npm.

Usage

Configure custom MediaWiki and WikiBase API endpoints and start the MCP server to fetch and edit page content.

Development

Run the project in development mode with TypeScript, perform linting, and add tests to the test directory.

Configuration

Default API base URLs can be overridden via configuration.

Contributing

Contributions via fork and pull request are welcome.

License

Licensed under LGPL-3.0-or-later.