The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the MTG MCP Server listing page.
69 tools, 19 prompts, and 21 resources that give AI assistants deep access to Magic: The Gathering -- card data, combos, draft analytics, Commander metagame, competitive constructed, sideboard strategy, deck building, rules engine, and more. Works with Claude Code, Claude Desktop, or any MCP client.
Built on data from Scryfall, Commander Spellbook, 17Lands, EDHREC, Moxfield, Spicerack, and MTGGoldfish. See Data Sources & Attribution for details and usage terms.
Ask your AI assistant questions like these and it will use the MTG tools automatically:
Commander
Draft & Limited
Deck Building
Rules
Constructed
"Compare Muldrotha, Meren, and Karador as graveyard commanders"
"What are the best commons in Foundations for draft?"
More examples with real tool output in the Cookbook.
No API keys needed -- all data sources are public.
The fastest way to get started. No Python install required. Works on mobile.
Via the UI (Claude Desktop or claude.ai): Settings → Connectors → Add custom connector → paste the URL:
Via config file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows):
Or via the UI: Settings → MCP Servers → Add server → enter uvx mtg-mcp-server as the command.
Runs on your machine. Requires Python 3.12+.
Claude Code config for local development:
All settings use MTG_MCP_ environment variables. Everything works out of the box with sensible defaults.
See .env.example for all available options including base URLs, rate limits, and cache settings.
69 tools across 13 domains. See docs/TOOL_DESIGN.md for full input/output details.
scryfall_*)| Tool | Description |
|---|---|
search_cards | Search using full Scryfall syntax (f:commander id:sultai t:creature) |
card_details | Full card data by exact or fuzzy name |
card_price | Current USD, EUR, and foil prices |
card_rulings | Official rulings and clarifications |
set_info | Set metadata by code |
whats_new | Recently released or previewed cards |
bulk_*)| Tool | Description |
|---|---|
card_lookup | Rate-limit-free card lookup by exact name |
card_search | Search by name, type, or oracle text |
format_legality | Check if a card is legal in a format |
format_search | Search for cards legal in a specific format |
format_staples | Top-played cards in a format by EDHREC rank |
ban_list | Banned and restricted cards for a format |
card_in_formats | Card legality across all formats |
random_card | Random card, optionally filtered by format or type |
similar_cards | Find cards similar by type, keywords, or mana cost |
spellbook_*)| Tool | Description |
|---|---|
find_combos | Search for combos by card name and color identity |
combo_details | Step-by-step combo instructions by ID |
find_decklist_combos | Find combos present in a decklist |
estimate_bracket | Estimate Commander bracket for a decklist |
draft_*)| Tool | Description |
|---|---|
card_ratings | Win rates and draft data for cards in a set (17Lands) |
archetype_stats | Win rates by color pair for a set |
edhrec_*)| Tool | Description |
|---|---|
commander_staples | Most-played cards for a commander with synergy scores |
card_synergy | Synergy data for a card with a specific commander |
moxfield_*)| Tool | Description |
|---|---|
decklist | Fetch a full decklist by deck ID or URL |
deck_info | Deck metadata (name, format, author, dates) |
search_decks | Search public decks by format, keyword, or sort order |
user_decks | List a user's public decks |
spicerack_*)| Tool | Description |
|---|---|
recent_tournaments | Recent tournaments for a competitive format |
tournament_results | Full standings for a specific tournament |
format_decklists | Top-finishing decklists across recent tournaments |
goldfish_*)| Tool | Description |
|---|---|
metagame | Current metagame breakdown for a competitive format |
archetype_list | Sample decklist for an archetype |
format_staples | Most-played cards in a format with deck inclusion % |
deck_price | Estimated paper price for an archetype deck |
| Tool | Description |
|---|---|
commander_overview | Full commander profile from all sources |
evaluate_upgrade | Assess whether a card is worth adding to a deck |
card_comparison | Compare 2-5 cards side-by-side for a commander |
budget_upgrade | Budget-constrained upgrade suggestions ranked by synergy/$ |
commander_comparison | Compare 2-5 commanders head-to-head |
color_identity_staples | Top-played cards across all commanders in a color identity |
| Tool | Description |
|---|---|
theme_search | Find cards matching a mechanical or tribal theme |
build_around | Detect synergies from key cards and find complements |
complete_deck | Gap analysis and suggestions for a partial decklist |
tribal_staples | Best cards for a creature type in a color identity |
precon_upgrade | Analyze a precon and suggest swap pairs |
suggest_cuts | Identify the weakest cards to cut from a decklist |
deck_analysis | Full decklist health check (curve, colors, combos, budget) |
deck_validate | Validate a decklist against format construction rules |
suggest_mana_base | Suggest lands based on color pip distribution |
price_comparison | Compare prices across multiple cards |
| Tool | Description |
|---|---|
draft_pack_pick | Rank cards in a draft pack using 17Lands data |
set_overview | Top commons/uncommons and trap rares for a format |
sealed_pool_build | Suggest the best 40-card builds from a sealed pool |
draft_signal_read | Detect open colors from draft picks |
draft_log_review | Pick-by-pick review of a completed draft with grade |
| Tool | Description |
|---|---|
rotation_check | Standard rotation status and rotating cards |
metagame_snapshot | Tiered metagame breakdown with prices |
archetype_decklist | Stock decklist for a competitive archetype |
archetype_comparison | Compare 2-4 archetypes side-by-side |
format_entry_guide | Beginner guide for entering a competitive format |
suggest_sideboard | 15-card sideboard suggestions for a deck |
sideboard_guide | In/out plan for a specific matchup |
sideboard_matrix | Sideboard matrix across common matchups |
| Tool | Description |
|---|---|
rules_lookup | Look up rules by number or keyword |
keyword_explain | Explain a keyword with rules and example cards |
rules_interaction | How two mechanics interact with rule citations |
rules_scenario | Rules framework for a game scenario |
combat_calculator | Step-by-step combat phases with keyword interactions |
Built on FastMCP 3.x. Each data source is an independent sub-server mounted into a single orchestrator:
Services are pure async API clients. Providers register MCP tools. Workflows compose across services with partial failure tolerance. See docs/ARCHITECTURE.md for the full picture.
| Runtime | Python 3.12+, uv |
| MCP | FastMCP 3.2.x |
| HTTP | httpx (async) |
| Validation | Pydantic v2 |
| Logging | structlog |
| Tooling | mise, ruff, ty (Astral) |
| Testing | pytest, respx, pytest-asyncio |
| HTML parsing | selectolax |
| Doc | What it covers |
|---|---|
| COOKBOOK.md | Usage recipes -- Commander, draft, deck building, rules workflows |
| TOOL_DESIGN.md | Full reference for all 69 tools, 19 prompts, 21 resources |
| ARCHITECTURE.md | Technical architecture, FastMCP patterns, design decisions |
| SERVICE_CONTRACTS.md | API endpoints, rate limits, response shapes per backend |
| DATA_SOURCES.md | All data sources with auth, stability, and access patterns |
| CACHING_DESIGN.md | TTL cache strategy and Scryfall bulk data design |
| CONTRIBUTING.md | Development setup, TDD workflow, code style, PR process |
| CHANGELOG.md | Version history in Keep a Changelog format |
69 tools, 19 prompts, 21 resource templates. 1340 tests at 88% coverage.
| Phase | What | Status |
|---|---|---|
| 0 | Project scaffold | Done |
| 1 | Scryfall backend (4 tools) | Done |
| 2 | Spellbook + 17Lands + EDHREC backends (9 tools) | Done |
| 3 | Workflow tools -- commander, draft, deck (4 tools) | Done |
| 4 | TTL caching + Scryfall bulk data provider (2 tools) | Done |
| 5 | Analysis & comparison workflows, prompts, resources (4 tools) | Done |
| Branch A | Structured output, rules engine, validation tools (17 tools) | Done |
| Branch B | Format workflows -- deck building, commander depth, limited, constructed (11 tools) | Done |
| Moxfield | Moxfield decklist provider (4 tools) | Done |
| Spicerack | Tournament results provider (3 tools) | Done |
| MTGGoldfish | Metagame data provider (4 tools) | Done |
| v2.3.0 | Metagame workflows, sideboard tools, Moxfield search (9 tools) | Done |
This project composes data from multiple third-party services:
See THIRD_PARTY_NOTICES.md for full license texts and usage terms.
mtg-mcp-server is unofficial Fan Content permitted under the Fan Content Policy. Not approved/endorsed by Wizards. Portions of the materials used are property of Wizards of the Coast. © Wizards of the Coast LLC.
MIT -- see LICENSE