MCP directory

MTG MCP Server

by github.com/j4th · v3.0.0 · updated Apr 4, 2026

Magic: The Gathering card search, combo lookup, draft analytics, and Commander tools.

PyPI

Run it locally

Install the package and point your AI client at it.

PyPI

uvx mtg-mcp-server==3.0.0

Environment variables

  • MTG_MCP_TRANSPORT

    Server transport — 'stdio' (default) or 'http'

  • MTG_MCP_HTTP_PORT

    HTTP port when transport is 'http'

  • MTG_MCP_LOG_LEVEL

    Logging level — DEBUG, INFO, WARNING, or ERROR

  • MTG_MCP_ENABLE_17LANDS

    Enable 17Lands draft analytics backend

  • MTG_MCP_ENABLE_EDHREC

    Enable EDHREC commander metagame backend (uses undocumented endpoints)

  • MTG_MCP_ENABLE_BULK_DATA

    Enable Scryfall Oracle Cards bulk data for rate-limit-free lookups (~30 MB download)

  • MTG_MCP_SCRYFALL_RATE_LIMIT_MS

    Minimum delay between Scryfall API calls in milliseconds

  • MTG_MCP_BULK_DATA_REFRESH_HOURS

    Hours between Scryfall bulk data refreshes

  • MTG_MCP_ENABLE_RULES

    Enable Comprehensive Rules engine for rules lookup and keyword tools

  • MTG_MCP_DISABLE_CACHE

    Disable in-memory TTL caching (useful for testing)

  • MTG_MCP_ENABLE_MOXFIELD

    Enable Moxfield deck search and import backend (reverse-engineered API)

  • MTG_MCP_ENABLE_SPICERACK

    Enable Spicerack tournament results backend

  • MTG_MCP_ENABLE_MTGGOLDFISH

    Enable MTGGoldfish metagame data backend (HTML scraping)

More MCP servers