
Security News
Ruby's Bundler 4.0.18 Extends Cooldown to bundle lock and bundle cache
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.
mtg-mcp
Advanced tools
A Model Context Protocol (MCP) server providing comprehensive Magic: The Gathering information for AI assistants
Magic: The Gathering Model Context Protocol Server
A comprehensive Model Context Protocol (MCP) 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.
MTG-MCP integrates multiple Magic: The Gathering data sources to provide AI assistants with authoritative information for answering questions, making recommendations, and generating legal Commander decklists. The server leverages official comprehensive rules, Scryfall card database, EDHREC statistics, and Commander Spellbook combo data.
For detailed installation instructions and troubleshooting, see the Setup Guide.
Install directly from PyPI:
pip install mtg-mcp
Or using uv:
uv pip install mtg-mcp
For development or to use the latest unreleased features, see the Development Installation section in the Setup Guide.
For complete usage instructions and configuration examples, see the Configuration Guide.
After installation, you can run the server directly:
mtg-mcp
For debug logging:
mtg-mcp --debug
Configuration examples for popular MCP clients:
See the Configuration Guide for detailed setup instructions and troubleshooting.
For complete API documentation with parameters, return types, and examples, see the Tools Documentation.
The server exposes the following MCP tools:
mtg-context-get: Get basic MTG game informationmtg-context-commander: Get comprehensive Commander/EDH format rulesmtg-cardtypes-get: Get detailed card type informationmtg-rules-get: Get overview of comprehensive rulesmtg-rules-search: Search rules by section or keywordmtg-ruling-search: Search official card rulingsmtg-combos-search: Search for card combos in Commandermtg-commander-recommend: Get EDHREC recommendations for a commandermtg-commander-brackets: Get Commander bracket informationmtg-export-format: Get deck export format guidelinesmtg-commander-deck: Validate commanders and generate deck datamtg-archidekt-fetch: Fetch deck data from Archidektmtg-moxfield-fetch: Fetch deck data from Moxfield (with automatic commander detection)For more examples and detailed usage patterns, see the Quick Start Guide and Tools Documentation.
Use #mtg-commander-deck to generate a Bracket 5 (cEDH) commander deck with Tymna the Weaver and Kraum, Ludevic's Opus.
Use #mtg-commander-deck to create a Bracket 2 casual deck with Atraxa, Praetors' Voice.
Use #mtg-ruling-search to find rulings for Doubling Season.
Use #mtg-commander-recommend to get the top cards for Kinnan, Bonder Prodigy.
Use #mtg-combos-search to find combos with Thassa's Oracle.
pytest
The project uses Ruff for linting and formatting:
ruff check .
ruff format .
MTG-MCP includes support for the Commander bracket system (1-5). For detailed bracket criteria and guidelines, see the Tools Documentation - Commander Brackets.
The deck generator respects bracket specifications when selecting cards and building strategies.
For complete export format specifications and examples, see the Tools Documentation - Export Format.
Generated decklists follow the standard format compatible with popular deck building tools like Moxfield and Archidekt.
Contributions are welcome! Please feel free to submit issues or pull requests.
MIT License - See LICENSE file for details.
MTG-MCP is unofficial Fan Content permitted under the Fan Content Policy. Not approved/endorsed by Wizards of the Coast. Portions of the materials used are property of Wizards of the Coast. ©Wizards of the Coast LLC.
FAQs
A Model Context Protocol (MCP) server providing comprehensive Magic: The Gathering information for AI assistants
The pypi package mtg-mcp receives a total of 23 weekly downloads. As such, mtg-mcp popularity was classified as not popular.
We found that mtg-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.