MediaWiki MCP Server

Integrations

  • Provides access to WikiData through the nodemw client, though with limited functionality as noted in the documentation.

  • Enables retrieval of MediaWiki page content, search functionality, category information, and internal link analysis from Wikipedia and other MediaWiki instances.

MediaWiki MCP Server

The MediaWiki MCP server provides a powerful set of tools for AI assistants like Claude to interact with your MediaWiki instance. It uses nodemw to communicate with the MediaWiki API to retrieve MediaWiki page content.

Key Features

  • Get page content : Get the HTML content and metadata of a wiki page
  • Wiki Search : Search for pages based on keywords
  • Get category information : Get the category information of a page
  • Link Analysis : Extracting internal links within a page

Prerequisites

  • Node.js 18 or higher
  • npm or yarn

How to use

install

Example of use in Claude settings

Example configuration in the Claude config file: claude_desktop_config.json

{ "mcpServers": { "mediawiki": { "command": "npm", "args": ["@harugon/mediawiki-mcp-server"], "env": { "MEDIAWIKI_PROTOCOL": "https", "MEDIAWIKI_SERVER": "ja.wikipedia.org", "MEDIAWIKI_PATH": "/w", "MEDIAWIKI_USER_AGENT": "MediaWiki-MCP-Server/1.0", "MEDIAWIKI_CONCURRENCY": "3", "DEBUG": "1" } } } }

Available Features

List of environment variables

Environment variable nameRequiredDefault valueexplanation
MEDIAWIKI_PROTOCOL×httpsCommunication protocol with the MediaWiki server
MEDIAWIKI_SERVER-The hostname of your MediaWiki server (e.g. ja.wikipedia.org)
MEDIAWIKI_PATH×/wMediaWiki paths
MEDIAWIKI_USERNAME×-Username for logging in
MEDIAWIKI_PASSWORD×-Login password
MEDIAWIKI_USER_AGENT×MediaWiki-MCP-Server/1.0User agent when making API requests
MEDIAWIKI_CONCURRENCY×3Limiting the number of simultaneous connections
DEBUG×0Debug mode (enabled at 1)

Known Issues

  • If the article is too large, it may fail to retrieve the page (requires chunking).
  • Depends on nodemw, so functionality is limited
-
security - not tested
F
license - not found
-
quality - not tested

A tool that enables AI assistants like Claude to interact with MediaWiki instances by retrieving page content, performing searches, and analyzing wiki information through the MediaWiki API.

  1. 主な機能
    1. 前提条件
      1. 使用方法
        1. インストール
        2. Claude設定での使用例
      2. 利用可能な機能
        1. 環境変数の一覧
          1. 既知の問題
            1. link
              ID: 61doy9xyw7