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.Run this in a terminal, then sign in when the browser opens. Claude Code keeps its own sign-in (a claude.ai sign-in does not carry over), so add only this one server. Adding the Bowmark plugin as well lists every tool twice.
claude mcp add --transport http bowmark-scryfall https://api.bowmark.ai/mcp/site/scryfallPress the button, or add this to ~/.cursor/mcp.json.
{
"mcpServers": {
"bowmark-scryfall": {
"url": "https://api.bowmark.ai/mcp/site/scryfall"
}
}
}Press the button, or run this in a terminal.
code --add-mcp '{"name":"bowmark-scryfall","type":"http","url":"https://api.bowmark.ai/mcp/site/scryfall"}'Run this in a terminal.
codex mcp add bowmark-scryfall --url https://api.bowmark.ai/mcp/site/scryfallIn Claude, open Plugins → Add → Add custom connector, paste this URL, and pick Sign in now.
https://api.bowmark.ai/mcp/site/scryfallIn ChatGPT, open Plugins, press +, choose Add custom MCP server and paste this URL.
https://api.bowmark.ai/mcp/site/scryfallAny MCP client that takes a remote (streamable HTTP) server: give it this URL.
https://api.bowmark.ai/mcp/site/scryfallFunctions
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"}'import { bowmark } from "@bowmark/web"; const result = await bowmark.providers.scryfall.getCard("Lightning Bolt");import asyncio from bowmark_web import bowmark result = asyncio.run(bowmark.providers.scryfall.getCard("Lightning Bolt"))Responsereturns ScryfallCardinterface 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"}'import { bowmark } from "@bowmark/web"; const result = await bowmark.providers.scryfall.searchCards("lightning bolt");import asyncio from bowmark_web import bowmark result = asyncio.run(bowmark.providers.scryfall.searchCards("lightning bolt"))Responsereturns ScryfallSearchPageinterface 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 }