Scryfall API and MCP server for AI agents

Let Claude, ChatGPT or your own agent read Scryfall. No Scryfall API key needed.

Add to your agent

Paste this into Claude Code, Cursor, Codex or any agent. It adds the server itself.

Read https://bowmark.ai/sites/scryfall.md and add Bowmark's Scryfall MCP server to my agent.

Functions

Open a function to see its parameters and run it with your own API key.

  • getCardReads one Magic: The Gathering card by name (optionally a set): oracle text, legality in every format, market prices, image and scryfall.com url.

    POST /v1/sites/scryfall/getCard

    Parameters

    curl -X POST https://api.bowmark.ai/v1/sites/scryfall/getCard \
      -H "Authorization: Bearer $BOWMARK_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"args":"Lightning Bolt"}'
    Sign in to run
    Responsereturns ScryfallCard
    interface ScryfallCard {
      id: string;
      name: string;
      manaCost: string | null; // null for lands
      manaValue: number | null;
      typeLine: string | null;
      oracleText: string | null;
      colors: string[];
      set: string;
      setName: string;
      collectorNumber: string;
      rarity: string;
      releasedAt: string | null;
      legalities: Record<string, string>; // format -> legal | not_legal | banned | restricted
      prices: { usd: number | null; usdFoil: number | null; eur: number | null; tix: number | null }; // market prices of THIS printing; null when unpriced
      imageUrl: string | null;
      url: string;
    }
  • searchCardsSearches Magic: The Gathering cards by name or Scryfall syntax.

    POST /v1/sites/scryfall/searchCards

    Parameters

    curl -X POST https://api.bowmark.ai/v1/sites/scryfall/searchCards \
      -H "Authorization: Bearer $BOWMARK_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"args":"lightning bolt"}'
    Sign in to run
    Responsereturns ScryfallSearchPage
    interface ScryfallCard {
      id: string;
      name: string;
      manaCost: string | null; // null for lands
      manaValue: number | null;
      typeLine: string | null;
      oracleText: string | null;
      colors: string[];
      set: string;
      setName: string;
      collectorNumber: string;
      rarity: string;
      releasedAt: string | null;
      legalities: Record<string, string>; // format -> legal | not_legal | banned | restricted
      prices: { usd: number | null; usdFoil: number | null; eur: number | null; tix: number | null }; // market prices of THIS printing; null when unpriced
      imageUrl: string | null;
      url: string;
    }
    
    interface ScryfallSearchPage {
      results: ScryfallCard[]; // the matching cards, in the order asked for, at most limit
      total: number | null; // the count Scryfall reports for the query (unique cards); null when it reports none
      page: number;
      pageCount: number | null;
      returned: number;
      warnings: string[]; // says when limit cut the rows (returned < total); empty when results are whole
    }