MTG 卡牌管理器 MCP 服务器
该项目提供模型上下文协议 (MCP) 服务器,用于直接通过 Claude 与万智牌卡组和卡片信息进行交互。
特征
MTG 牌组管理器:上传牌组、抽牌、管理手牌、执行重新洗牌以及处理换边
Scryfall API 集成:搜索卡牌、获取随机卡牌、查找卡牌信息
安装
将此存储库克隆到您的本地机器:
git clone https://github.com/artillect/mtg-deck-mcp-server.git
cd mtg-deck-mcp-server
设置 Python 虚拟环境:
# Create and activate a virtual environment
python -m venv .venv
.venv\Scripts\activate
# Install dependencies
pip install fastmcp httpx
Claude 桌面客户端配置
将以下内容添加到您的 Claude 配置中:
{
"mcp_servers": {
"mtg-server": {
"command": "C:\\Path\\To\\Your\\Project\\.venv\\Scripts\\python.exe",
"args": [
"C:\\Path\\To\\Your\\Project\\mtg_server.py"
]
},
"scryfall": {
"command": "C:\\Path\\To\\Your\\Project\\.venv\\Scripts\\python.exe",
"args": [
"C:\\Path\\To\\Your\\Project\\scryfall_server.py"
]
}
}
}
确保调整路径以匹配您的本地安装。
用法
在 Claude 客户端中设置服务器后,您可以通过要求 Claude 执行以下操作来与它们进行交互:
上传 MTG 牌组列表
从你的牌堆中抽牌
查看你的手牌
通过 Scryfall 搜索卡牌信息
获取随机卡片或按名称搜索
笔记
由于正在进行的开发,Scryfall 服务器可能偶尔会崩溃。
当您想要使用各自的功能时,请确保两台服务器都在运行。
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
使《万智牌:聚会》玩家能够通过 Claude 管理牌组并访问卡牌信息,支持抽牌和重新洗牌等游戏操作,同时提供 Scryfall API 集成以进行卡牌查找。
Related MCP Servers
- AsecurityFlicenseAqualityEnables interaction with the Scryfall API, allowing users to search for Magic: The Gathering card details, retrieve card rulings, and access pricing information using the Model Context Protocol.Last updated -71114
- AsecurityFlicenseAqualityAn MCP server that integrates Claude with Anki flashcards, allowing users to review due cards and create new flashcards directly through conversation.Last updated -612
- AsecurityFlicenseAqualityAn MCP server that allows Claude to interact with Discord by providing tools for sending/reading messages and managing server resources through Discord's API.Last updated -1930
- -securityFlicense-qualityAn MCP server that integrates with the BoardGameGeek XML API, allowing Claude to search for board games, retrieve game details, and access user collections.Last updated -