Deck Tutor 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., "@Deck Tutor MCP Server extract the strategy from Atraxa, Praetors' Voice for my Commander deck"
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.
Deck Tutor MCP Server
MCP server that provides Magic: The Gathering deck-building context for AI agents. Exposes synergy criteria, format rules, and comparison priorities as resources, plus a tool to extract strategy from card oracle text. Provides context for deck/card recommendations and help with rules.
Author: @ellentham
Standalone — This package works on its own. No API keys required. Scryfall API is used for card lookups (public, no key needed).
Deck Tutor MCP 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.
Requirements
Node.js 18+
npm
Related MCP server: MTG-MCP
Tools
Tool | Description |
| Fetches a card from Scryfall by name and extracts deck-building strategy from its oracle text. Returns creature types, mechanics, triggers, power/toughness, and Scryfall query fragments. Use for Commander (extract from commander) or any deck where a key card defines the strategy. |
| Returns a small chunk of the Magic Comprehensive Rules by rule number, subrule, or keyword. Use instead of fetching the full ~950KB document. |
extract_strategy_from_card — Input: cardName (string). Output: colorIdentity, creatureTypes, mechanics, triggers, scryfallQueryFragments, suggestedQuery, etc.
lookup_comprehensive_rule — Input: ruleNumber (optional, e.g. "724" for The Monarch) or keyword (optional, e.g. "monarch", "trample"). Returns the matching rule section(s) as markdown.
ruleNumber also accepts a subrule, e.g. "702.19" for Trample. The two keyword sections are far too large to return whole (702 is ~145KB), so they return an outline of their subrules — which doubles as an index of every keyword ability — and you request the subrule you need from it. Keyword searches are capped at 12 sections and report how many were omitted.
Resources
Resource | URI | Description |
Synergy Criteria |
| What counts as synergy when comparing oracle text |
Strategy Examples |
| Examples of extracting strategy from commanders and archetypes |
Comparison Priorities |
| What to weight when evaluating cards |
Commander Brackets |
| Power level brackets (Exhibition through cEDH) |
Commander Rules |
| Commander (EDH) format structure and rules |
Modern Rules |
| Modern format |
Standard Rules |
| Standard (rotating) |
Pioneer Rules |
| Pioneer format |
Pauper Rules |
| Pauper (commons only) |
Legacy Rules |
| Legacy format |
Vintage Rules |
| Vintage format |
Brawl Rules |
| Brawl (60-card Commander) |
Oathbreaker Rules |
| Oathbreaker format |
Booster Draft Rules |
| Booster Draft (limited) |
Sealed Deck Rules |
| Sealed Deck (limited) |
Comprehensive Rules |
| Official MTG rules for rule lookups |
Scryfall Keywords |
| When and how to use |
Comprehensive Rules (lookup tool)
The lookup_comprehensive_rule tool returns small chunks instead of the full ~950KB document. Recommended: pre-split for fast lookups.
Option A — Pre-split sections (recommended)
Download the Comprehensive Rules (TXT format) from Magic.Wizards.com/Rules.
Save as
deck-tutor-mcp/resources/magic-comprehensive-rules.txt.Run the split script:
cd deck-tutor-mcp && npm run split-rulesOr:
npx tsx scripts/splitComprehensiveRules.tsThis creates
resources/sections/with one file per rule (e.g.724-the-monarch.md), aglossary.md, and anindex.json. Lookups read only the needed file (~1–5 KB) instead of the full document.Restart the MCP server (e.g. restart Cursor or reload MCP) so it picks up the split sections.
Option B — Full file only
If you skip the split, save the rules as magic-comprehensive-rules.txt or magic-comprehensive-rules.md in resources/. The lookup tool will parse the full file on each request (slower, but works).
Standalone Installation
This MCP works on its own.
Copy the entire
deck-tutor-mcpfolder (or clone the repo).Install and run:
cd deck-tutor-mcp
npm install
npm run build
npm startOr for development (no build step):
cd deck-tutor-mcp
npm install
npm run devTo verify a build, run the smoke test. It drives the built server as a real MCP client over stdio and checks the handshake, every resource, both tools, and their error paths. Card lookups hit the live Scryfall API, so it needs network access.
npm run build && npm run smokeTo check the published install path that mcp.json uses (npx -y github:...), run npm run check-npx.
Required files to ship:
package.jsonsrc/(TypeScript source)resources/(all markdown files, plussections/if you ran the split)tsconfig.jsonAfter
npm run build:dist/(compiled JS)
Cursor Integration
Deck Tutor works in the Cursor IDE, Agent Window, CLI, Cloud Agents, and mobile app. Pick the setup that matches where you work.
Quick install (desktop)
Run npm run install-link to print a one-click install deeplink, or open this link on a machine with Cursor installed:
cursor://anysphere.cursor-deeplink/mcp/install?name=deck-tutor&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsImdpdGh1YjplbGxlbnRoYW0vZGVjay10dXRvci1tY3AiXX0=That registers a user-level MCP server (available in every workspace on that machine).
General workspace (all projects on desktop)
Option A — Cursor plugin (recommended): Install the plugin from Customize in the Cursor sidebar. This repo includes a plugin manifest (.cursor-plugin/plugin.json) and bundled mcp.json, so Deck Tutor is available across your general workspace without per-repo setup.
Open Customize in the sidebar.
Install from this repository (local test: symlink to
~/.cursor/plugins/local/deck-tutor, then reload Cursor).Enable the deck-tutor MCP server in Customize.
Option B — User-level mcp.json: Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"deck-tutor": {
"command": "npx",
"args": ["-y", "github:ellentham/deck-tutor-mcp"]
}
}
}After publishing to npm, you can use "args": ["-y", "deck-tutor-mcp"] instead.
Mobile and Cloud Agents (iPhone, iPad, cursor.com/agents)
Cloud agents and the mobile app do not read .cursor/mcp.json from your repo. Add Deck Tutor as a personal MCP server in the Cursor web UI:
Open cursor.com/agents and start or open an agent chat.
Click the
+button to the left of the prompt bar.Choose Add files, skills, and MCP servers → MCP Servers → Add MCP.
Add a stdio server named
deck-tutorwith this configuration:
{
"command": "npx",
"args": ["-y", "github:ellentham/deck-tutor-mcp"]
}On mobile, enable
deck-tutorwhen starting a run via the same+menu (MCP servers are chosen per run on mobile).No API keys are required. The server uses the public Scryfall API for card lookups.
Note: MCP management lives on the web UI (
+menu), not in the mobile app settings. Once configured, the same server is available on phone, web, and desktop cloud agents.After updating this MCP server, start a new cloud agent run so the VM installs the latest version (
npxcaches by package version).
This repository (local development)
When working in a clone of this repo, .cursor/mcp.json runs the built server from the workspace:
{
"mcpServers": {
"deck-tutor": {
"command": "node",
"args": ["dist/index.js"]
}
}
}Run npm install && npm run build first. For development without building:
{
"mcpServers": {
"deck-tutor": {
"command": "npx",
"args": ["tsx", "src/index.ts"]
}
}
}Transport
stdio — Designed for Cursor, Claude Desktop, and other MCP clients that spawn processes and communicate over stdin/stdout.
External Dependencies
Scryfall API — Used by
extract_strategy_from_cardfor card lookups. Public API, no key required. See Scryfall API.
Available Tools
2 toolsextract_strategy_from_cardExtract Strategy from CardA
Fetches a card from Scryfall by name and extracts deck-building strategy from its oracle text. Returns creature types, mechanics, triggers, power/toughness, and Scryfall query fragments. Use for Commander (extract from commander) or any deck where a key card defines the strategy.
Inputs: cardName (required).
lookup_comprehensive_ruleLookup Comprehensive RuleA
Returns a small chunk of the Magic Comprehensive Rules by rule number (e.g. 724 for The Monarch) or keyword search. Use instead of fetching the full ~950KB document. Provide ruleNumber for an exact section or subrule, or keyword to find sections mentioning a term. Very large sections (701, 702) return a subrule outline; request a subrule such as "702.19" (Trample) for the full text.
Inputs: keyword, ruleNumber.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools address entirely different resources: one operates on individual cards (Scryfall oracle text) and the other on the Comprehensive Rules document. An agent can never confuse extracting card strategy with looking up a rules section.
Both names are snake_case with a leading verb and clear object (extract_strategy_from_card, lookup_comprehensive_rule). The verb styles differ slightly ('extract...from' vs 'lookup') but the convention is readable and predictable.
Two tools is thin for a 'Deck Tutor' server, even though each is substantive and well-scoped. The surface feels borderline rather than complete.
For a deck-building tutor, core operations are missing: no card search by criteria, no deck validation/mana curve analysis, no combo or synergy lookup, and no way to aggregate multiple cards into a deck plan. The two tools cover narrow slices (single-card strategy and rules text) and leave obvious dead ends for actual deck construction workflows.
Maintenance
Related MCP Connectors
Independent directory of agentic AI tools — search, compare & recommend via MCP. Read-only.
Patterns for designing and reviewing AI skills, agents, and multi-agent workflows. Find guidance on context economy, delegation, verification, and tool design; inspect claims, worked examples, maturity labels, and source references. Five read-only tools let agents discover relevant patterns, compare concise cards, read specific sections, and explore relationships. Hosted Streamable HTTP at https://agentic-atlas.dev/mcp/ — no installation, account, or API key required. Browse the atlas at https://agentic-atlas.dev/.
Curated knowledge API for AI agents - skill packs, semantic search, validated patterns.
Curated catalog of APIs, MCP servers and tools for AI agents, plus an agent Q&A community.
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.5668 PyPI23MIT
- 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.1MIT
- AlicenseAqualityDmaintenanceProvides AI assistants with comprehensive Magic: The Gathering data including card info, combos, draft analytics, Commander metagame, constructed formats, sideboard strategy, deck building, and rules.74MIT
- FlicenseNot gradedqualityBmaintenanceProvides Magic: The Gathering card, deck, provider, and statistical evidence tools for LLMs to make informed deckbuilding decisions.-