mcpField
大
大学院废墟(sbwsz.com) MCP Server

大学院废墟(sbwsz.com) MCP Server

Local
github.com/lieyanqzuGames & Entertainment2Updated 59w ago

About 大学院废墟(sbwsz.com) MCP Server

大学院废墟(sbwsz.com) MCP Server connects MCP clients to the site's public API for Chinese Magic: The Gathering card data. It provides card and set lookup, search, and card-image text composition.

Key features

  1. 01Look up cards by set and number
  2. 02Search cards with query syntax
  3. 03List sets and set cards
  4. 04Compose text from card images

Use cases

  1. 01Find a card using its set code and collector number
  2. 02Search cards by characteristics such as color or power
  3. 03Retrieve information about a set and its cards
  4. 04Create an image from text using card images

MCP support

The MCP server exposes tools for querying the 大学院废墟 public API, including card search and lookup, set information, and image composition.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"sbwsz": {
"command": "npx",
"args": [
"-y",
"sbwsz-mcp-server"
]
}
}
}
Run commandnpx -y sbwsz-mcp-server

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmsbwsz-mcp-server

Tools

6

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
setstringYesSet code, e.g. 'NEO', 'MOM'
collector_numberstringYesCollector number, e.g. '1', '112', '1a'

Details

From the project README

大学院废墟(sbwsz.com) MCP Server

English | 中文

一个基于 Model Context Protocol (MCP) 的服务端,用于与 大学院废墟 API 交互。提供了一系列工具来查询万智牌中文卡牌信息。

smithery badge

README image

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 包使用
# 全局安装
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:stdio
HTTP 模式

用于容器部署或 HTTP 客户端访问:

npm run start:http

HTTP 服务器将在端口 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:stdio
  • macOS/Linux: npm run start:http 或 npm run start:stdio
  • Docker: 自动使用 HTTP 模式

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.