scryfall-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
scryfall-mcp
An MCP server that gives Claude (or any MCP client) accurate Magic: The Gathering card data from the Scryfall API: exact Oracle text, rulings, prices, format legality and full card search.
No API key is needed.
Tools
Tool | What it does |
| Search with full Scryfall syntax ( |
| One card by name (typos are fine): Oracle text, cost, prices, legality |
| The card's picture as image content, so the model can see it; both faces of double-faced cards |
| Official rulings for a card, for rules questions |
| A card's paper printings, cheapest first |
| A random card, optionally from a search query |
| Price a pasted decklist, break it down by type, and check legality in a format |
| Sets, newest first, with codes and release dates |
Results are trimmed to the fields a model reasons about. A raw Scryfall card object is several kilobytes; a search result here is a line or two per card.
Related MCP server: Scryfall MCP Server
Install
Requires uv, which also installs the right Python version for you.
git clone https://github.com/sjtan2302/scryfall-mcp.gitcd scryfall-mcp && uv syncThen register it with your MCP client. In the examples below, replace /path/to/scryfall-mcp with the full path of the folder you just cloned (run pwd inside it).
Claude Code
claude mcp add scryfall -- uv run --directory /path/to/scryfall-mcp scryfall-mcpClaude Desktop — add to ~/Library/Application Support/Claude/claude_desktop_config.json, then restart the app. Use the absolute path to uv (which uv), because desktop apps don't inherit your shell's PATH.
{
"mcpServers": {
"scryfall": {
"command": "/absolute/path/to/uv",
"args": ["run", "--directory", "/path/to/scryfall-mcp", "scryfall-mcp"]
}
}
}Things to try
"Find mono-green ramp creatures under $1 that are legal in Pauper."
"How does Blood Moon interact with Urza's Saga?"
"Here's my Commander list. What does it cost, and is anything banned?"
"What's the cheapest printing of Sol Ring?"
"Show me the Alpha printing of Shivan Dragon."
Development
uv run pytestThe tests are offline: they use canned responses, never the live API. To poke at the server by hand, use the MCP Inspector:
npx @modelcontextprotocol/inspector uv run scryfall-mcpLayout:
src/scryfall_mcp/client.py— HTTP client: headers, rate limiting, caching, error mappingsrc/scryfall_mcp/formatting.py— card-to-text formatting and the decklist parsersrc/scryfall_mcp/server.py— the MCP tools
Being a good Scryfall citizen
The client follows Scryfall's API guidelines:
identifies itself with
User-AgentandAcceptheaderswaits 100ms between requests and backs off on HTTP 429
caches responses in memory for an hour (prices change at most daily)
resolves decklists through the batch endpoint, 75 cards per request
returns card images whole and unaltered, with the artist credited, and only downloads them from Scryfall's own image host
Known limits:
Decklist prices use Scryfall's default printing of each card, which is not always the cheapest one.
analyze_decklistchecks each card's legality but not deck size or copy limits.
License
MIT. That covers this code only; card data and images belong to their owners and are subject to Scryfall's terms.
This project is not affiliated with Scryfall or Wizards of the Coast. Card data and prices come from Scryfall; per their terms, don't put that data behind a paywall.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Organize and track your Magic: The Gathering collection, decks, prices and imports.
Unofficial Deck of Cards MCP — wraps deckofcardsapi.com (free, no auth)
Scryfall MCP — Magic: The Gathering card database. Keyless. Scryfall requires a User-Agent and…
Market data tools for the MCP ecosystem: server stats, events, search, leaderboards, package trends.
Related MCP Servers
- AlicenseAqualityDmaintenanceMagic: The Gathering MCP server with card search, rules lookup, deck analysis, and Commander intelligence146MIT
- AlicenseAqualityCmaintenanceMCP server for searching and retrieving Magic: The Gathering card information via the Scryfall API, with support for field presets, multiple output formats, and automatic rate limiting.4MIT
- FlicenseNot gradedqualityDmaintenanceMCP server that searches and retrieves Magic: The Gathering card data from the Scryfall API.-
- AlicenseNot gradedqualityBmaintenanceUnified MCP server for Magic: The Gathering, combining Scryfall card search and pricing, EDHRec commander recommendations, Archidekt deck reading, and decklist validation into a single service.MIT