Skip to main content
Glama

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 等等!
  • 📖 检索详细页面内容

用法💻

  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

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

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

  1. 特色✨
    1. 用法💻
      1. 支持的工具🛠
        1. 搜索
        2. 获取页面
      2. 开发👨‍💻
        1. 贡献🤝
          1. 相关项目♥️

            Related MCP Servers

            • -
              security
              A
              license
              -
              quality
              MCP server for using various search tools like Tavily API. Planning to support various search tools (i.e. wiki search, searxng, etc)
              Last updated -
              1
              Python
              MIT License
              • Apple
              • Linux
            • -
              security
              A
              license
              -
              quality
              A Model Context Protocol server that retrieves information from Wikipedia to provide context to LLMs, allowing users to search articles, get summaries, full content, sections, and links from Wikipedia.
              Last updated -
              31
              Python
              MIT License
              • Apple
              • Linux
            • A
              security
              F
              license
              A
              quality
              A Model Context Protocol server that enables searching, reading, and editing wiki pages on Wizzypedia from MCP-enabled tools like Cursor or Claude Desktop.
              Last updated -
              6
              JavaScript
              • Apple
            • A
              security
              A
              license
              A
              quality
              An MCP server that fetches and converts Deepwiki documentation into Markdown, allowing users to crawl pages from deepwiki.com repositories and access them in different output formats.
              Last updated -
              1
              1,868
              541
              TypeScript
              MIT License
              • Linux
              • Apple

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/shiquda/mediawiki-mcp-server'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server