MediaWiki
๐๏ธ โ๏ธ ๐ ๐ ๐ช ๐ง - 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.
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
Maintainer
Works with
Installation
NPM
npx -y @professional-wiki/mediawiki-mcp-serverManual Installation
npx -y @professional-wiki/mediawiki-mcp-serverConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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
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@latestCreate 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"
}
}
}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.
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.
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.
MediaWiki Alternatives โ Similar Search & Data Extraction Servers
Looking for alternatives to MediaWiki? Here are other popular search & data extraction servers you can use with Claude, Cursor, and VS Code.
TrendRadar
โ 58.0kA real-time hotspot monitoring and news aggregation assistant that provides AI-powered analysis of trending topics across multiple platforms via the Model Context Protocol. It enables users to track news and receive automated notifications through va
Scrapling
โ 52.7k๐ท๏ธ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!
PDF Math Translate
โ 33.9k[EMNLP 2025 Demo] PDF scientific paper translation with preserved formats - ๅบไบ AI ๅฎๆดไฟ็ๆ็็ PDF ๆๆกฃๅ จๆๅ่ฏญ็ฟป่ฏ๏ผๆฏๆ Google/DeepL/Ollama/OpenAI ็ญๆๅก๏ผๆไพ CLI/GUI/MCP/Docker/Zotero
GPT Researcher
โ 27.2kAn autonomous agent that conducts deep research on any data using any LLM providers
Agent Reach
โ 20.1kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu โ one CLI, zero API fees.
Xiaohongshu
โ 13.7kMCP for xiaohongshu.com
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.
Set Up MediaWiki in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.