Skip to main content
Glama
shiquda

mediawiki-mcp-server

by shiquda

MediaWiki MCP 服务器

铁匠徽章

一个 MCP 服务器,可与维基百科 API 无缝交互。此工具允许您使用 LLM 搜索和检索维基百科内容 🤖!

https://github.com/user-attachments/assets/b5d9c5f3-a60e-48ea-8b4b-f1a7524d4fbb

特色✨

  • 🔍 使用可自定义的 wiki 站点搜索 wiki 页面。例如 wikipedia.org、fandom.com、wiki.gg 等等!

  • 📖 检索详细页面内容

Related MCP server: mediawiki-mcp-server

用法💻

  1. 确保您的设备上安装了 uv。

  2. 在您的客户端中配置:

服务器默认使用https://en.wikipedia.org/ 。您也可以让服务器搜索其他 wiki 站点!

要查看 wiki 站点是否与该服务器兼容,请检查它是否使用 MediaWiki 软件(通常由站点底部的图标显示)。

要进一步检查并找到端点(通常是网站的域名,例如https://mediawiki.org/ ),请在浏览器中访问 base-url/rest.php/v1/page (例如https://noita.wiki.gg/rest.php/v1/page ),看看输出是否正确。如果不正确,请在基本 URL 中添加“/w”并重试。

然后,将此端点设置为--base-url。

{
  "mcpServers": {
    "mediawiki-mcp-server": {
      "command": "uvx",
      "args": [
        "mediawiki-mcp-server",
        "--base-url", "https://example.com/"
      ],
      "env": {
        "HTTP_PROXY": "http://example.com:port"
      }
    }
  }
}

或者,如果您想从源代码运行此服务器:

{
  "mcpServers": {
    "mediawiki-mcp-server": {
      "command": "uv",
      "args": [
        "run",
        "--directory", 
        "mediawiki-mcp-server",
        "path/to/project/src/mediawiki_mcp_server",
        "--base-url", "https://example.com/"
      ],
      "env": {
        "HTTP_PROXY": "http://example.com:port"
      }
    }
  }
}

支持的工具🛠

搜索

  • query :搜索词(最好简短且重点突出)

  • limit :返回的最大结果数(默认值:5)

获取页面

  • title :要检索的维基百科页面的确切标题

开发👨‍💻

npx @modelcontextprotocol/inspector uv run mediawiki-mcp-server

以下是一些可能有帮助的文件:

贡献🤝

此服务器正在开发中。欢迎贡献!欢迎提交问题和拉取请求。

相关项目♥️

  • Cherry Studio :一款支持多家 LLM 提供商的桌面客户端。支持 MCP。

Available Tools

2 tools
get_pageB

Get a page from mediawiki.org Args: title: The title of the page to get, which can be found in title field of the search results Returns: The page content

ParametersJSON Schema
NameRequiredDescriptionDefault
titleYes

TDQS

B3.2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It states what the tool does (retrieves page content) but lacks critical behavioral details such as authentication requirements, rate limits, error handling, or whether it's a read-only operation (though implied by 'Get'). This leaves significant gaps for an agent to understand operational constraints.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is efficiently structured with a clear purpose statement followed by labeled sections for Args and Returns. Every sentence adds value without redundancy, making it easy to parse and understand quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read operation with one parameter and no output schema, the description covers the basics (purpose, parameter hint, return type). However, without annotations or output schema, it lacks details on response format (e.g., structured data vs. raw text), error cases, or prerequisites, leaving some contextual gaps for reliable agent use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds meaningful context for the single parameter 'title' by explaining that it 'can be found in title field of the search results,' which clarifies its source and usage. Since schema description coverage is 0% and there's only one parameter, this compensates well, though it doesn't detail format constraints like case sensitivity or special characters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Get a page') and resource ('from mediawiki.org'), making the purpose immediately understandable. However, it doesn't explicitly differentiate from the sibling 'search' tool, which appears to be a related but distinct operation for finding pages rather than retrieving specific content.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like the 'search' sibling. It mentions that titles 'can be found in title field of the search results,' which hints at a workflow but doesn't explicitly state when to choose get_page over search or other potential tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 2 tool updates
    • First observedget_page
    • First observedsearch

TDQS

B3.3/5.0

Scored across 2 tools

Disambiguation5/5

The two tools have clearly distinct purposes: get_page retrieves specific page content by title, while search finds pages matching a query. There is no overlap in functionality, making it easy for an agent to select the correct tool based on the task.

Naming Consistency5/5

Both tools follow a consistent verb_noun pattern (get_page and search, where search implies 'search_pages'). The naming is simple, predictable, and uses snake_case uniformly, providing clear readability.

Tool Count2/5

With only 2 tools, the server feels thin for a MediaWiki domain, lacking essential operations like creating, updating, or deleting pages. While get_page and search cover basic retrieval, the scope is incomplete, making it borderline too few for practical use.

Completeness2/5

The tool surface is severely incomplete for a MediaWiki server, missing core CRUD operations (e.g., create_page, update_page, delete_page) and other common actions like listing categories or handling user interactions. This will likely cause agent failures in broader workflows.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    An MCP server for Wiki.js projects that enables full-text search, page retrieval, and page management capabilities. It allows LLMs to interact with wiki content through specialized tools for searching, listing, and creating pages.
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    MCP server for persistent, compounding markdown wikis maintained by LLMs. Enables incremental knowledge base building with interlinked pages, search, and raw source management.
    36 npm
    1
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    MCP server that provides tools to add to, search, and manage a wiki knowledge base, enabling AI chat tools to contribute and retrieve information from the wiki via natural language prompts.
    MIT