SuperAPIAI Directory

MediaWiki-MCP-Server

github.com · AI developer platforms

Read, search and edit any MediaWiki wiki, including Wikipedia and Fandom, with multi-wiki support and Semantic MediaWiki, Cargo, Wikibase and NeoWiki queries.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

MediaWiki-MCP-Server is an MCP (Model Context Protocol) server designed to enable large language model (LLM) clients to interact with any MediaWiki wiki. It is developed by ProfessionalWiki and licensed under the MIT License.

Purpose

The server acts as a bridge between AI clients and MediaWiki wikis, enabling LLMs to read, search, and edit wiki content. It supports multi-wiki operations, and each tool can accept an optional wiki parameter to specify the wiki to operate on, which can be passed as a wiki key (such as en.wikipedia.org) or a full mcp://wikis/{wikiKey} URI. If this parameter is omitted, the configured default wiki is used. Every tool response reports the wiki targeted by the call.

Key Capabilities

  • Supports interaction with any MediaWiki wiki, including Wikipedia and Fandom.
  • Multi-wiki support: specify the target wiki via the wiki parameter.
  • Extension pack support: Semantic MediaWiki, Cargo, Wikibase, and NeoWiki queries. Tools for each extension pack are only registered on wikis where that extension is installed.
  • Provides a per-wiki resource mcp://wikis/{wikiKey}, exposing sitename, server (the wiki's public address), articlepath, scriptpath, and the private and readOnly flags.
  • After add-wiki or remove-wiki, the server sends a notifications/resources/list_changed notification to clients to refresh.
  • Tool responses carry payloads both in prose form (content) and in JSON form (structuredContent).
  • Supports authentication via configuration file, environment variables, or OAuth.
  • Provides multiple authentication methods such as browser OAuth (recommended), per-request bearer token (HTTP, deprecated), hosted OAuth proxy (HTTP), manual OAuth2 access token, and bot password.
  • Supports file uploads (requires explicitly configuring allowed directories).
  • Provides an HTTP transport, supports remote deployment, and includes security protections (SSRF protection, Host/Origin checks, etc.).

Usage

  1. Installation: Can be run via npx as @professional-wiki/mediawiki-mcp-server, or installed as a plugin into supported clients (such as Claude Code, Codex, VS Code, Cursor, Antigravity, OpenCode, etc.).
  2. Configuration: Create a config.json file to configure wiki connections; config.example.json can be used as a starting point. Configuration is only required when interacting with private wikis or using authentication tools.
  3. Authentication: Choose OAuth, bot password, or other methods according to your needs. Write tools are rejected on wikis with readOnly: true.
  4. Client integration: Most clients read the same server block; paste it into the corresponding client's configuration file.

Use Cases

  • Need to let an AI assistant query or edit content on Wikipedia, Fandom, or other MediaWiki wikis.
  • Need to perform search and edit operations across multiple wikis.
  • Need to perform structured queries using Semantic MediaWiki, Cargo, Wikibase, or NeoWiki.
  • Need to integrate wiki operations into AI workflows, such as automated editing, data extraction, etc.

Limitations

  • Configuration is only required when interacting with private wikis or using authentication tools.
  • Write tools are rejected on wikis with readOnly: true, and are hidden from tools/list when all configured wikis have readOnly set.
  • Cargo tools require the runcargoqueries user right, which may be restricted on some wikis.
  • Upload functionality is disabled by default and requires explicitly configuring allowed directories.
  • Outbound requests have SSRF protection; internal addresses must be added to MCP_TRUSTED_HOSTS to be accessible.
  • The HTTP transport must be security-hardened (TLS, bind address, allowed hosts and origins, etc.) before being exposed to others.
  • For specific supported clients and configuration details, please refer to the official documentation.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools