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.

已验证STDIO仅桌面文件与存储知识与记忆

概览

AI 生成的概览

把 AI 助手连接到任意 MediaWiki 站点(维基百科、Fandom 或企业维基),用于搜索、阅读、审查和编辑页面。

可以做什么
  • 搜索并阅读维基页面,可一次获取多个页面
  • 跟踪变更:近期更新、版本差异和最活跃的编辑者
  • 检查质量:失效链接、孤立页面、相似页面、过期内容和维基健康度审计
  • 需认证的页面管理:重命名、查找替换文本、发布 Markdown
  • 上传文件并在已上传的文档(如 PDF)中搜索
  • 将 Markdown 转换为维基格式,可选主题和 CSS
适用场景
当团队文档或知识库放在 MediaWiki 上,希望助手据此回答问题、审查内容质量或批量编辑时适用。也适合希望用提示词或命令行脚本维护维基的文档管理员和编辑者。
运行要求
以本地进程运行(二进制、容器镜像或桌面安装包;从源码构建需 Go 1.24+)。需要设置 MEDIAWIKI_URL 指向维基 API 地址。阅读公开维基无需登录;私有维基和编辑操作需要 MEDIAWIKI_USERNAME 与 MEDIAWIKI_PASSWORD(机器人密码)。PDF 搜索还需安装 poppler-utils 中的 pdftotext 工具。
安装前请注意
编辑、重命名、替换文本、发布和上传都会修改维基内容,且需要机器人密码;密码通过 MEDIAWIKI_PASSWORD 提供,建议使用专用机器人账号而非个人登录。查找替换可能一次改动大量页面,对线上维基执行前应先核对变更。

安装

在 SourceWeft 中

  1. 打开 控制台中的 MediaWiki,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

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:

  1. MCP server — Claude Desktop, Claude Code, Cursor, ChatGPT, n8n, VS Code, Google ADK, or any MCP-compatible tool. See SETUP.md.
  2. wiki CLI — same API client, same auth, no AI needed. For shell pipelines, CI checks, cron jobs. See CLI.md.
  3. Claude Code plugin — /plugin marketplace add olgasafonova/mediawiki-mcp-server adds wiki skills directly to Claude Code. See .claude-plugin/README.md.

Documentation

DocumentWhat it covers
QUICKSTART.mdGet running in 2 minutes
SETUP.mdPer-tool configuration (Claude Desktop, Cursor, ChatGPT, n8n, VS Code, Google ADK)
CLI.mdwiki command-line reference
TOOLS.mdFull tool reference (43 tools by category)
DEPLOYMENT.mdHTTP transport, security, endpoints, env vars
TIETO_SETUP.mdConnect to Tieto's Public 360° Wiki (beginner-friendly)
WIKI_USE_CASES.mdDetailed workflows by persona
ARCHITECTURE.mdSystem design
CONTRIBUTING.mdHow to contribute
SECURITY.mdSecurity policies
CHANGELOG.mdVersion history

What Can You Do?

The same operation works from a prompt (via MCP) or directly in your shell (via the wiki CLI):

GoalPrompt your AIFrom your terminal
Search the wiki"What does our wiki say about onboarding?"wiki search "onboarding"
Read a page"Show me the Getting Started page"wiki page "Getting Started"
Find broken links"Are there broken links on the Docs page?"wiki links broken --json
Find stale content"Which pages haven't been updated in 90 days?"wiki stale-pages --days 90
Cross-link suggestions"What pages are similar to the API Reference?"wiki similar "API Reference"
Audit wiki health"Run a health check on the wiki"wiki audit --json
Publish markdown"Publish this README to the wiki"wiki publish README.md "Page Title"
Strike a name"Strike out John Smith on the Team page"wiki replace "Team" --find "John Smith" --replace "<s>John Smith</s>"

For the full tool list, see TOOLS.md. The CLI returns typed exit codes for CI-friendly branching — see CLI.md.


30-Second Start

  1. Get the binary. Download from Releases or go build -o mediawiki-mcp-server . (requires Go 1.24+).
  2. Find your wiki API URL — usually https://your-wiki.com/api.php. Wikipedia is https://en.wikipedia.org/w/api.php. Visit Special:Version to confirm.
  3. 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.

PlatformInstall Command
macOSbrew install poppler
Ubuntu/Debianapt install poppler-utils
RHEL/CentOSyum install poppler-utils
Windowschoco install poppler

Windows alternative: Download binaries from poppler-windows releases and add to PATH.

Verify installation:

bash
pdftotext -v

Compatibility

PlatformTransportStatus
Claude Desktop (Mac/Windows)stdio✅ Supported
Claude Code CLIstdio✅ Supported
Cursorstdio✅ Supported
VS Codestdio✅ Supported
ChatGPTHTTP✅ Supported
n8nHTTP✅ Supported
Google ADKstdio / HTTP✅ Supported

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:

bash
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.


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:

ServerDescriptionStars
gleif-mcp-serverAccess GLEIF LEI database. Look up company identities, verify legal entities.[GitHub stars]
miro-mcp-serverControl Miro whiteboards with AI. Boards, diagrams, mindmaps, and more.[GitHub stars]
nordic-registry-mcp-serverAccess Nordic business registries. Look up companies across Norway, Denmark, Finland, Sweden.[GitHub stars]
productplan-mcp-serverTalk to your ProductPlan roadmaps. Query OKRs, ideas, launches.[GitHub stars]
tilbudstrolden-mcpNordic grocery deal hunting. Find offers, plan meals, track spending.[GitHub stars]
mcp-servercard-goGo library for SEP-2127 Server Cards. Pre-connect discovery for MCP servers.[GitHub stars]

License

MIT License

Credits

来源:README.md,提交 f6ec39f

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

4
  1. v1.36.1最新Nov 7, 2026
  2. v1.36.0Oct 15, 2026
  3. v1.35.0Oct 7, 2026
  4. v1.34.0Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分