Basic information
About 大学院废墟(sbwsz.com) MCP Server
用于与万智牌中文卡查大学院废墟(sbwsz.com)API交互的MCP服务端
大学院废墟(sbwsz.com) MCP Server is a MCP server in the Other category listed in the AddMCP.net directory, published by lieyanqzu. It exposes 6 tools, including get_card_by_set_and_number, search_cards, get_sets, get_set and more. Supported transport: stdio. Runtime: node. License: MIT. The repository has 1 GitHub stars. Source code is hosted on github.com. Related topics: magic-the-gathering, mcp-server, mtg, tcg.
Setup
{
"mcpServers": {
"sbwsz": {
"command": "npx",
"args": [
"sbwsz-mcp-server"
]
}
}
}
{
"mcpServers": {
"sbwsz": {
"command": "npx",
"args": [
"sbwsz-mcp-server"
]
}
}
}
{
"servers": {
"sbwsz": {
"command": "npx",
"args": [
"sbwsz-mcp-server"
]
}
}
}
大学院废墟(sbwsz.com) MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"sbwsz": {
"command": "npx",
"args": [
"sbwsz-mcp-server"
]
}
}
}
大学院废墟(sbwsz.com) MCP Server tools
-
get_card_by_set_and_number
— 通过系列代码和收集编号获取单张卡牌。
set:string*, collector_number:string* -
search_cards
— 通过查询字符串搜索卡牌,支持分页和排序。
**查询语法示例:**
- `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`: 是否优先显示中文卡牌
q:string*, page:integer, page_size:integer, order:string, unique:string, priority_chinese:boolean -
get_sets
— 返回所有MTG卡牌系列的完整数据,按发布日期降序排列
(no parameters) -
get_set
— 根据系列代码获取单个系列的详细信息
set_code:string* -
get_set_cards
— 获取特定系列的所有卡牌,支持分页和排序。
set_code:string*, page:integer, page_size:integer, order:string, priority_chinese:boolean -
hzls
— 活字乱刷(使用卡牌图像拼接句子),将输入的文本使用魔法卡牌图像拼接成图片
target_sentence:string*, cut_full_image:boolean, with_link:boolean
Overview
What is 大学院废墟(sbwsz.com) MCP Server?
基于 Model Context Protocol (MCP) 的服务端,用于与大学院废墟 (sbwsz.com) 公开 API 交互,提供万智牌中文卡牌信息查询工具。
How to use 大学院废墟(sbwsz.com) MCP Server?
通过 npm 全局安装 (npm install -g sbwsz-mcp-server) 或直接使用 npx (npx sbwsz-mcp-server) 运行。支持 STDIO 模式(默认,用于 Claude Desktop 等集成)和 HTTP 模式(端口 8081,用于容器部署)。在 Claude Desktop 的 claude_desktop_config.json 中添加配置即可集成。
Key features of 大学院废墟(sbwsz.com) MCP Server
get_card_by_set_and_number— 通过系列代码和编号获取单张卡牌search_cards— 按查询字符串搜索卡牌,支持分页和复杂语法(如t:creature c:r)get_sets— 获取所有卡牌系列的信息get_set— 获取单个系列的详细信息get_set_cards— 获取某系列所有卡牌,支持分页排序hzls(活字乱刷)— 将输入文本用万智牌卡牌图像拼接成图片
Use cases of 大学院废墟(sbwsz.com) MCP Server
- 查询特定卡牌的中文信息(通过系列代码和编号)
- 按条件搜索万智牌卡牌(如法术力值、力量等)
- 浏览所有卡牌系列及某系列的完整卡牌列表
- 利用活字乱刷功能生成趣味拼图图片
- 将卡牌查询能力集成到 Claude Desktop 等 AI 助手
Frequently asked questions
1 是否需要 API 密钥或认证?
不需要。服务端直接调用大学院废墟的公开 API,无需任何密钥或认证。
2 支持哪些运行模式?
支持 STDIO 模式(默认,适用于 MCP 客户端集成)和 HTTP 模式(监听 http://localhost:8081/mcp,适用于容器部署)。
3 如何集成到 Claude Desktop?
在 claude_desktop_config.json 中添加 "mcpServers" 配置,指定 "command": "npx" 和 "args": ["sbwsz-mcp-server"] 即可(或将本地构建路径作为 node 命令运行)。
4 是否支持 Docker 部署?
支持。Docker 镜像默认以 HTTP 模式运行,可通过 docker build -t sbwsz-mcp . 构建,然后运行 STDIO 或 HTTP 容器。
5 是否跨平台?
是。项目使用 cross-env 确保 Windows、macOS 和 Linux 上都能正常运行,所有 npm 脚本在所有平台均可直接使用。
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In