MediaWiki

v0.9.1โ€ขSearch & Data Extractionโ€ขstable

๐ŸŽ๏ธ โ˜๏ธ ๐Ÿ  ๐ŸŽ ๐ŸชŸ ๐Ÿง - Connect to any MediaWiki wiki (Wikipedia, Fandom, corporate wikis). 33+ tools for search, read, edit, link analysis, revision history, and Markdown conversion. Supports stdio and HTTP transport.

agentsaiai-agent-toolsgemini-cli-extensionllms
Share:
94
Stars
0
Downloads
0
Weekly
0/5

What is MediaWiki?

MediaWiki is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to ๐ŸŽ๏ธ โ˜๏ธ ๐Ÿ  ๐ŸŽ ๐ŸชŸ ๐Ÿง - connect to any mediawiki wiki (wikipedia, fandom, corporate wikis). 33+ tools for search, read, edit, link analysis, revision history, and markdown conversion. supports stdio and ...

๐ŸŽ๏ธ โ˜๏ธ ๐Ÿ  ๐ŸŽ ๐ŸชŸ ๐Ÿง - Connect to any MediaWiki wiki (Wikipedia, Fandom, corporate wikis). 33+ tools for search, read, edit, link analysis, revision history, and Markdown conversion. Supports stdio and HTTP transport.

This server falls under the Search & Data Extraction category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • get-page
  • get-page-history
  • search-page
  • set-wiki
  • update-page

Use Cases

Search and edit wiki content across platforms
Revision history and link analysis
Markdown conversion and content access
LicenseMIT License
Languagetypescript
Versionv0.9.1
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y @professional-wiki/mediawiki-mcp-server

Manual Installation

npx -y @professional-wiki/mediawiki-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use MediaWiki

The MediaWiki MCP Server connects AI assistants to any MediaWiki-based wiki โ€” including Wikipedia, Fandom wikis, corporate wikis, and private installations โ€” through 33+ tools covering page reads, full-text search, revision history, link analysis, page writes, file uploads, and Markdown conversion. It supports multiple wikis simultaneously, OAuth 2.0 browser-based authentication for write operations, extension packs for Semantic MediaWiki, Cargo, NeoWiki, and Bucket, and both stdio and HTTP transports. Organizations running their own MediaWiki instances can use it to give AI assistants read and write access to internal knowledge bases without any custom API integration.

Prerequisites

  • Node.js 18 or later
  • An MCP-compatible client such as Claude Desktop, Cursor, VS Code, or Claude Code CLI
  • Access to a MediaWiki instance (Wikipedia is publicly accessible; private wikis may require credentials)
  • Optional: a config.json file for private wiki credentials or multi-wiki configuration
  • Optional: OAuth 2.0 client credentials for authenticated write operations on private wikis
1

Run the server with npx (no installation required)

The MediaWiki MCP server can be run directly via npx without any global installation. For Wikipedia and other public wikis, no configuration file is needed.

npx -y @professional-wiki/mediawiki-mcp-server@latest
2

Create a configuration file (optional, for private wikis)

For private wikis or multi-wiki setups, create a config.json file specifying your wiki connections. The defaultWiki key sets which wiki is used when no wiki argument is passed to tools.

{
  "defaultWiki": "en.wikipedia.org",
  "wikis": {
    "en.wikipedia.org": {
      "sitename": "Wikipedia",
      "server": "https://en.wikipedia.org",
      "articlepath": "/wiki",
      "scriptpath": "/w"
    }
  }
}
3

Configure your MCP client

Add the server to your client configuration. If using a config.json, set the CONFIG environment variable to point to its path.

4

Verify available tools

After connecting, confirm that wiki tools are available including get-page, search-page, get-page-history, get-links-here, and update-page. The list of write tools depends on your authentication setup.

5

Set up authentication for write operations (optional)

To use write tools (create-page, update-page, upload-file etc.), configure OAuth 2.0 credentials in your config.json or use a bot password. See the repository documentation for the full configuration reference.

MediaWiki Examples

Client configuration

Claude Desktop configuration for the MediaWiki MCP server targeting Wikipedia with an optional config.json for additional wikis.

{
  "mcpServers": {
    "mediawiki-mcp-server": {
      "command": "npx",
      "args": ["-y", "@professional-wiki/mediawiki-mcp-server@latest"],
      "env": {
        "CONFIG": "/path/to/config.json"
      }
    }
  }
}

Prompts to try

Sample prompts for searching, reading, and editing MediaWiki content through the MCP server.

- "Search Wikipedia for articles about the Model Context Protocol"
- "Get the content of the Wikipedia page for 'Large language model' and summarize it"
- "Show me the revision history for the Wikipedia page on 'Artificial intelligence'"
- "Find all pages on my company wiki that link to the 'Getting Started' page"
- "Update the 'Team Processes' page on my internal wiki to add a new section about code review"
- "Run a Semantic MediaWiki query to find all pages with the property 'Status' equal to 'Active'"

Troubleshooting MediaWiki

All tools return 'wiki not found' or the server starts but no default wiki is configured

Without a config.json, the server has no default wiki. Create a config.json with at least a defaultWiki entry and a corresponding wiki definition, then set the CONFIG environment variable to its path in your client configuration.

Write tools (create-page, update-page) are not appearing in the tools list

Write tools are hidden when the wiki is configured as readOnly: true or when no authentication is configured. Add OAuth 2.0 credentials or a bot password to your config.json and restart the server. See the docs/configuration.md in the repository for the exact config fields.

Page content is cut off or truncated in responses

The MCP_CONTENT_MAX_BYTES environment variable controls the maximum response size (default 50,000 bytes). For large pages, increase this limit: set MCP_CONTENT_MAX_BYTES=200000 in your client environment configuration. Be aware that very large responses may exceed your LLM's context window.

Frequently Asked Questions about MediaWiki

What is MediaWiki?

MediaWiki is a Model Context Protocol (MCP) server that ๐ŸŽ๏ธ โ˜๏ธ ๐Ÿ  ๐ŸŽ ๐ŸชŸ ๐Ÿง - connect to any mediawiki wiki (wikipedia, fandom, corporate wikis). 33+ tools for search, read, edit, link analysis, revision history, and markdown conversion. supports stdio and http transport. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install MediaWiki?

Install via npm with the command: npx -y @professional-wiki/mediawiki-mcp-server. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with MediaWiki?

MediaWiki works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is MediaWiki free to use?

Yes, MediaWiki is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Search & Data Extraction MCP Servers

Explore all search & data extraction servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "mediawiki": { "command": "npx", "args": ["-y", "@professional-wiki/mediawiki-mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide โ†’

Ready to use MediaWiki?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides