MTG MCP Servers is an MCP server suite that connects LLM clients to Magic: The Gathering game mechanics and the Scryfall card database. Written in Swift, the project provides two core components: a deck management engine and a Scryfall API integration server. Magic: The Gathering players, deck builders, and game developers use it to test opening hands, manage game states, review official comprehensive rules, and query card statistics directly from AI assistants. The deck manager handles parsing text-based decklists, drawing cards with shuffling logic, executing London mulligans, and moving cards between mainboards and sideboards. Meanwhile, the Scryfall server provides card information including mana costs, images, legality formats, and text search across the card library. Users can simulate plays, inspect curve statistics, and clarify rule interactions inside conversational environments like Claude Desktop.
Category: Other & General Purpose
Tags: card games, deck building, gaming, magic the gathering
Follow these steps to build and register MTG MCP Servers with Claude Desktop: 1. Ensure you have Swift 6.2 or later and macOS 13 or later installed. 2. Clone the repository and build the release binaries: bash git clone https://github.com/ericraio/mtg-mcp cd mtg-mcp swift build -c release 3. Open your Claude Desktop configuration file (located at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS). 4. Add the built executables to your mcpServers configuration using absolute paths: json { "mcpServers": { "mtg-deck-manager": { "command": "/path/to/mtg-mcp/.build/release/mtg-mcp", "args": ["--transport", "stdio"] }, "scryfall-api": { "command": "/path/to/mtg-mcp/.build/release/scryfall-mcp", "args": ["--transport", "stdio"] } } } 5. Restart Claude Desktop to enable the tools.
Part of MCP Servers
MTG MCP Servers requires Swift 6.2 or later on macOS 13 or later. Clone the project repository from GitHub, compile the executables using swift build -c release, and register the resulting binary paths in your Claude Desktop configuration file under the mcpServers object.
The server suite provides tools for loading decklists across standard and commander formats, drawing cards, simulating mulligans, tracking deck and hand statistics, and performing sideboard swaps. It also interfaces with the Scryfall API for card lookups and includes comprehensive MTG rule searches.
Any MCP client supporting standard input and output (stdio) transport can run MTG MCP Servers. It is officially tested and documented for Claude Desktop across both development and compiled production configurations.
The deck manager accepts standard list formats with mainboard and sideboard headers, Commander lists with dedicated commander sections, lists containing set codes and collector numbers, and basic headerless card lists.