
Scryfall MCP Server
使用模型上下文协议,可以与 Scryfall API 交互,允许用户搜索万智牌卡牌详情、检索卡牌裁定以及访问定价信息。
Tools
random_card
Retrieve a random Magic card from Scryfall. Returns JSON data for that random card.
get_rulings
Retrieve official rulings for a specified card by Scryfall ID or Oracle ID. Returns an array of rulings. Each ruling has a 'published_at' date and a 'comment' field.
search_cards
Search for MTG cards by a text query, e.g. 'oracle text includes: draw cards'. Returns a list of matching cards (with basic fields: name, set, collector_number, ID). If no matches are found, returns an error message from Scryfall.
get_card_by_id
Retrieve a card by its Scryfall ID (a 36-char UUID). Returns the card data in JSON.
get_card_by_name
Retrieve a card by its exact English name, e.g. 'Black Lotus'. Returns the card data in JSON. If multiple cards share that exact name, Scryfall returns one (usually the most relevant printing).
get_prices_by_id
Retrieve price information for a card by its Scryfall ID. Returns JSON with usd, usd_foil, eur, tix, etc.
get_prices_by_name
Retrieve price information for a card by its exact name. Returns JSON with usd, usd_foil, eur, tix, etc.
README
Scryfall MCP 服务器
一个用于与 Scryfall API 交互的 模型上下文协议 (MCP) 服务器。 它提供了查找万智牌卡牌详情、卡牌规则和价格信息的工具。
功能
- search_cards
在 Scryfall 上执行基于文本的搜索。 返回匹配卡牌的列表。 - get_card_by_id
通过其 Scryfall UUID 直接检索卡牌。 - get_card_by_name
通过确切的英文名称检索卡牌。 - random_card
从整个 Scryfall 数据库中获取一张随机卡牌。 - get_rulings
检索卡牌的官方规则,这些规则可以澄清卡牌互动或规则。 - get_prices_by_id
通过 Scryfall ID 检索给定卡牌的当前定价信息(美元、美元闪卡、欧元、TIX)。 - get_prices_by_name
通过确切名称检索给定卡牌的当前定价信息(美元、美元闪卡、欧元、TIX)。
用法
服务器可以在两种模式下运行:
- 标准 stdio 模式(默认)
- 带有 HTTP 端点的服务器发送事件 (SSE) 模式
使用 NPX
如果您在本地安装了 Node.js:
# Stdio 模式
npx scryfall-mcp-server
# SSE 模式
npx scryfall-mcp-server --sse
连接到服务器
Stdio 模式
您的应用程序或环境(如 Claude Desktop)可以直接通过 stdio 与服务器通信。
SSE 模式
在 SSE 模式下运行(使用 --sse
)时,您可以使用 MCP CLI 连接:
npx @wong2/mcp-cli --sse http://localhost:3000/sse
服务器将在以下位置可用:
- SSE 端点:
http://localhost:3000/sse
- 消息端点:
http://localhost:3000/messages
在 claude_desktop_config.json 中集成
stdio 模式的示例代码段:
{
"mcpServers": {
"scryfall": {
"command": "docker",
"args": ["run", "-i", "--rm", "mcp/scryfall"]
}
}
}
或者使用 npx:
{
"mcpServers": {
"scryfall": {
"command": "npx",
"args": ["scryfall-mcp-server"]
}
}
}
从 Docker 构建
docker build -t mcp/scryfall .
然后您可以在 stdio 模式下运行:
docker run -i --rm mcp/scryfall
或者在 SSE 模式下运行:
docker run -i --rm -p 3000:3000 mcp/scryfall --sse
许可证
在 MIT 许可证下获得许可。
推荐服务器
TripleWhale MCP Server
一个模型上下文协议 (MCP) 的实现,允许用户通过 Claude Desktop 使用自然语言查询与 TripleWhale 的电子商务分析平台进行交互。
actors-mcp-server
使用 Apify 提供的 3000 多个预构建的云工具(称为 Actors),从网站、电子商务平台、社交媒体、搜索引擎、地图等提取数据。
BigGo MCP Server
一个模型上下文协议服务器,支持跨电商平台的产品搜索、价格历史追踪,以及基于产品规格的自然语言提示搜索。
Bitrefill Search and Shop
这个 MCP 封装了 Bitrefill 的公共 API,允许代理使用比特币、以太坊、Solana 等加密货币搜索产品和购物。

Rami Levy MCP Server
启用与拉米·列维在线杂货店 API 的交互,允许用户执行产品搜索、从购物车中添加或删除商品,并为结账做准备,同时与支持 MCP 的 LLM 集成。
WooCommerce MCP Server
WooCommerce MCP 服务器通过 WordPress REST API 实现与 WooCommerce 商店的交互。它提供了全面的工具,可以使用 JSON-RPC 2.0 协议管理产品、订单、客户、运输、税收、折扣和商店配置的所有方面。
Uber Eats MCP Server
一个概念验证的模型上下文协议服务器,使 LLM 应用程序能够与 Uber Eats 互动,允许 AI 代理通过自然语言浏览和订购食物。
Shopify MCP Server
使用 GraphQL API 实现与 Shopify 商店数据的交互,支持产品、客户和订单管理,并提供全面的错误处理。