Scryfall MCP Server
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 Show me a random card"
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 that brings Magic: The Gathering card data directly into Claude Desktop. Ask Claude about any Magic card, and it will provide detailed information from Scryfall's comprehensive database.
What Can It Do?
Search for Cards - Find cards by name, type, color, mana cost, or any game characteristic you can think of
Get Card Details - View complete card information including prices, format legalities, and high-quality images
Explore Sets - Learn about Magic sets, their release dates, and what cards they contain
Random Cards - Discover random cards for deck inspiration or just for fun
Smart Caching - Previously viewed cards load instantly from a local cache
Resource Browser - Access your recently viewed cards through Claude's resource system
Related MCP server: Scryfall MCP Server
Installation
Prerequisites
You'll need Node.js and npm installed on your computer. npm is a tool that helps install and manage the software this server needs to run.
To install Node.js and npm:
On Mac:
Download from nodejs.org and run the installer, or
If you have Homebrew:
brew install node
On Windows:
Download from nodejs.org and run the installer
To verify it's installed, open a terminal and type: npm --version
Installation Steps
Clone or download this repository
Install dependencies:
npm installBuild the server:
npm run build
Configuration
For Claude Desktop
Locate your Claude Desktop config file:
macOS:
~/Library/Application\ Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Add the server configuration:
{ "mcpServers": { "scryfall": { "command": "node", "args": ["/absolute/path/to/your/project/dist/index.js"] } } }Replace
/absolute/path/to/your/projectwith the actual path to this project directory.Restart Claude Desktop
How to Use
Once you've installed and configured the server, you can simply ask Claude about Magic cards in natural language. Here are some examples:
Searching for Cards
"Search for Lightning Bolt"
"Find all red creatures with power 4 or greater"
"Show me cards with 'draw a card' in their text"
"Find blue instants that cost 2 mana"
Getting Card Information
"Tell me about Black Lotus"
"What are the format legalities for Sol Ring?"
"Show me the current price of Jace, the Mind Sculptor"
"Get details for Ragavan, Nimble Pilferer"
Exploring Sets
"What's in the Dominaria United set?"
"Tell me about set code MOM"
"Show me information about the latest set"
Random Discovery
"Show me a random card"
"Give me 3 random creatures"
"Surprise me with 5 random cards"
Accessing Recently Viewed Cards
Cards you've already looked up are cached locally and appear in Claude's resource browser, making them quick to access again without additional searches.
Technical Details
Available Tools
The server provides these tools that Claude can use:
search_cards - Search for cards using Scryfall's powerful search syntax
Supports searching by name, type, color, mana cost, card text, set, rarity, and more
Returns up to 10 results by default (configurable)
get_card_details - Get complete information about a specific card
Includes prices, legalities, images, and all card attributes
Uses smart caching to speed up repeated lookups
get_set_info - Get information about a Magic set
Requires the set code (like "dmu" for Dominaria United or "mom" for March of the Machine)
get_random_card - Get random cards
Can request multiple random cards at once
Great for deck inspiration or exploring the game
Resources Feature
The server implements MCP resources, which means:
Cards you look up are cached locally for 1 hour
Recently viewed cards appear in Claude's resource browser
Cached cards load instantly without making new API requests
The cache automatically cleans up old entries
Development
Running in Development Mode
npm run devBuilding
npm run buildProject Structure
├── src/
│ └── index.ts # Main server implementation
├── dist/ # Compiled JavaScript output
├── package.json # Node.js dependencies and scripts
├── tsconfig.json # TypeScript configuration
└── README.md # This filePerformance & Limits
Smart Caching
To improve speed and reduce unnecessary API calls, this server caches card information:
Cached cards load instantly
Cache expires after 1 hour
Up to 100 cards stored in memory at once
Scryfall API Rate Limits
This server uses Scryfall's free API, which allows:
Up to 100 requests per second
No API key required
The server automatically handles errors and rate limits gracefully.
Troubleshooting
The server isn't showing up in Claude Desktop
Check your configuration file - Make sure the path is correct and the JSON syntax is valid
On Mac:
cat ~/Library/Application\ Support/Claude/claude_desktop_config.jsonOn Windows: Open the file in Notepad and verify it looks correct
Verify the path is absolute - The path must be complete (like
/Users/yourname/projects/ScryfallMCP/dist/index.js), not relative (like./dist/index.js)Make sure it built successfully:
npm run buildRestart Claude Desktop completely - Quit the app entirely and reopen it
Claude says "Unknown tool" or the tools don't work
This usually means Claude Desktop didn't reload the configuration
Try restarting Claude Desktop again
Check that the
dist/index.jsfile exists after runningnpm run build
API or connection errors
Check your internet connection - The server needs to reach Scryfall's API
Visit https://scryfall.com to make sure their service is up
Look at the console output when running
npm run devto see detailed error messages
Build or installation problems
"npm: command not found" - You need to install Node.js and npm (see Prerequisites above)
Build failures - Try deleting the
node_modulesfolder and runningnpm installagainPermission errors - Make sure you have permission to read and execute files in the project folder
Contributing
Want to improve this server? Contributions are welcome!
Fork the repository
Create a feature branch
Make your changes
Test thoroughly
Submit a pull request with a clear description of what you've added and why
License
This project is licensed under the MIT License.
Acknowledgments
Scryfall for providing the excellent Magic: The Gathering API
Model Context Protocol for the MCP specification
Anthropic for Claude and MCP support
Available Tools
4 toolsget_card_detailsA
Get detailed information about a specific card by exact name
Inputs: name (required).
get_random_cardA
Get one or more random Magic: The Gathering cards
Inputs: count.
get_set_infoC
Get information about a Magic: The Gathering set
Inputs: set_code (required).
search_cardsA
Search for Magic: The Gathering cards by name, type, or other criteria
Inputs: query (required), limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: get_card_details for exact card lookup, get_random_card for random cards, get_set_info for set metadata, and search_cards for flexible queries. No overlap in functionality.
All tools follow a consistent verb_noun pattern (get_card_details, get_random_card, get_set_info, search_cards). The use of 'get' and 'search' as verbs is uniform and predictable.
With 4 tools, the server is well-scoped for a card database. The tools cover the primary needs: searching, getting details, random retrieval, and set information. This is an effective small set without bloat.
The core functionalities are covered: search, detail, random, and set info. Minor gaps like fetching by ID, rulings, or card art exist but do not break typical workflows. Agents can work around these.
Maintenance
Related MCP Connectors
Live TCG card and decklist prices for AI assistants. 22+ games, no account, ready-to-buy links.
Magic: The Gathering card search, rules, rulings, deck analysis, brackets, and combo detection.
Scryfall MCP — Magic: The Gathering card database. Keyless. Scryfall requires a User-Agent and…
MTG market data: search 114K+ cards, price signals, AI analysis. Free tier available.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables Magic: The Gathering players to manage decks and access card information through Claude, supporting gameplay actions like drawing cards and mulligans while providing Scryfall API integration for card lookups.15-
- 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.2275 npm1MIT
- AlicenseNot gradedqualityDmaintenanceEnables fuzzy lookup of Magic: The Gathering cards by name using the Scryfall API, returning card details including type, oracle text, mana value, and images.MIT
- AlicenseNot gradedqualityDmaintenanceProvides AI assistants with access to Magic: The Gathering card data via Scryfall API, enabling card search, image downloads, and database management.60 npm2Apache 2.0