Mtg MCP Server

A Swift implementation of Magic: The Gathering (MTG) Model Context Protocol (MCP) servers, providing deck management and card search capabilities

Local serverstdio

What is the Mtg MCP MCP server?

A Swift implementation of Magic: The Gathering (MTG) Model Context Protocol (MCP) servers, providing deck management and card search capabilities through the MCP protocol. That is what the mtg mcp mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

The short version

  1. MTG Deck Manager (mtg-mcp) - Game state management including deck loading, card drawing, mulligans, and sideboarding 2. Scryfall API Server (scryfall-mcp) - Card information retrieval using the Scryfall API

The tools it exposes

The server publishes 14 tools. What each one is for:

  • upload_deck — Load a deck list
  • draw_card — Draw cards from deck
  • view_hand — Get current hand contents
  • view_deck_stats — Get deck statistics
  • play_card — Play a card from hand
  • mulligan — Mulligan to new hand size
  • sideboard_swap — Swap cards with sideboard
  • reset_game — Reset game state
  • lookup_rule — Look up specific MTG rule
  • search_rules — Search MTG rules
  • explain_concept — Get comprehensive rule explanations
  • search_cards — Search for cards

What it needs from you

  • Swift 6.2 or later - macOS 13 or later

Getting it running

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

How it compares

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Mtg MCP's toolset — upload_deck, draw_card, view_hand and 11 more — is a fair guide to whether it matches your workflow. It is maintained by ericraio; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Mtg MCP.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
upload_deckLoad a deck list
draw_cardDraw cards from deck
view_handGet current hand contents
view_deck_statsGet deck statistics
play_cardPlay a card from hand
mulliganMulligan to new hand size
sideboard_swapSwap cards with sideboard
reset_gameReset game state
lookup_ruleLook up specific MTG rule
search_rulesSearch MTG rules
explain_conceptGet comprehensive rule explanations
search_cardsSearch for cards
get_random_cardGet random card
lookup_card_exactFind card by exact name

How to install the Mtg MCP MCP server

{
  "mcpServers": {
    "mtg-deck-manager": {
      "command": "swift",
      "args": ["run", "mtg-mcp", "--transport", "stdio"],
      "cwd": "/path/to/mtg-mcp"
    },
    "scryfall-api": {
      "command": "swift", 
      "args": ["run", "scryfall-mcp", "--transport", "stdio"],
      "cwd": "/path/to/mtg-mcp"
    },
    "rules-splitter": {
      "command": "swift",
      "args": ["run", "rules-splitter"],
      "cwd": "/path/to/mtg-mcp"
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Swift 6.2 or later - macOS 13 or later

Example prompts to try

  • Use Mtg MCP to upload deck.
  • Use Mtg MCP to draw card.
  • Use Mtg MCP to view hand.

Frequently asked questions

It connects Mtg MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (upload_deck, draw_card, view_hand, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Mtg MCP directly.