sbwsz-mcp

大学院废墟(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
    活字乱刷,将输入的文本使用万智牌卡牌图像拼接成图片。

使用方法

服务端支持两种运行模式:

  1. 标准 stdio 模式(默认)
  2. 无状态 Streamable HTTP 模式,提供 HTTP 端点

使用 NPX

如果你本地安装了 Node.js:

# Stdio 模式 npx sbwsz-mcp-server # Streamable HTTP 模式 npx sbwsz-mcp-server --http

连接到服务端

Stdio 模式

你的应用程序或环境(如 Claude Desktop)可以通过 stdio 直接与服务端通信。

Streamable HTTP 模式

当使用 Streamable HTTP 模式运行时(使用 --http 参数):

服务端将在以下端点可用:

  • Streamable HTTP 端点:http://localhost:3000/mcp

该模式为无状态模式,不维护会话信息,提供更简化和高效的通信方式。

在 claude_desktop_config.json 中集成

stdio 模式的示例配置:

{ "mcpServers": { "sbwsz": { "command": "docker", "args": ["run", "-i", "--rm", "mcp/sbwsz"] } } }

或使用 npx:

{ "mcpServers": { "sbwsz": { "command": "npx", "args": ["sbwsz-mcp-server"] } } }

使用 Docker 构建

docker build -t mcp/sbwsz .

然后你可以在 stdio 模式下运行:

docker run -i --rm mcp/sbwsz

或在 Streamable HTTP 模式下运行:

docker run -i --rm -p 3000:3000 mcp/sbwsz --http

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

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.

  1. API 文档
    1. 使用示例
      1. 功能特性
        1. 使用方法
          1. 使用 NPX
          2. 连接到服务端
          3. 在 claude_desktop_config.json 中集成
          4. 使用 Docker 构建

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          Allows you to search for artworks, retrieve detailed information about specific artworks, access image tiles for artworks, and explore user-created collections from the Rijksmuseum.
          Last updated -
          7
          12
          22
          JavaScript
          MIT License
          • Apple
          • Linux
        • -
          security
          F
          license
          -
          quality
          Enables 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 -
          7
          5
          1
          JavaScript
        • -
          security
          F
          license
          -
          quality
          Enables 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 -
          Python
        • -
          security
          A
          license
          -
          quality
          Connects Claude Desktop to Anki, allowing retrieval and analysis of leech-tagged cards and adding review tags through natural language requests.
          Last updated -
          206
          JavaScript
          MIT License
          • Apple
          • Linux

        View all related MCP servers

        ID: kie4wl89lb