mtg
A Model Context Protocol (MCP) server for Magic: The Gathering Commander format, providing comprehensive card information, rulings, pricing, and deck validation tools.
claude mcp add --transport stdio nathanmartins-mtg-mcp ./mtg-commander-server
How to use
This MCP server provides a comprehensive Magic: The Gathering Commander data toolkit. It exposes a collection of AI-callable functions (Tools) that query Scryfall for card data, rulings, pricing, legality, and deck validation. It also offers Moxfield integration to fetch and search public decks, and EDHREC metadata to surface recommendations and popular combos. You can connect to the server using MCP-compatible clients (like Claude Desktop or Claude Code) over standard IO, and then invoke functions such as search_cards, get_card_details, check_commander_legality, get_card_price, validate_deck, and the Moxfield/EDHREC tools. The server returns rich card information (oracle text, mana costs, types, color identity, formats legality, rulings, prices in USD/EUR/BRL), plus deck and deck-building insights.
How to install
Prerequisites:
- Go 1.25 or later
- Internet access (for Scryfall data and currency conversion)
Building from source:
# Clone or navigate to the project directory
git clone https://github.com/nathanmartins/mtg-mcp.git
cd mtg-mcp
# Install dependencies
go mod tidy
# Build the MCP server
go build -o mtg-commander-server
The compiled binary mtg-commander-server is the MCP server binary you can run directly. You can also place it in a directory of your choice and reference it in your MCP client configurations.
Additional notes
Tips and notes:
- The server relies on the Scryfall API and currency conversion; ensure your network allows outbound HTTP requests.
- By default, the binary exposes an stdio-based transport suitable for Claude Desktop/Code integrations; you can connect via the provided mcp configuration payloads.
- If you change the binary location, update your Claude Desktop or Claude Code configurations to point to the absolute path of the mtg-commander-server binary.
- The npm_package field is null because this server is implemented in Go, not as a Node.js package.
Related MCP Servers
weather
A lightweight Model Context Protocol (MCP) server that enables AI assistants like Claude to retrieve and interpret real-time weather data. Discuss on Hacker News:
sandbox
A Model Context Protocol (MCP) server that enables LLMs to run ANY code safely in isolated Docker containers.
github-brain
An experimental GitHub MCP server with local database.
mcp-tts
MCP Server for Text to Speech
tasker
An MCP server for Android's Tasker automation app.
kai
An MCP Server for Kubernetes