sbwsz-mcp
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
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@sbwsz-mcp search for red creature cards with power 5 or more"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
大学院废墟(sbwsz.com) MCP Server
English | 中文
一个基于 Model Context Protocol (MCP) 的服务端,用于与 大学院废墟 API 交互。提供了一系列工具来查询万智牌中文卡牌信息。
API 文档
本服务端基于大学院废墟的公开 API。您可以在以下地址查看完整的 API 文档:
Related MCP server: Scryfall MCP Server
使用示例

功能特性
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 包使用
# 全局安装
npm install -g sbwsz-mcp-server
# 或直接运行(推荐)
npx sbwsz-mcp-server本地开发
# 克隆项目
git clone <repository-url>
cd sbwsz-mcp
# 安装依赖
npm install
# 构建项目
npm run build
# 运行 STDIO 模式
npm run start:stdio
# 运行 HTTP 模式
npm run start:http运行模式
服务端支持两种运行模式:
STDIO 模式(默认)
用于与 Claude Desktop 等 MCP 客户端直接集成:
npm run start:stdioHTTP 模式
用于容器部署或 HTTP 客户端访问:
npm run start:httpHTTP 服务器将在端口 8081 上启动,端点为 http://localhost:8081/mcp
在 Claude Desktop 中集成
在 claude_desktop_config.json 中添加配置:
使用 NPX(推荐)
{
"mcpServers": {
"sbwsz": {
"command": "npx",
"args": ["sbwsz-mcp-server"]
}
}
}使用本地构建
{
"mcpServers": {
"sbwsz": {
"command": "node",
"args": ["path/to/sbwsz-mcp/dist/index.js"],
"cwd": "path/to/sbwsz-mcp"
}
}
}Docker 部署
# 构建镜像
docker build -t sbwsz-mcp .
# 运行 STDIO 模式(用于集成)
docker run -i --rm sbwsz-mcp
# 运行 HTTP 模式(用于服务)
docker run -p 8081:8081 sbwsz-mcp跨平台支持
项目使用 cross-env 确保在所有平台上正确设置环境变量:
Windows:
npm run start:http或npm run start:stdiomacOS/Linux:
npm run start:http或npm run start:stdioDocker: 自动使用 HTTP 模式
Available Tools
6 toolsget_card_by_set_and_numberBRead-only
通过系列代码和收集编号获取单张卡牌。
Inputs: collector_number (required), set (required).
get_setBRead-only
根据系列代码获取单个系列的详细信息
Inputs: set_code (required).
get_set_cardsARead-only
获取特定系列的所有卡牌,支持分页和排序。
Inputs: set_code (required), order, page, page_size, +1 more.
get_setsBRead-only
返回所有MTG卡牌系列的完整数据,按发布日期降序排列
Inputs: no named parameters.
hzlsBRead-only
活字乱刷(使用卡牌图像拼接句子),将输入的文本使用魔法卡牌图像拼接成图片
Inputs: target_sentence (required), cut_full_image, with_link.
search_cardsARead-only
通过查询字符串搜索卡牌,支持分页和排序。
查询语法示例:
t:creature c:r(红色生物)pow>=5 or mv<2(力量大于等于5或法术力值小于2)o:"draw a card" -c:u(包含"抓一张牌"的非蓝色牌)(t:instant or t:sorcery) mv<=3(3费或以下的瞬间或法术)
分页参数:
page: 页码 (整数, 默认 1)page_size: 每页数量 (整数, 默认 20, 最大 100)
排序参数:
order: 按字段排序,逗号分隔。前缀-表示降序 (例如:name,-mv,name,-rarity) 默认排序:name
其他参数:
unique: 去重方式 (id, oracle_id, illustration_id)priority_chinese: 是否优先显示中文卡牌
Inputs: q (required), order, page, page_size, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Most tools have distinct purposes: get_card_by_set_and_number retrieves a specific card, get_set and get_set_cards handle series data, get_sets lists all series, and search_cards performs general searches. However, get_set_cards and search_cards could be confused as both retrieve card lists, though their scopes differ (series-specific vs. general).
Tools follow a consistent verb_noun pattern (e.g., get_card_by_set_and_number, get_set, get_set_cards, get_sets, search_cards), which is clear and predictable. The exception is 'hzls', which uses an acronym and lacks a verb, slightly deviating from the pattern but not severely impacting readability.
With 6 tools, the server is well-scoped for Magic: The Gathering card data management. Each tool serves a specific function (e.g., retrieving cards, series, or generating images), and there are no redundant or missing tools for the apparent domain, making the count appropriate.
The tool surface covers core operations for MTG data: retrieving cards (by ID, series, or search), series information, and a creative image tool. Minor gaps exist, such as no explicit update or delete tools for data modification, but this is reasonable for a read-focused API, and agents can work around it with the provided search and retrieval functions.
Maintenance
Related MCP Connectors
Search Chinese books with Douban ratings, AI book guides and curated toplists. Free, no API key.
Mycel unified MCP gateway: China realtime data and 20 tool modules. API key required.
Chinese pharma data MCP: 22 tools covering drugs, trials, deals, patents, sales. Per-row billing.
Public WeChat, Weibo, Bilibili, and Douban data with no login required.
Related MCP Servers
- MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to search and retrieve Magic: The Gathering card data through the Scryfall API. Supports card searches, random card generation, autocomplete, set listings, and rulings lookup.221MIT
- AlicenseAqualityCmaintenanceProvides AI assistants with 69 tools, 19 prompts, and 21 resources for deep access to Magic: The Gathering, including card data, combos, draft analytics, Commander metagame, competitive constructed, sideboard strategy, deck building, and rules engine, working with any MCP client.5663 PyPI23MIT
- AlicenseNot gradedqualityDmaintenanceProvides AI assistants with access to Magic: The Gathering card data via Scryfall API, enabling card search, image downloads, and database management.19 npm2Apache 2.0