
professionalwiki/mediawiki-mcp-server 是从 https://github.com/professionalwiki/mediawiki-mcp-server. 导入的 MCP 服务器候选。
概览
professionalwiki/mediawiki-mcp-server 是从 https://github.com/professionalwiki/mediawiki-mcp-server. 导入的 MCP 服务器候选。
概述(AI 翻译)
一个MCP(模型上下文协议)服务器,使大型语言模型(LLM)客户端能够与任何MediaWiki维基交互。
特色
工具
每个运行在维基上的工具都接受一个可选的 wiki 参数,指定该维基来执行(维基管理和 OAuth 工具不接受)——传递维基密钥(例如 en.wikipedia.org)或完整的 mcp://wikis/{wikiKey} URI。省略该密钥以使用配置的默认维基(参见配置)。每个工具响应报告调用所对应的维基。每个成功响应的有效载荷在 content 中以散文形式,在 structuredContent 中以 JSON 形式呈现;详见响应通道。
页面读着
| 名称 | 描述 |
|---|---|
compare-pages |
根据修订、标题或提供的维基文本,区分两个版本的维基页面。 |
get-category-members |
列出一个类别的成员(每次呼叫最多500人,通过continueFrom分页)。 |
get-file |
获取一个文件页。 |
get-file-data |
获取文件的图像字节(内联)用于可视化分析——适用于无法访问维基主机的客户端。返回缩放渲染(设置 width);不可渲染类型(音频、视频、二进制)错误。元数据或下载URL请使用 get-file。 |
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
MediaWiki MCP Server
An MCP (Model Context Protocol) server that enables Large Language Model (LLM) clients to interact with any MediaWiki wiki.
Features
Tools
Every tool that operates on a wiki accepts an optional wiki argument naming the wiki to act on (the wiki-management and OAuth tools do not) — pass a wiki key (e.g. en.wikipedia.org) or the full mcp://wikis/{wikiKey} URI. Omit it to use the configured default wiki (see Configuration). Each tool response reports the wiki the call ran against. Each successful response carries its payload as prose in content and as JSON in structuredContent; see response channels.
Page reads
| Name | Description |
|---|---|
compare-pages |
Diff two versions of a wiki page by revision, title, or supplied wikitext. |
get-category-members |
List members of a category (up to 500 per call, paginated via continueFrom). |
get-file |
Fetch a file page. |
get-file-data |
Fetch a file’s image bytes inline (base64) for visual analysis — for clients that can’t reach the wiki host. Returns a scaled rendition (set width); non-renderable types (audio, video, binaries) error. For metadata or a download URL, use get-file. |
get-links-here |
List pages that reference a wiki page — pages that link to it, embed it as a template, or display it as a file (select via type), including pages that reach it through a redirect. Up to 500 per call, paginated via continueFrom. |
get-page |
Fetch a wiki page. |
get-page-history |
List recent revisions of a wiki page. |
get-pages |
Fetch multiple wiki pages in one call (up to 50). |
get-recent-changes |
List recent change events across the wiki, filterable by timestamp, namespace, user, tag, type, and hide flags (up to 50 per call, paginated via continue). |
get-revision |
Fetch a specific revision of a page. |
get-site-info |
Get a wiki’s key settings: MediaWiki version, content language, title-case rules, namespaces, installed extensions, license, and (optionally) statistics. |
list-wikis |
List every configured wiki — its key, sitename, server, whether it is read-only or the default, whether it is reachable, which extension-gated tools work on it, and, for an OAuth-configured wiki, its authorization server. Disabled when fewer than two wikis are configured. |
parse-wikitext |
Render wikitext to HTML without saving. Returns parse warnings, wikilinks, templates, and external URLs. |
search-page |
Search wiki page titles and contents (full-text). Searches the wiki’s content namespaces unless given other namespace IDs. |
安装
npx -y @professional-wiki/mediawiki-mcp-server@latest配置
{
"mcpServers": {
"mediawiki-mcp-server": {
"command": "npx",
"args": ["-y", "@professional-wiki/mediawiki-mcp-server@latest"],
"env": {
"CONFIG": "path/to/config.json"
}
}
}
}