
MediaWiki
io.github.olgasafonova由 GitHub 帳號 olgasafonova 發布v1.36.1更新於 Nov 7, 2026
Search, read, and edit any MediaWiki wiki. Works with Wikipedia, Fandom, and more.
概覽
把 AI 助理連接到任何 MediaWiki 站點(維基百科、Fandom 或企業維基),用來搜尋、閱讀、稽核與編輯頁面。
- 可以做什麼
- 搜尋並閱讀維基頁面,可一次取得多個頁面
- 追蹤變更:近期更新、版本差異與最活躍的編輯者
- 檢查品質:失效連結、孤立頁面、相似頁面、過期內容與維基健康度稽核
- 需驗證的頁面管理:重新命名、尋找取代文字、發佈 Markdown
- 上傳檔案並在已上傳的文件(如 PDF)中搜尋
- 將 Markdown 轉換為維基格式,可選主題與 CSS
- 適用情境
- 當團隊文件或知識庫放在 MediaWiki 上,希望助理據此回答問題、檢視內容品質或批次編輯時適用。也適合想用提示詞或命令列腳本維護維基的文件管理員與編輯者。
- 執行需求
- 以本機程序執行(二進位檔、容器映像或桌面安裝包;從原始碼建置需 Go 1.24+)。需設定 MEDIAWIKI_URL 指向維基 API 位址。閱讀公開維基不需登入;私有維基與編輯操作需要 MEDIAWIKI_USERNAME 與 MEDIAWIKI_PASSWORD(機器人密碼)。PDF 搜尋另需安裝 poppler-utils 中的 pdftotext 工具。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 MediaWiki,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
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.
[CI] [lint] [CodeScene Average Code Health] [License: MIT]
Three ways to use it:
- MCP server — Claude Desktop, Claude Code, Cursor, ChatGPT, n8n, VS Code, Google ADK, or any MCP-compatible tool. See SETUP.md.
wikiCLI — same API client, same auth, no AI needed. For shell pipelines, CI checks, cron jobs. See CLI.md.- Claude Code plugin —
/plugin marketplace add olgasafonova/mediawiki-mcp-serveradds wiki skills directly to Claude Code. See .claude-plugin/README.md.
Documentation
What Can You Do?
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.
30-Second Start
- Get the binary. Download from Releases or
go build -o mediawiki-mcp-server .(requires Go 1.24+). - Find your wiki API URL — usually
https://your-wiki.com/api.php. Wikipedia ishttps://en.wikipedia.org/w/api.php. VisitSpecial:Versionto confirm. - Wire it up to your AI tool — see SETUP.md for the configuration that matches your client.
Reading public wikis works without login. Private/corporate wikis and editing require a bot password — SETUP.md#editing-wiki-pages.
Example Prompts
📖 More examples: see WIKI_USE_CASES.md for detailed workflows by persona (content editors, documentation managers, developers).
Search and read:
- "What does our wiki say about deployment?"
- "Give me a quick overview of the Configuration page"
- "Get the content of Main Page, FAQ, and Setup all at once"
Track changes:
- "What pages were updated this week?"
- "Show me the diff between the last two versions"
- "Who are the most active editors this month?"
Check quality:
- "Are there broken links on this page?"
- "Find orphaned pages with no links to them"
- "Find pages similar to the Installation Guide"
- "Find pages not updated in the last 90 days"
Page management (requires auth):
- "Rename 'Old Guide' to 'Updated Guide'"
- "Strike out John Smith on the Team page"
- "Replace 'version 2.0' with 'version 3.0' on Release Notes"
File uploads and search (requires auth):
- "Upload this image from URL to the wiki"
- "Upload this local file to the wiki" (the agent base64-encodes the bytes; no public URL needed)
- "Search for 'budget' in File:Annual-Report.pdf"
Convert Markdown:
- "Convert this README to wiki format"
- "Convert with Tieto branding and CSS" (use theme="tieto", add_css=true)
PDF Search Setup
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:
Compatibility
Works with any wiki: Wikipedia, Fandom, corporate wikis, or any MediaWiki installation.
Troubleshooting
Common issues and fixes live in SETUP.md#troubleshooting. For deeper diagnostics, the HTTP server exposes /health, /ready, and /status endpoints — see DEPLOYMENT.md.
Development
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:
Integration tests run against a real MediaWiki instance via docker-compose.test.yml. See CONTRIBUTING.md for the workflow.
Like This Project?
If this server saved you time, consider giving it a ⭐ on GitHub. It helps others discover the project.
More MCP Servers
Check out my other MCP servers:
License
MIT License
Credits
- Built with Go MCP SDK
- Powered by MediaWiki API
來源:README.md,提交 f6ec39f
工具
0版本歷史
4- v1.36.1最新Nov 7, 2026
- v1.36.0Oct 15, 2026
- v1.35.0Oct 7, 2026
- v1.34.0Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分