CS

cryppadotta/scryfall-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

37 stars 14 forks 品質 51 トレンド 0

cryppadotta/scryfall-mcp は [https://github.com/cryppadotta/scryfall-mcp.] からインポートされた MCP サーバーの候補です

概要

cryppadotta/scryfall-mcp は [https://github.com/cryppadotta/scryfall-mcp.] からインポートされた MCP サーバーの候補です

概要(AI 翻訳)

Scryfall APIとやり取りするためのモデルコンテキストプロトコル(MCP)サーバー。 マジック:カードの詳細、カードのルーリング、価格情報などを調べるツールを提供します。

##特徴

  • search cards Scryfallでテキストベースの検索を実行します。 マッチングカードのリストを返します。
  • get card by id スクリフトUUIDでカードを直接取得します。
  • get card by name 正確な英語名でカードを取得します。
  • ランダムカード Scryfallデータベース全体からランダムなカードを取得します。
  • get rulings カードのインタラクションやルールを明らかにする可能性のある公式のルーリングを取得します。
  • get prices by id 現在の価格設定情報(USD、USD箔、EUR、TIX)をScryfall IDで取得します。
  • get prices by name 特定のカードの現在の価格設定情報(USD、USD箔、EUR、TIX)を正確な名前で取得します。

使用法

サーバは2つのモードで実行できます。

  1. 標準的なstdioモード(デフォルト)
  2. HTTP エンドポイントの Server-Sent イベント (SSE) モード

NPX の使用

Node.js がローカルにインストールされている場合:

サーバーに接続する

####Stdioモード

アプリケーションや環境(Claude Desktopのような)は、サーバーとstdioを介して直接通信することができます.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

Scryfall MCP Server

A Model Context Protocol (MCP) server for interacting with the Scryfall API. It provides tools to look up Magic: The Gathering card details, card rulings, and price information.

Features

  • search_cards
    Perform a text-based search on Scryfall. Returns a list of matching cards.
  • get_card_by_id
    Retrieve a card directly via its Scryfall UUID.
  • get_card_by_name
    Retrieve a card by exact English name.
  • random_card
    Get a random card from the entire Scryfall database.
  • get_rulings
    Retrieve official rulings for a card, which may clarify card interactions or rules.
  • get_prices_by_id
    Retrieve current pricing information (USD, USD foil, EUR, TIX) for a given card by Scryfall ID.
  • get_prices_by_name
    Retrieve current pricing information (USD, USD foil, EUR, TIX) for a given card by exact name.

Usage

The server can be run in two modes:

  1. Standard stdio mode (default)
  2. Server-Sent Events (SSE) mode with HTTP endpoints

Using NPX

If you have Node.js installed locally:

# Stdio mode
npx scryfall-mcp-server

# SSE mode
npx scryfall-mcp-server --sse

Connecting to the Server

Stdio Mode

Your application or environment (like Claude Desktop) can communicate directly via stdio with the server.

SSE Mode

When running in SSE mode (with --sse), you can connect using the MCP CLI:

npx @wong2/mcp-cli --sse http://localhost:3000/sse

The server will be available at:

  • SSE endpoint: http://localhost:3000/sse
  • Message endpoint: http://localhost:3000/messages

Integration in claude_desktop_config.json

Example snippet for stdio mode:

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

Or with npx:

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

Building from Docker

docker build -t mcp/scryfall .

Then you can run in stdio mode:

docker run -i --rm mcp/scryfall

Or in SSE mode:

docker run -i --rm -p 3000:3000 mcp/scryfall --sse

License

Licensed under the MIT License.

GitHub で README 全文を見る

インストール

docker run -i --rm mcp/scryfall
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

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