MediaWiki-MCP-adapter MCP Server

Connect your FlowHunt flows to MediaWiki with the MediaWiki-MCP-adapter. Fetch, edit, and automate wiki pages programmatically for smarter, more efficient knowledge base management.

MediaWiki-MCP-adapter MCP Server

What does “MediaWiki-MCP-adapter” MCP Server do?

The MediaWiki-MCP-adapter is a custom Model Context Protocol (MCP) server designed to interface with MediaWiki and WikiBase APIs. Its primary purpose is to enable AI assistants and development tools to programmatically interact with MediaWiki instances, supporting both fetching and editing of wiki pages. By exposing these capabilities through the MCP framework, it facilitates seamless integration with workflows that require contextual information retrieval or automated page edits. This adapter is particularly useful for automating knowledge base management, creating intelligent bots, or enhancing developer productivity by bridging AI systems with collaborative documentation platforms like MediaWiki.

List of Prompts

No explicit prompt templates are documented in the repository.

List of Resources

  • getPageContent
    Fetches the content of a specified MediaWiki page.
    • Input: { "title": "string" }
    • Output: { "content": "string" }

List of Tools

  • editPage
    Allows editing a given MediaWiki page with new content and an optional edit summary.
    • Input: { "title": "string", "content": "string", "summary": "string (optional)" }
    • Output: { "success": "boolean" }

Use Cases of this MCP Server

  • Automated Wiki Content Updates
    AI agents or scripts can programmatically update documentation, ensuring that wikis remain current with minimal manual intervention.
  • Bulk Page Editing and Migration
    Developers can automate large-scale content migration or batch edits across multiple pages, increasing efficiency and consistency.
  • Content Retrieval for LLM Context
    Fetch wiki page content to provide LLMs with up-to-date background information for answering questions or generating documentation.
  • Wiki-Based Knowledge Base Management
    Easily build bots or agents that manage and curate knowledge bases, leveraging read/write access to MediaWiki via the MCP.
  • Integration with Dev Workflows
    Integrate with CI/CD pipelines or other developer tools to automatically document code changes or project updates in a MediaWiki instance.

How to set it up

Windsurf

  1. Ensure Node.js (v16+) is installed.
  2. Add the MediaWiki-MCP-adapter as a dependency:
    npm install @lucamauri/mediawiki-mcp-adapter@latest
  3. Locate your Windsurf configuration file.
  4. Add the MCP server entry:
    {
      "mcpServers": {
        "mediawiki-mcp": {
          "command": "node",
          "args": ["build/index.js"]
        }
      }
    }
    
  5. Save your config and restart Windsurf to activate the server.

Securing API Keys:
Use environment variables for sensitive information.
Example:

{
  "env": {
    "MEDIAWIKI_API_KEY": "${MEDIAWIKI_API_KEY}"
  },
  "inputs": {
    "mediaWikiAPIBase": "https://your.mediawiki/api.php"
  }
}

Claude

  1. Prerequisite: Node.js (v16+).
  2. Install the package:
    npm install @lucamauri/mediawiki-mcp-adapter@latest
  3. Edit your Claude MCP configuration.
  4. Add:
    {
      "mcpServers": {
        "mediawiki-mcp": {
          "command": "node",
          "args": ["build/index.js"]
        }
      }
    }
    
  5. Restart Claude and verify the server is available.

Cursor

  1. Install Node.js (v16+).
  2. Add the MCP server package:
    npm install @lucamauri/mediawiki-mcp-adapter@latest
  3. Open Cursor settings and edit the MCP section.
  4. Insert:
    {
      "mcpServers": {
        "mediawiki-mcp": {
          "command": "node",
          "args": ["build/index.js"]
        }
      }
    }
    
  5. Save settings and restart Cursor.

Cline

  1. Confirm Node.js (v16+).
  2. Install:
    npm install @lucamauri/mediawiki-mcp-adapter@latest
  3. Add to the Cline MCP config:
    {
      "mcpServers": {
        "mediawiki-mcp": {
          "command": "node",
          "args": ["build/index.js"]
        }
      }
    }
    
  4. Save and restart Cline.

Securing API Keys for all platforms:
Store API keys in environment variables and reference them in configuration, as shown above.

How to use this MCP inside flows

Using MCP in FlowHunt

To integrate MCP servers into your FlowHunt workflow, start by adding the MCP component to your flow and connecting it to your AI agent:

FlowHunt MCP flow

Click on the MCP component to open the configuration panel. In the system MCP configuration section, insert your MCP server details using this JSON format:

{
  "mediawiki-mcp": {
    "transport": "streamable_http",
    "url": "https://yourmcpserver.example/pathtothemcp/url"
  }
}

Once configured, the AI agent is now able to use this MCP as a tool with access to all its functions and capabilities. Remember to change “mediawiki-mcp” to whatever the actual name of your MCP server is and replace the URL with your own MCP server URL.


Overview

SectionAvailabilityDetails/Notes
OverviewOverview and purpose are described in README.
List of PromptsNo prompt templates are documented.
List of ResourcesgetPageContent resource is defined.
List of ToolseditPage tool is available.
Securing API KeysConfiguration using environment variables is shown with JSON examples.
Sampling Support (less important in evaluation)No mention of sampling support.

Our opinion

The MediaWiki-MCP-adapter provides a focused and well-documented integration with MediaWiki/WikiBase APIs, offering clear resource and tool primitives for fetching and editing pages. The lack of prompt templates and sampling support limits its flexibility for complex LLM-driven workflows, but its core features are robust for content automation and knowledge base management. The presence of a license and setup guidance raises its reliability for developers. Overall, this MCP server is a solid choice for MediaWiki automation, but more advanced agentic features would further improve its score.

MCP Score

Has a LICENSE✅ (GPL-3.0)
Has at least one tool
Number of Forks1
Number of Stars3

Frequently asked questions

What does the MediaWiki-MCP-adapter MCP server do?

It connects MediaWiki/WikiBase APIs to AI assistants and automation tools via the Model Context Protocol, enabling both fetching and editing of wiki pages for automated knowledge management.

What tools are available with this MCP server?

You can fetch page content using `getPageContent` and perform edits with `editPage`, supporting both reading and updating MediaWiki pages programmatically.

What are typical use cases for this adapter?

Automated wiki content updates, bulk editing or migration, retrieving content for LLM context, managing wiki-based knowledge bases, and integrating documentation updates into developer workflows.

Is the MediaWiki-MCP-adapter secure?

Yes. API keys and sensitive credentials should be stored in environment variables, as shown in the setup instructions, to ensure secure integration.

Does it support prompt templates or advanced LLM agent features?

No explicit prompt templates or sampling support are included. The focus is on direct API integration for page fetching and editing.

What license does this MCP server use?

It is licensed under GPL-3.0, providing open-source reliability and flexibility for developers.

Automate Your Wiki with MediaWiki-MCP-adapter

Unlock seamless MediaWiki API automation for your bots, flows, and internal tools with FlowHunt’s MediaWiki-MCP-adapter.

Learn more