The sbwsz-mcp server allows you to query Magic: The Gathering card and set information from sbwsz.com, primarily focusing on Chinese card data. With this server, you can:
Get card by set and number: Retrieve a specific card using its set code (e.g., 'NEO') and collector number
Search cards: Search using flexible query syntax (e.g.,
t:creature c:r
,pow>=5 or mv<2
) with options for pagination, sorting, and prioritizing Chinese versionsGet sets: Obtain a complete list of all MTG sets ordered by release date
Get set details: Retrieve detailed information about a specific set by its code
Get set cards: List all cards from a specific set with pagination and sorting options
hzls: Generate images by assembling text using Magic card images
大学院废墟(sbwsz.com) MCP Server
English | 中文
一个基于 Model Context Protocol (MCP) 的服务端,用于与 大学院废墟 API 交互。提供了一系列工具来查询万智牌中文卡牌信息。
API 文档
本服务端基于大学院废墟的公开 API。您可以在以下地址查看完整的 API 文档:
使用示例
功能特性
- get_card_by_set_and_number
通过系列代码和收集编号获取单张卡牌。 - search_cards
通过查询字符串搜索卡牌,支持分页和排序。支持复杂的查询语法,如t:creature c:r
(红色生物)或pow>=5 or mv<2
(力量大于等于5或法术力值小于2)。 - get_sets
获取所有卡牌系列的信息。 - get_set
获取单个系列的详细信息。 - get_set_cards
获取特定系列的所有卡牌,支持分页和排序。 - hzls
活字乱刷,将输入的文本使用万智牌卡牌图像拼接成图片。
使用方法
通过 NPM 包使用
本地开发
运行模式
服务端支持两种运行模式:
STDIO 模式(默认)
用于与 Claude Desktop 等 MCP 客户端直接集成:
HTTP 模式
用于容器部署或 HTTP 客户端访问:
HTTP 服务器将在端口 8081 上启动,端点为 http://localhost:8081/mcp
在 Claude Desktop 中集成
在 claude_desktop_config.json
中添加配置:
使用 NPX(推荐)
使用本地构建
Docker 部署
跨平台支持
项目使用 cross-env
确保在所有平台上正确设置环境变量:
- Windows:
npm run start:http
或npm run start:stdio
- macOS/Linux:
npm run start:http
或npm run start:stdio
- Docker: 自动使用 HTTP 模式
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.
Provide seamless access to Magic: The Gathering Chinese card data from 大学院废墟(sbwsz.com) through a set of powerful query tools. Search cards by complex criteria, retrieve card sets, and get detailed card information to enhance your applications or workflows.
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 -7914
- -securityFlicense-qualityEnables Magic: The Gathering players to manage decks and access card information through Claude, supporting gameplay actions like drawing cards and mulligans while providing Scryfall API integration for card lookups.Last updated -6
- AsecurityFlicenseAqualityA MCP server that aggregates hot trends and rankings from various Chinese websites and platforms including Weibo, Zhihu, Bilibili, and more.Last updated -21301156
- MIT License