mtg-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., "@mtg-mcp-server Compare Muldrotha and Meren as commanders"
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.
mtg-mcp-server
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.
Table of Contents
What You Can Do — example prompts and real tool output
Install — hosted, Claude Code, Claude Desktop, PyPI, development
Configuration — environment variables and feature flags
Tools — all 69 tools across 13 domains
Architecture — FastMCP 3.x mount system
Stack — Python 3.12+, FastMCP, httpx, Pydantic
Development — mise commands for testing, linting, typechecking
Documentation — cookbook, architecture, tool reference, and more
Status — current tool/test counts
Data Sources & Attribution — Scryfall, Spellbook, 17Lands, EDHREC, Moxfield, Spicerack, MTGGoldfish
Related MCP server: MTG-MCP
What You Can Do
Ask your AI assistant questions like these and it will use the MTG tools automatically:
Commander
"Show me everything about Muldrotha as a commander"
"What are the best budget upgrades for my Atraxa deck under $5?"
"Compare Muldrotha vs Meren vs Karador as graveyard commanders"
Draft & Limited
"What are the best commons in Foundations for draft?"
"Rank these cards for my draft pack: Bitter Triumph, Monstrous Rage, Torch the Tower"
"Build a sealed deck from this pool: [list]"
Deck Building
"Validate my Modern decklist"
"Suggest a mana base for my 3-color Commander deck"
"Find cards that synergize with sacrifice themes in Golgari"
Rules
"How do deathtouch and trample interact?"
"Resolve this combat scenario: my 3/3 with first strike blocks their 5/5 with trample"
Constructed
"What does the Modern metagame look like right now?"
"Show me the stock Boros Energy decklist for Modern"
"Build me a sideboard for this Pioneer deck"
"Give me a sideboard guide for my deck against Azorius Control"
See It in Action
"Compare Muldrotha, Meren, and Karador as graveyard commanders"
Muldrotha Meren Karador
Mana Cost {3}{B}{G}{U} {2}{B}{G} {5}{W}{B}{G}
Color Identity BGU (Sultai) BG (Golgari) BGW (Abzan)
Stats 6/6 3/4 3/4
EDHREC Rank #1,137 #1,476 #9,894
Total Decks 22,460 19,919 6,305
Combo Count 10 1 10
Top Staples:
Muldrotha Spore Frog (+53%), Sakura-Tribe Elder (+36%), Eternal Witness (+27%)
Meren Spore Frog (+70%), Sakura-Tribe Elder (+55%), Viscera Seer (+52%)
Karador Karmic Guide (+51%), Satyr Wayfinder (+49%), Sun Titan (+48%)"What are the best commons in Foundations for draft?"
Foundations (FDN) — PremierDraft · Median GIH WR: 54.7%
Rank Card Color GIH WR ALSA IWD Games
1 Bake into a Pie B 58.4% 3.1 +5.3% 354,741
2 Burst Lightning R 58.2% 3.3 +3.0% 338,888
3 Refute U 58.1% 5.3 +4.3% 321,280
4 Stab B 57.9% 3.4 +4.5% 376,569
5 Dazzling Angel W 57.8% 3.2 +2.4% 317,648
Trap rares: Doubling Season (39.4%), Thousand-Year Storm (35.2%) ...More examples with real tool output in the Cookbook.
Install
No API keys needed -- all data sources are public.
Hosted (zero setup)
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:
https://mtg-mcp-server.fastmcp.app/mcpVia config file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows):
{
"mcpServers": {
"mtg": {
"type": "url",
"url": "https://mtg-mcp-server.fastmcp.app/mcp"
}
}
}Claude Code
claude mcp add mtg -- uvx mtg-mcp-serverOr via the UI: Settings → MCP Servers → Add server → enter uvx mtg-mcp-server as the command.
Claude Desktop (local)
Runs on your machine. Requires Python 3.12+.
{
"mcpServers": {
"mtg": {
"command": "uvx",
"args": ["mtg-mcp-server"]
}
}
}PyPI
# Run directly (no install)
uvx mtg-mcp-server
# Install globally
uv tool install mtg-mcp-server
# Add to a project
uv add mtg-mcp-serverDevelopment
git clone https://github.com/j4th/mtg-mcp-server.git
cd mtg-mcp-server
mise install # Installs Python 3.12, uv, ruff, ty
mise run setup # Creates venv, installs dependencies
uv run mtg-mcp-server # Run the serverClaude Code config for local development:
{
"mcpServers": {
"mtg": {
"command": "uv",
"args": ["run", "--directory", "/path/to/mtg-mcp-server", "mtg-mcp-server"]
}
}
}Configuration
All settings use MTG_MCP_ environment variables. Everything works out of the box with sensible defaults.
# Feature flags for optional backends
MTG_MCP_ENABLE_EDHREC=false # EDHREC (scrapes undocumented endpoints)
MTG_MCP_ENABLE_17LANDS=false # 17Lands (rate-limits aggressively)
MTG_MCP_ENABLE_BULK_DATA=false # Scryfall bulk data (~30MB download on first use)
MTG_MCP_ENABLE_RULES=false # Comprehensive Rules engine
# Pass env vars through uvx
uvx --env MTG_MCP_ENABLE_EDHREC=false mtg-mcp-serverSee .env.example for all available options including base URLs, rate limits, and cache settings.
Tools
69 tools across 13 domains. See docs/TOOL_DESIGN.md for full input/output details.
Card Data (scryfall_*)
Tool | Description |
| Search using full Scryfall syntax ( |
| Full card data by exact or fuzzy name |
| Current USD, EUR, and foil prices |
| Official rulings and clarifications |
| Set metadata by code |
| Recently released or previewed cards |
Bulk Data (bulk_*)
Tool | Description |
| Rate-limit-free card lookup by exact name |
| Search by name, type, or oracle text |
| Check if a card is legal in a format |
| Search for cards legal in a specific format |
| Top-played cards in a format by EDHREC rank |
| Banned and restricted cards for a format |
| Card legality across all formats |
| Random card, optionally filtered by format or type |
| Find cards similar by type, keywords, or mana cost |
Combos (spellbook_*)
Tool | Description |
| Search for combos by card name and color identity |
| Step-by-step combo instructions by ID |
| Find combos present in a decklist |
| Estimate Commander bracket for a decklist |
Draft Analytics (draft_*)
Tool | Description |
| Win rates and draft data for cards in a set (17Lands) |
| Win rates by color pair for a set |
Commander Metagame (edhrec_*)
Tool | Description |
| Most-played cards for a commander with synergy scores |
| Synergy data for a card with a specific commander |
Decklists (moxfield_*)
Tool | Description |
| Fetch a full decklist by deck ID or URL |
| Deck metadata (name, format, author, dates) |
| Search public decks by format, keyword, or sort order |
| List a user's public decks |
Tournament Data (spicerack_*)
Tool | Description |
| Recent tournaments for a competitive format |
| Full standings for a specific tournament |
| Top-finishing decklists across recent tournaments |
Metagame (goldfish_*)
Tool | Description |
| Current metagame breakdown for a competitive format |
| Sample decklist for an archetype |
| Most-played cards in a format with deck inclusion % |
| Estimated paper price for an archetype deck |
Commander Workflows
Tool | Description |
| Full commander profile from all sources |
| Assess whether a card is worth adding to a deck |
| Compare 2-5 cards side-by-side for a commander |
| Budget-constrained upgrade suggestions ranked by synergy/$ |
| Compare 2-5 commanders head-to-head |
| Top-played cards across all commanders in a color identity |
Deck Building
Tool | Description |
| Find cards matching a mechanical or tribal theme |
| Detect synergies from key cards and find complements |
| Gap analysis and suggestions for a partial decklist |
| Best cards for a creature type in a color identity |
| Analyze a precon and suggest swap pairs |
| Identify the weakest cards to cut from a decklist |
| Full decklist health check (curve, colors, combos, budget) |
| Validate a decklist against format construction rules |
| Suggest lands based on color pip distribution |
| Compare prices across multiple cards |
Draft Workflows
Tool | Description |
| Rank cards in a draft pack using 17Lands data |
| Top commons/uncommons and trap rares for a format |
| Suggest the best 40-card builds from a sealed pool |
| Detect open colors from draft picks |
| Pick-by-pick review of a completed draft with grade |
Constructed Workflows
Tool | Description |
| Standard rotation status and rotating cards |
| Tiered metagame breakdown with prices |
| Stock decklist for a competitive archetype |
| Compare 2-4 archetypes side-by-side |
| Beginner guide for entering a competitive format |
| 15-card sideboard suggestions for a deck |
| In/out plan for a specific matchup |
| Sideboard matrix across common matchups |
Rules Engine
Tool | Description |
| Look up rules by number or keyword |
| Explain a keyword with rules and example cards |
| How two mechanics interact with rule citations |
| Rules framework for a game scenario |
| Step-by-step combat phases with keyword interactions |
Architecture
Built on FastMCP 3.x. Each data source is an independent sub-server mounted into a single orchestrator:
MTG (orchestrator)
├── scryfall (namespace: scryfall_) -> Scryfall REST API
├── spellbook (namespace: spellbook_) -> Commander Spellbook API
├── draft (namespace: draft_) -> 17Lands data
├── edhrec (namespace: edhrec_) -> EDHREC (scraped, feature-flagged)
├── bulk (namespace: bulk_) -> Scryfall Oracle Cards bulk data
├── moxfield (namespace: moxfield_) -> Moxfield (reverse-engineered, feature-flagged)
├── spicerack (namespace: spicerack_) -> Spicerack tournament API
├── goldfish (namespace: goldfish_) -> MTGGoldfish (scraped, feature-flagged)
└── workflows (no namespace) -> 36 tools (31 composed + 5 rules)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.
Stack
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 |
Development
git clone https://github.com/j4th/mtg-mcp-server.git
cd mtg-mcp-server
mise install # Installs Python, uv, ruff, ty
mise run setup # Creates venv, installs dependencies
mise run check # Full quality gate: lint + typecheck + tests
mise run check:quick # Fast gate: lint + typecheck + affected tests only
mise run test # All tests with coverage
mise run test:quick # Only tests affected by recent changes
mise run lint # ruff check + format check
mise run typecheck # ty check
mise run dev # MCP Inspector for interactive testing
mise run fix # Auto-fix lint and format issuesDocumentation
Doc | What it covers |
Usage recipes -- Commander, draft, deck building, rules workflows | |
Full reference for all 69 tools, 19 prompts, 21 resources | |
Technical architecture, FastMCP patterns, design decisions | |
API endpoints, rate limits, response shapes per backend | |
All data sources with auth, stability, and access patterns | |
TTL cache strategy and Scryfall bulk data design | |
Development setup, TDD workflow, code style, PR process | |
Version history in Keep a Changelog format |
Status
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 |
Data Sources & Attribution
This project composes data from multiple third-party services:
Scryfall -- Card database, prices, rulings, search, bulk data (API guidelines)
Commander Spellbook -- Combo search, bracket estimation (MIT license)
17Lands -- Draft card ratings, archetype win rates (usage guidelines)
EDHREC -- Commander staples, synergy scores (undocumented endpoints, behind feature flag)
Moxfield -- Public decklists and deck search (reverse-engineered API, behind feature flag)
Spicerack -- Tournament results and standings (documented API)
MTGGoldfish -- Competitive metagame data, archetypes, format staples (HTML scraping, behind feature flag)
See THIRD_PARTY_NOTICES.md for full license texts and usage terms.
Disclaimer
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.
License
MIT -- see LICENSE
Available Tools
74 toolsarchetype_comparisonARead-onlyIdempotent
Compare 2-4 competitive archetypes side-by-side.
Shows price, colors, key cards, shared staples, and differences.
Inputs: format (required), archetypes (required), response_format.
archetype_decklistARead-onlyIdempotent
Get the stock decklist for a competitive archetype.
Returns a full decklist (mainboard + sideboard) with deck metadata and total price when available. Archetype name is fuzzy-matched.
Inputs: format (required), archetype (required), response_format.
budget_upgradeARead-onlyIdempotent
Suggest budget-friendly upgrades for a commander deck.
Ranks EDHREC staples by synergy-per-dollar within the given budget ceiling. Requires EDHREC (for staples) and Scryfall (for prices).
Inputs: budget (required), commander_name (required), num_suggestions, response_format.
build_aroundARead-onlyIdempotent
Find synergistic cards for 1-5 build-around cards in any format.
Analyzes oracle text for key mechanics, searches for synergies, and checks combo potential. Groups results by role (enablers, payoffs, support).
Inputs: cards (required), format (required), limit, budget, +1 more.
bulk_ban_listARead-onlyIdempotent
Get the banned and restricted cards for a format.
Returns alphabetically sorted lists of banned and restricted cards, including their type lines.
Inputs: format (required).
bulk_card_in_formatsARead-onlyIdempotent
Show a card's legality across all Magic formats.
Returns a table with the card's legality status in each format, ordered with the most common formats first.
Inputs: card_name (required).
bulk_card_lookupARead-onlyIdempotent
Look up a Magic card by exact name using Scryfall bulk data.
Returns full card details including mana cost, type, oracle text, colors, power/toughness, prices, legalities, and EDHREC rank. Case-insensitive.
Inputs: name (required), response_format.
bulk_card_searchCRead-onlyIdempotent
Search for Magic cards in Scryfall bulk data.
Inputs: query (required), limit, search_field, response_format.
bulk_format_legalityARead-onlyIdempotent
Batch legality check for cards in a specific format.
Returns a markdown table showing the legality status of each card in the specified format. Handles common format aliases (e.g. 'edh' for 'commander').
Inputs: cards (required), format (required).
bulk_format_searchARead-onlyIdempotent
Search for legal cards in a specific format using natural language.
Combines format legality filtering with name/type/text search and optional color identity, price, and rarity constraints. Results are sorted by EDHREC rank (most popular first).
Inputs: query (required), format (required), limit, rarity, +3 more.
bulk_format_staplesARead-onlyIdempotent
Find the most popular (staple) cards legal in a format.
Ranking adapts to the format: singleton formats (Commander, Brawl, Oathbreaker) use EDHREC rank; competitive formats use MTGGoldfish tournament frequency when available, falling back to a mana-efficiency heuristic.
Inputs: format (required), color, limit, card_type, +2 more.
bulk_random_cardARead-onlyIdempotent
Get a random Magic card, optionally filtered by format, color, type, and rarity.
Returns full card details in the same format as card_lookup.
Inputs: format, rarity, card_type, color_identity.
bulk_similar_cardsBRead-onlyIdempotent
Find cards similar to a given card.
Scores similarity based on shared keywords, type words, CMC proximity, and oracle text overlap. Optionally filter by format legality and price.
Inputs: card_name (required), limit, format, max_price, +1 more.
card_comparisonARead-onlyIdempotent
Compare 2-5 cards side-by-side for a specific commander deck.
Shows mana cost, type, synergy, inclusion rate, combo count, and price for each card. Scryfall and Spellbook required; EDHREC optional.
Inputs: cards (required), commander_name (required), response_format.
color_identity_staplesARead-onlyIdempotent
Top cards across ALL commanders in a color identity.
Uses EDHREC aggregated data when available, falls back to EDHREC rank from bulk data.
Inputs: color_identity (required), limit, category, response_format.
combat_calculatorARead-onlyIdempotent
Calculate combat step-by-step with keyword interactions.
Resolves declare attackers → declare blockers → damage steps → state-based actions. Looks up card keywords from bulk data if card names are provided.
Inputs: blockers (required), attackers (required), keywords, response_format.
commander_comparisonARead-onlyIdempotent
Compare 2-5 commanders head-to-head: stats, combos, staples, popularity.
Side-by-side comparison table with mana cost, color identity, EDHREC rank, combo count, and shared/unique staples.
Inputs: commanders (required), response_format.
commander_overviewARead-onlyIdempotent
Comprehensive commander profile combining data from all available sources.
Returns card details, top combos, EDHREC staples, and synergy scores. Degrades gracefully if optional sources (EDHREC, Spellbook) are unavailable.
Inputs: commander_name (required), response_format.
complete_deckARead-onlyIdempotent
Identify gaps in a partial decklist and suggest cards to fill them.
Analyzes mana curve, card roles, and format-specific ratios, then suggests cards for underrepresented categories.
Inputs: format (required), decklist (required), budget, commander, +1 more.
cost_reduction_checkARead-onlyIdempotent
Apply a cost reducer to costs mechanically, and say what it does NOT reduce.
Rule 601.2f: a generic cost reduction reduces the generic component only. Coloured pips, {C}, hybrids and {X} survive it — two reducers do not take {U}{B} to {0}. Use this instead of doing the arithmetic in prose; the prose version has been wrong in both directions on the same card.
Inputs: reducer_card (required), keyword, target_cards, target_costs, +1 more.
deck_analysisARead-onlyIdempotent
Full decklist health check — mana curve, colors, combos, bracket, budget, synergy.
Uses all available backends: Scryfall bulk data for rate-limit-free card resolution, Scryfall API as fallback, Spellbook for combos and bracket estimation, EDHREC for synergy scores. Degrades gracefully if optional backends are unavailable.
Pass declared_categories for any count the deck's owner asserted: it is measured
against the list and reported as drift. A number stated once and never re-checked is
how a deck ends up evaluated against a composition it no longer has.
Inputs: decklist (required), commander_name (required), response_format, declared_categories.
deck_audit_bundleARead-onlyIdempotent
Full mechanical audit battery in ONE call — validation, analysis, combos, bracket, commander rulings, v3 simulation.
Runs the six sections concurrently and returns one report where every
section carries an explicit ok/error status and echoes the parameters it
used. A failed section NEVER fails the whole bundle: it is reported as
ok: false with its error, next to the sections that succeeded.
Simulation is forced to v3 (commander_colors + tutor_aware=True).
The rulings section ships the commander's official rulings and oracle text
with the audit: confront each ruling with your own claims — fetching them
is not reading them.
Inputs: decklist (required), commander (required), commander_colors (required), seed, +3 more.
deck_mechanic_mapARead-onlyIdempotent
Map the mechanics a deck SHARES — keyword carriers, tribal counts, trigger reach.
Every other tool here is indexed by card. This one is indexed by mechanic, and answers what per-card data cannot:
how many cards carry the commander's keyword (a deck with 15 carriers is not a loop toward one card, it is 15 destinations);
what a cost reducer ACTUALLY reduces, counted rather than assumed (rule 601.2f: a generic reduction never touches coloured pips);
who really has the tribal type, including changelings — every creature type by rule 702.73a, and invisible to a type-line search;
which triggers multiply per attacking creature versus firing once per combat.
Run this before writing any description of how a deck works.
Inputs: decklist (required), commander (required), response_format.
deck_validateARead-onlyIdempotent
Validate a decklist against a format's construction rules.
Checks legality, deck size, copy limits, color identity (Commander), singleton rules, and Pauper rarity. Returns VALID or INVALID with actionable error messages.
Inputs: format (required), decklist (required), commander, sideboard, +1 more.
draft_archetype_statsARead-onlyIdempotent
Get win rates by color pair/archetype for a draft set.
Note: start_date and end_date are required by the 17Lands API.
Inputs: end_date (required), set_code (required), start_date (required), event_type.
draft_card_ratingsARead-onlyIdempotent
Get win rate and draft performance data for cards in a set.
Key metrics: GIH WR (ever_drawn_win_rate), ALSA (avg_seen), OH WR (opening_hand_win_rate), IWD (drawn_improvement_win_rate).
Note: 17Lands data skews toward above-average players (~56% baseline WR). Cards with <500 games may not have reliable data.
Inputs: set_code (required), limit, sort_by, event_type, +1 more.
draft_log_reviewARead-onlyIdempotent
Review a completed draft — pick-by-pick GIH WR analysis and key decision points.
Identifies where you could have taken a higher-WR card, pivot points, and overall draft grade.
Inputs: picks (required), set_code (required), final_deck, response_format.
draft_pack_pickARead-onlyIdempotent
Rank cards in a draft pack using 17Lands win rate data.
Provides GIH WR, ALSA, IWD stats, and color fit analysis based on current picks. Requires 17Lands to be enabled.
Inputs: pack (required), set_code (required), current_picks, response_format.
draft_signal_readARead-onlyIdempotent
Analyze draft picks and recommend a direction based on color signals.
Uses ALSA data to detect which colors are open (cards seen later than expected = open).
Inputs: picks (required), set_code (required), current_pack, response_format.
edhrec_card_synergyARead-onlyIdempotent
Get synergy data for a specific card with a specific commander.
Shows how synergistic the card is with the commander compared to its general popularity, plus how many decks include it.
Inputs: card_name (required), commander_name (required).
edhrec_commander_staplesARead-onlyIdempotent
Get the most-played cards for a commander with synergy scores and inclusion rates.
Shows which cards are most commonly played with this commander and how synergistic they are (vs. generic popularity).
Inputs: commander_name (required), limit, category, response_format.
evaluate_upgradeARead-onlyIdempotent
Assess whether a card is worth adding to a specific commander deck.
Returns card details, price, synergy score, and combos enabled for the caller to assess. Degrades gracefully if optional sources (EDHREC, Spellbook) are unavailable.
Inputs: card_name (required), commander_name (required), response_format.
format_entry_guideARead-onlyIdempotent
Get a beginner-oriented guide for entering a competitive format.
Shows archetypes sorted by budget accessibility, cross-archetype staples (buy once, play everywhere), and format rules summary.
Inputs: format (required), budget, response_format.
goldfish_archetype_listBRead-onlyIdempotent
Get a sample decklist for an archetype in a format.
Returns deck metadata (author, event, result, date) and the full mainboard and sideboard card list.
Inputs: format (required), archetype (required), response_format.
goldfish_deck_priceARead-onlyIdempotent
Get the estimated paper price for an archetype deck.
Returns the total estimated cost of the deck based on current card prices from MTGGoldfish.
Inputs: format (required), archetype (required), response_format.
goldfish_format_staplesARead-onlyIdempotent
Get the most-played cards in a format with deck inclusion percentages.
Shows which cards appear most frequently across all archetypes in the format, with average copies played per deck.
Inputs: format (required), limit, response_format.
goldfish_metagameARead-onlyIdempotent
Get the current metagame breakdown for a competitive format.
Shows top archetypes with meta share percentages, deck counts, and estimated paper prices.
Inputs: format (required), response_format.
hand_probabilityARead-onlyIdempotent
Compute the exact hypergeometric probability of seeing a card category.
Answers questions like "what are the odds I've seen at least 1 of my 3 tutors by turn 4?" via the closed-form hypergeometric distribution.
Pass decklist + category_filter to have the count MEASURED rather than
stated. A probability computed from a number nobody re-checked is the failure this
guards against: a category declared at 13 that had quietly become 11 moved the
headline statistic by 6.5 points, unnoticed across every revision.
Inputs: copies, decklist, deck_size, max_count, +3 more.
keyword_explainARead-onlyIdempotent
Explain an MTG keyword with rules text, examples, and interactions.
Returns the rules definition, reminder text, and up to 5 example cards from bulk data.
Inputs: keyword (required), response_format.
metagame_snapshotARead-onlyIdempotent
Get the current metagame breakdown for a competitive format.
Shows top archetypes with meta share %, tier classification, and prices. Uses MTGGoldfish as primary source with Spicerack tournament data as fallback.
Inputs: format (required), response_format.
moxfield_deck_infoARead-onlyIdempotent
Get metadata for a Moxfield deck (name, format, author, dates).
Returns deck metadata without the full card list. Use decklist
for the complete card list.
Inputs: deck_id (required).
moxfield_decklistARead-onlyIdempotent
Fetch a full decklist from Moxfield by deck ID or URL.
Returns the complete decklist organized by board (commanders, mainboard, sideboard, companions) with card names and quantities.
Inputs: deck_id (required).
moxfield_search_decksARead-onlyIdempotent
Search public Moxfield decks by format, keyword, or sort order.
Returns a paginated list of deck summaries with name, format, author, colors, and card counts.
Inputs: page, sort, query, format, +1 more.
moxfield_user_decksARead-onlyIdempotent
List a user's public decks on Moxfield.
Verifies the user exists, then searches for their public decks. Optionally filter by format.
Inputs: username (required), format.
pingARead-onlyIdempotent
Health check — returns 'pong'.
Inputs: no named parameters. Returns: result
precon_upgradeBRead-onlyIdempotent
Analyze and upgrade a Commander precon — identify weakest cards, suggest replacements.
Pairs each upgrade with a specific cut, explaining the synergy improvement.
Inputs: decklist (required), commander (required), budget, num_upgrades, +1 more.
price_comparisonARead-onlyIdempotent
Compare prices across multiple cards using Scryfall bulk data.
Returns a markdown table with USD, USD foil, and EUR prices sorted by USD descending.
Inputs: cards (required), response_format.
rotation_checkARead-onlyIdempotent
Check Standard rotation status and identify which cards are rotating.
Shows sets currently in Standard with rotation dates. If cards provided, identifies which are in rotating sets and suggests replacements.
Inputs: cards, response_format.
rules_interactionARead-onlyIdempotent
Explain how two mechanics or cards interact under MTG rules.
Returns relevant rules, step-by-step resolution, and common misconceptions.
Inputs: mechanic_a (required), mechanic_b (required), response_format.
rules_lookupARead-onlyIdempotent
Look up MTG Comprehensive Rules by number or keyword search.
Returns matching rules with full text, parent context, and subrules.
Inputs: query (required), limit, section, response_format.
rules_scenarioARead-onlyIdempotent
Resolve a game scenario step-by-step using MTG rules.
Covers priority, stack resolution, state-based actions, and triggers with rule citations.
Inputs: scenario (required), response_format.
scryfall_card_detailsARead-onlyIdempotent
Get full details for a Magic card by exact or fuzzy name.
Inputs: name (required), fuzzy, response_format.
scryfall_card_priceARead-onlyIdempotent
Get current prices for a Magic card. Prices update once per day.
Inputs: name (required).
scryfall_card_rulingsARead-onlyIdempotent
Get official rulings and clarifications for a Magic card.
Inputs: name (required).
scryfall_search_cardsARead-onlyIdempotent
Search for Magic cards using Scryfall syntax.
Examples: "f:commander id:sultai t:creature", "o:destroy t:instant cmc<=3" See https://scryfall.com/docs/syntax for full syntax reference.
Inputs: query (required), page, limit, response_format.
scryfall_set_infoARead-onlyIdempotent
Get metadata for a Magic set by its code.
Inputs: set_code (required).
scryfall_whats_newARead-onlyIdempotent
Find recently printed or released Magic cards.
Searches Scryfall for cards released within the given number of days. Optionally filter by set or format legality.
Inputs: days, limit, format, set_code, +1 more.
sealed_pool_buildARead-onlyIdempotent
Build 1-3 decks from a sealed pool using card quality and color pair analysis.
Evaluates each 2-color pair, selects best cards, and suggests land splits. Uses 17Lands data when available for card quality scoring.
Inputs: pool (required), set_code (required), response_format.
set_overviewARead-onlyIdempotent
Draft format overview — top commons/uncommons and trap rares.
Uses 17Lands card ratings to provide a data-driven format breakdown. Requires 17Lands to be enabled.
Inputs: set_code (required), event_type, response_format.
sideboard_guideARead-onlyIdempotent
Get a specific sideboard in/out plan for a named matchup.
Given a full 75 and a matchup archetype, produces specific boarding instructions with reasoning.
Inputs: format (required), matchup (required), decklist (required), sideboard (required), +1 more.
sideboard_matrixARead-onlyIdempotent
Generate a sideboard matrix for a deck across common matchups.
Matrix shows which sideboard cards come IN/OUT/FLEX for each matchup. Auto-detects top matchups from metagame data or uses provided matchup list.
Inputs: format (required), decklist (required), sideboard (required), matchups, +1 more.
simulate_opening_handsARead-onlyIdempotent
Monte Carlo simulation of opening hands, mulligans, and early mana curve.
Simulates Commander-free-mulligan opening hands and a greedy 5-turn
goldfish to estimate keep rates, kept-hand land distribution, and
spendable mana per turn. Exclude the commander from decklist: it
simulates a 99-card Commander library.
Inputs: decklist (required), seed, keep_rule, max_lands, +9 more.
spellbook_combo_detailsARead-onlyIdempotent
Get detailed steps for a specific combo by its Spellbook ID.
Use an ID from find_combos results (e.g. "1414-2730-5131-5256").
Inputs: combo_id (required).
spellbook_estimate_bracketARead-onlyIdempotent
Estimate the Commander bracket (power level) for a decklist.
Provide commander name(s) and a list of card names in the main deck. Returns bracket tag and any bracket-relevant findings.
Inputs: decklist (required), commanders (required).
spellbook_find_combosARead-onlyIdempotent
Search for known combos involving a specific card.
Optionally filter by color identity (e.g. "sultai", "BUG", "wubrg").
Returns up to limit combos with cards involved and results produced.
Inputs: card_name (required), limit, color_identity.
spellbook_find_decklist_combosARead-onlyIdempotent
Find combos present in (or nearly present in) a Commander decklist.
Provide commander name(s) and a list of card names in the main deck. Returns combos that are fully included and those that are almost included.
Inputs: decklist (required), commanders (required).
spicerack_format_decklistsARead-onlyIdempotent
Find top-performing decklists across recent tournaments for a format.
Collects top-4 finishers with Moxfield decklists from recent events.
Use moxfield_decklist to fetch the full card list for a deck.
Inputs: format (required), limit, num_days, response_format.
spicerack_recent_tournamentsARead-onlyIdempotent
List recent tournaments for a format with dates, player counts, and IDs.
Use the tournament ID from the results with tournament_results to
see full standings and decklists.
Inputs: format (required), limit, num_days, response_format.
spicerack_tournament_resultsARead-onlyIdempotent
Get full standings and decklists for a specific tournament.
Look up a tournament by its Spicerack ID. Use recent_tournaments
first to find tournament IDs.
Inputs: tournament_id (required), top_n, format, num_days, +1 more.
suggest_cutsARead-onlyIdempotent
Identify the weakest cards to cut from a commander decklist.
Scores cards by synergy, inclusion rate, and combo membership. Degrades gracefully if EDHREC or Spellbook backends fail (uses whatever data is available).
Inputs: decklist (required), commander_name (required), num_cuts, response_format.
suggest_mana_baseARead-onlyIdempotent
Suggest a mana base for a decklist based on color pip distribution.
Analyzes color requirements, recommends land count, and suggests format-legal dual lands. Handles hybrid and phyrexian mana.
Inputs: format (required), decklist (required), total_lands, response_format.
suggest_sideboardBRead-onlyIdempotent
Suggest a 15-card sideboard for a competitive deck.
Analyzes the main deck's weaknesses and recommends sideboard cards with per-card reasoning. Works with heuristic analysis alone; enhanced with MTGGoldfish frequency data when available.
Inputs: format (required), decklist (required), meta_context, response_format.
theme_searchARead-onlyIdempotent
Find cards matching a theme — mechanical, tribal, or abstract/flavorful.
Maps themes to oracle text patterns and searches bulk data. Groups results by relevance tier (strong match, moderate match, flavor match).
Inputs: theme (required), limit, format, max_price, +2 more.
tribal_staplesARead-onlyIdempotent
Best cards for a creature type — lords, synergy pieces, and top members.
Groups results by: lords/anthems, tribal synergy, best members, tribal support.
Inputs: tribe (required), limit, format, color_identity, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 74 tools
Many tools have clear source prefixes, but there is functional overlap (e.g., scryfall_search_cards vs bulk_card_search, multiple deck analysis tools). Agents may struggle to choose the right tool for a given task.
Most tools follow a consistent snake_case pattern with source prefixes (e.g., scryfall_, bulk_, moxfield_). A few outliers like 'ping' break the pattern, but overall naming is predictable.
74 tools is far above typical MCP servers. Even for a complex domain like MTG, this volume is excessive and likely burdensome for agents to navigate. Splitting into specialized sub-servers would be more coherent.
Covers a wide range of MTG needs: card lookup, deck analysis, draft, competitive meta, rules, combos, etc. Some minor gaps (e.g., no trading or event creation) but overall thorough for an informational server.
Maintenance
Related MCP Connectors
Magic: The Gathering card search, rules, rulings, deck analysis, brackets, and combo detection.
MTG market data: search 114K+ cards, price signals, AI analysis. Free tier available.
Live TCG card and decklist prices for AI assistants. 22+ games, no account, ready-to-buy links.
Magic: The Gathering card roles, synergies, Commander brackets, deck analysis and your own decks.
Related MCP Servers
- AlicenseAqualityCmaintenanceProvides AI assistants with 69 tools, 19 prompts, and 21 resources for deep access to Magic: The Gathering, including card data, combos, draft analytics, Commander metagame, competitive constructed, sideboard strategy, deck building, and rules engine, working with any MCP client.5624MIT
- AlicenseNot gradedqualityDmaintenanceA comprehensive Model Context Protocol server that provides AI assistants with rich Magic: The Gathering information, including card data, comprehensive rules, EDHREC recommendations, combo interactions, and intelligent Commander deck generation.27 PyPI1MIT
- 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
- FlicenseNot gradedqualityBmaintenanceProvides Magic: The Gathering card, deck, provider, and statistical evidence tools for LLMs to make informed deckbuilding decisions.-