scryfall-mcp
A mcp server for interacting with the Scryfall Magic The Gathering API
Documentation
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.
Usage
The server can be run in two modes:
1. Standard stdio mode (default)
2. 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/sse`
- Message 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.
Frequently asked questions
What is scryfall-mcp?
scryfall-mcp is A mcp server for interacting with the Scryfall Magic The Gathering API
How do I install scryfall-mcp?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is scryfall-mcp open source?
Yes — it is hosted on GitHub at https://github.com/cryppadotta/scryfall-mcp and has 34 stars.
Related MCP tools
🔥 Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM clients.
Use any LLMs (Large Language Models) for Deep Research. Support SSE API and MCP server.
Enhanced MCP server for interactive user feedback and command execution in AI-assisted development, featuring dual interface support (Web UI and Desktop Application) with intelligent environment detection and cross-platform compatibility.
A powerful Zotero AI and MCP plugin with ChatGPT, Gemini 3.7, Claude Fable 5, Claude Opus 5, DeepSeek V4, Grok, OpenRouter, Kimi k3, GLM 5.3, SiliconFlow, GPT-oss, Gemma 4, Qwen 3.8
Connect your browser to AI models. Just use Dia on Chrome, Arc or Firefox.
文颜 MCP Server 可以让 AI 自动将 Markdown 文章排版后发布至微信公众号。
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP