mediawiki-mcp-server

Integrations

  • Enables searching and retrieving content from Fandom wikis through their MediaWiki-based API.

  • Provides tools for searching and retrieving content from wiki.gg sites, supporting various gaming and community wikis.

  • Allows searching and retrieving detailed page content from Wikipedia, with customizable result limits and exact title lookups.

MediaWiki MCP 服务器

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

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

特色✨

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

用法💻

  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。

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

MCP 服务器允许您使用带有 LLM 的 MediaWiki 在任何 wiki 网站上搜索和检索内容🤖。wikipedia.org、fandom.com、wiki.gg 以及更多使用 Mediawiki 的网站均受支持!

  1. Features ✨
    1. Usage 💻
      1. Supported Tools 🛠
        1. Search
        2. Get Page
      2. Development 👨‍💻
        1. Contributing 🤝
          1. Related Projects ♥️
            ID: 9f9zunnuyj