Scryfall MCP Server
The Scryfall MCP Server is a tool for interacting with the Scryfall API to access Magic: The Gathering card information:
Search for cards: Perform text-based searches to find matching cards
Retrieve card details: Get specific card information by Scryfall UUID or exact English name
Fetch random card: Obtain a random card from the Scryfall database
Access card rulings: View official rulings for a card by its Scryfall or Oracle ID
Get pricing information: Retrieve current price details (USD, USD foil, EUR, TIX) for cards by ID or exact name
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.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Scryfall MCP Server search for cards with 'dragon' in the name"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
Related MCP server: Scryfall MCP Server
Usage
The server can be run in two modes:
Standard stdio mode (default)
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 --sseConnecting 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/sseThe server will be available at:
SSE endpoint:
http://localhost:3000/sseMessage 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/scryfallOr in SSE mode:
docker run -i --rm -p 3000:3000 mcp/scryfall --sseLicense
Licensed under the MIT License.
Available Tools
7 toolsget_card_by_idA
Retrieve a card by its Scryfall ID (a 36-char UUID). Returns the card data in JSON.
Inputs: id (required).
get_card_by_nameA
Retrieve a card by its exact English name, e.g. 'Black Lotus'. Returns the card data in JSON. If multiple cards share that exact name, Scryfall returns one (usually the most relevant printing).
Inputs: name (required).
get_prices_by_idA
Retrieve price information for a card by its Scryfall ID. Returns JSON with usd, usd_foil, eur, tix, etc.
Inputs: id (required).
get_prices_by_nameA
Retrieve price information for a card by its exact name. Returns JSON with usd, usd_foil, eur, tix, etc.
Inputs: name (required).
get_rulingsA
Retrieve official rulings for a specified card by Scryfall ID or Oracle ID. Returns an array of rulings. Each ruling has a 'published_at' date and a 'comment' field.
Inputs: id (required).
random_cardA
Retrieve a random Magic card from Scryfall. Returns JSON data for that random card.
Inputs: no named parameters.
search_cardsA
Search for MTG cards by a text query, e.g. 'oracle text includes: draw cards'. Returns a list of matching cards (with basic fields: name, set, collector_number, ID). If no matches are found, returns an error message from Scryfall.
Inputs: query (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Every tool has a clearly distinct purpose with no ambiguity: get_card_by_id and get_card_by_name are for retrieving card data by different identifiers, get_prices_by_id and get_prices_by_name are for price data by different identifiers, get_rulings is for rulings, random_card is for random cards, and search_cards is for text-based searches. There is no overlap in functionality.
All tool names follow a consistent verb_noun pattern with underscores (snake_case), such as get_card_by_id, get_prices_by_name, and search_cards. The naming is predictable and uniform throughout the set.
With 7 tools, the count is well-scoped for a Scryfall server, covering core operations like retrieving cards by ID/name, getting prices, accessing rulings, fetching random cards, and searching. Each tool earns its place without being excessive or insufficient.
The tool set provides comprehensive coverage for card lookup, pricing, rulings, and search, with no dead ends. A minor gap exists in lacking update/delete operations, but this is reasonable as Scryfall is a read-only API, and agents can work around this for typical query tasks.
Maintenance
Related MCP Connectors
Enable secure connectivity between Sentry issues and debugging data, and LLM clients, using a Model Context Protocol (MCP) server.
Provide detailed Pokémon data and information through a standardized MCP interface. Enable LLMs an…
A Model Context Protocol server for Wix AI tools
Live TCG card and decklist prices for AI assistants. 22+ games, no account, ready-to-buy links.
Related MCP Servers
- AlicenseAqualityBmaintenanceA comprehensive Model Context Protocol server that integrates with the Scryfall API to provide Magic: The Gathering card data to AI assistants like Claude.141MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to search and retrieve Magic: The Gathering card data through the Scryfall API. Supports card searches, random card generation, autocomplete, set listings, and rulings lookup.221MIT
- AlicenseAqualityDmaintenanceEnables Claude to search and retrieve Magic: The Gathering card details, prices, set information, and random cards from Scryfall's database through natural language.42MIT
- AlicenseNot gradedqualityDmaintenanceProvides AI assistants with access to Magic: The Gathering card data via Scryfall API, enabling card search, image downloads, and database management.19 npm2Apache 2.0