Scryfall MCP Server

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Integrations

  • Provides tools for accessing the Scryfall API to look up Magic: The Gathering card details, perform card searches, retrieve official rulings, and get current pricing information across different marketplaces.

Scryfall MCP サーバー

Scryfall APIと連携するためのモデルコンテキストプロトコル(MCP)サーバー。マジック:ザ・ギャザリングのカード詳細、カードの裁定、価格情報を検索するためのツールを提供します。

特徴

  • 検索カード
    Scryfall でテキストベースの検索を実行します。一致するカードのリストを返します。
  • IDでカードを取得する
    Scryfall UUID を介してカードを直接取得します。
  • 名前でカードを取得する
    正確な英語名でカードを取得します。
  • ランダムカード
    Scryfall データベース全体からランダムにカードを 1 枚取得します。
  • 裁定を取得する
    カードの公式判定を取得します。これにより、カードの相互作用やルールが明確になる場合があります。
  • IDで価格を取得する
    Scryfall ID で特定のカードについて現在の価格情報 (USD、USD フォイル、EUR、TIX) を取得します。
  • 名前で価格を取得する
    特定のカードの正確な名前で、現在の価格情報 (USD、USD フォイル、EUR、TIX) を取得します。

使用法

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

  1. 標準stdioモード(デフォルト)
  2. HTTPエンドポイントを使用したサーバー送信イベント(SSE)モード

NPXの使用

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

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

サーバーへの接続

標準モード

アプリケーションまたは環境 (Claude Desktop など) は、stdio を介してサーバーと直接通信できます。

SSEモード

SSE モード ( --sseを使用) で実行している場合は、MCP CLI を使用して接続できます。

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

サーバーは次の場所で利用できます:

  • SSEエンドポイント: http://localhost:3000/sse
  • メッセージエンドポイント: http://localhost:3000/messages

claude_desktop_config.json への統合

stdio モードの例スニペット:

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

またはnpxの場合:

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

Dockerからのビルド

docker build -t mcp/scryfall .

その後、stdio モードで実行できます。

docker run -i --rm mcp/scryfall

または SSE モードの場合:

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

ライセンス

MIT ライセンスに基づいてライセンスされています。

-
security - not tested
F
license - not found
-
quality - not tested

Scryfall API とのやり取りを可能にし、ユーザーはモデル コンテキスト プロトコルを使用して、Magic: The Gathering カードの詳細を検索したり、カードの裁定を取得したり、価格情報にアクセスしたりできるようになります。

  1. Features
    1. Usage
      1. Using NPX
      2. Connecting to the Server
      3. Integration in claude_desktop_config.json
      4. Building from Docker
    2. License
      ID: jdaj6hj69s