Back to MCP directory
publicPublicdnsLocal runtime

Magic: The Gathering

一个提供《万智牌》卡牌数据查询的MCP服务器,包含卡牌信息、规则查询和系列浏览功能。

article

README

🚀 魔法:集会 MCP 工具服务器

本项目是一个模型上下文协议 (MCP) 服务器,主要用于访问魔法:集会的卡牌数据、规则以及集合信息。借助该服务器,用户能够快速获取卡牌细节、裁决信息和综合规则等内容。

🚀 快速开始

在您开始使用魔法:集会 MCP 工具服务器之前,需要完成安装和设置。完成后,即可通过 MCP 客户端启动服务器并开始使用。

✨ 主要特性

  • 搜索功能:支持按名称、颜色、类型等标准搜索魔法卡片。
  • 详细信息查看:可查看详细的卡牌信息,包含裁决和外语版本。
  • 规则访问:能访问魔法:集会的综合规则。
  • 集合浏览:可以浏览集合信息和卡牌列表。
  • 图像查看:若有提供,还能查看卡牌图像。

📦 安装指南

安装要求

  1. PHP 8.1 或更高版本
    • 版本检查:运行 php --version 查看当前 PHP 版本。
    • 下载地址:如需下载,请访问 php.net
  2. Composer(PHP 的依赖管理工具)

设置步骤

  1. 克隆仓库
git clone https://github.com/james2037/mcp-gatherer.git
  1. 切换目录
cd mcp-gatherer
  1. 安装依赖
composer install

💻 使用示例

启动服务器

您的 MCP 客户端(例如 Claude Desktop)可以通过调用以下命令启动服务器:

php path/to/mcp_server.php

服务器启动后,您即可通过 MCP 客户端开始使用魔法:集会工具。如需必要,请指定 STDIO 传输。

Windows 用户配置示例

一个适用于 Windows 用户的示例 claude_desktop_config.json 可能如下所示:

{
  "mcpServers": {
    "mcp-gatherer": {
      "command": "php",
      "args": ["C:\\mcp-gatherer\\mcp_server.php"],
      "disabled": false,
      "alwaysAllow": []
    }
  }
}

📄 许可证

此项目根据 MIT 许可证发布。详细信息请参阅 LICENSE 文件。

🤝 贡献

如果您希望为该工具的开发做出贡献,请随意提交问题或拉取请求。对于重大更改,请先打开一个问题来讨论您想要更改的内容。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client