MTG MCP Server
io.github.j4thPublished by GitHub account j4thv3.0.0Updated Oct 25, 2026
Magic: The Gathering card search, combo lookup, draft analytics, and Commander tools.
Overview
A local Magic: The Gathering assistant server that lets an AI search cards, find combos, analyze drafts and decks, and look up rules.
- What you can do
- Search and read card data: Scryfall syntax search, card details, prices, rulings, set info and new releases, plus bulk-data lookups, format legality and similar cards when enabled. Find combos and estimate Commander brackets from Commander Spellbook. Analyze drafts and sealed pools with 17Lands win rates, archetype stats and pick ranking. Explore Commander and constructed metagames: staples, synergy, archetypes, tournament results, decklists and sideboard plans. Build and check decks: theme search, gap analysis, cuts, mana base, validation and price comparison. Look up Comprehensive Rules, keywords, interactions and combat scenarios.
- When to use it
- Useful for players and deck builders who want an assistant to answer MTG questions with real card, draft, metagame and rules data, from casual Commander brewing to competitive sideboard planning.
- Requirements
- Runs locally as a Python package via uvx and needs Python 3.12+; a hosted remote endpoint is also offered. No API keys are required. Optional backends are switched on with MTG_MCP_ environment variables, and bulk data downloads about 30 MB on first use.
Installation
In SourceWeft
- Open MTG MCP Server in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
mtg-mcp-server
[CI] [PyPI] [Python 3.12+] [License: MIT] [codecov] [CodeQL] [Smithery] [Dependabot] [uv] [Ruff]
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
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"
"What are the best commons in Foundations for draft?"
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:
Via config file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows):
Claude Code
Or 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+.
PyPI
Development
Claude Code config for local development:
Configuration
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.
Tools
69 tools across 13 domains. See docs/TOOL_DESIGN.md for full input/output details.
Card Data (scryfall_*)
Bulk Data (bulk_*)
Combos (spellbook_*)
Draft Analytics (draft_*)
Commander Metagame (edhrec_*)
Decklists (moxfield_*)
Tournament Data (spicerack_*)
Metagame (goldfish_*)
Commander Workflows
Deck Building
Draft Workflows
Constructed Workflows
Rules Engine
Architecture
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.
Stack
Development
Documentation
Status
69 tools, 19 prompts, 21 resource templates. 1340 tests at 88% coverage.
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
Source: README.md at commit f1a6140
Tools
0Version history
1- v3.0.0LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts