MediaWiki MCP Server
Connect your AI assistant to any MediaWiki wiki, or script it directly from the terminal. Search, read, and edit wiki content using natural language or the wiki CLI.
接入你的智能体
發布者自己的指令。不是 PlugMCP 端點。
用我們的金鑰與日誌託管一份副本。
docker run -i --rm ghcr.io/olgasafonova/mediawiki-mcp-server:1.36.2Claude Code 沒有本機指令的安裝連結。複製下方指令並在終端機中執行。
MEDIAWIKI_URL=<value> MEDIAWIKI_USERNAME=<value> MEDIAWIKI_PASSWORD=<secret> claude mcp add olgasafonova-mediawiki-mcp-server -- docker run -i --rm ghcr.io/olgasafonova/mediawiki-mcp-server:1.36.2在終端機中執行。
{ "mcpServers": { "olgasafonova-mediawiki-mcp-server": { "command": "docker", "args": [ "run", "-i", "--rm", "ghcr.io/olgasafonova/mediawiki-mcp-server:1.36.2" ], "env": { "MEDIAWIKI_URL": "<value>", "MEDIAWIKI_USERNAME": "<value>", "MEDIAWIKI_PASSWORD": "<secret>" } } }}claude_desktop_config.json
遠端 URL 還是本機指令? 兩種安裝方式的差異
Three ways to use it:
wiki CLI — same API client, same auth, no AI needed. For shell pipelines, CI checks, cron jobs. See CLI.md./plugin marketplace add olgasafonova/mediawiki-mcp-server adds wiki skills directly to Claude Code. See .claude-plugin/README.md.The same operation works from a prompt (via MCP) or directly in your shell (via the wiki CLI):
For the full tool list, see TOOLS.md. The CLI returns typed exit codes for CI-friendly branching — see CLI.md.
go build -o mediawiki-mcp-server . (requires Go 1.24+).https://your-wiki.com/api.php. Wikipedia is https://en.wikipedia.org/w/api.php. Visit Special:Version to confirm.Reading public wikis works without login. Private/corporate wikis and editing require a bot password — SETUP.md#editing-wiki-pages.
📖 More examples: see WIKI_USE_CASES.md for detailed workflows by persona (content editors, documentation managers, developers).
Search and read:
Track changes:
Check quality:
Page management (requires auth):
File uploads and search (requires auth):
Convert Markdown:
PDF search requires the pdftotext tool from poppler-utils. Text file search (TXT, MD, CSV, etc.) works without any dependencies.
Windows alternative: Download binaries from poppler-windows releases and add to PATH.
Verify installation:
pdftotext -v
Works with any wiki: Wikipedia, Fandom, corporate wikis, or any MediaWiki installation.
Common issues and fixes live in SETUP.md#troubleshooting. For deeper diagnostics, the HTTP server exposes /health, /ready, and /status endpoints — see DEPLOYMENT.md.
Build, test, and contribute: see CONTRIBUTING.md. For the system design, package layout, and data flow, see ARCHITECTURE.md.
Run the full check before pushing:
go test -race -failfast ./...
golangci-lint run ./...
Integration tests run against a real MediaWiki instance via docker-compose.test.yml. See CONTRIBUTING.md for the workflow.
If this server saved you time, consider giving it a ⭐ on GitHub. It helps others discover the project.
Check out my other MCP servers:
MIT License
MCP server for MediaWiki wikis - search, read, and edit wiki content from AI assistants
{ "mcpServers": { "olgasafonova-mediawiki-mcp-server": { "command": "docker", "args": [ "run", "-i", "--rm", "ghcr.io/olgasafonova/mediawiki-mcp-server:1.36.2" ], "env": { "MEDIAWIKI_URL": "<value>", "MEDIAWIKI_USERNAME": "<value>", "MEDIAWIKI_PASSWORD": "<secret>" } } }}工具
尚無工具清單。遠端伺服器會在首次健康檢查後取得工具清單。
常見問題
在本頁複製適用於 Cursor、Claude Desktop、Claude Code 或 VS Code 的 stdio 設定。它使用發布者的安裝方式,而不是 PlugMCP 代理伺服器。
發布者列出了以下環境變數:MEDIAWIKI_URL, MEDIAWIKI_USERNAME, MEDIAWIKI_PASSWORD。
Mediawiki 透過 stdio 在本機執行。
上次檢查時間:2026-11-17。 MCP server for MediaWiki wikis - search, read, and edit wiki content from AI assistants