Skip to main content
Glama
shiquda
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: Deepwiki 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。

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

Latest Blog Posts

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