MTG Analytics

v1.0.0Analyticsstable

Unified MCP server composing Scryfall, Commander Spellbook, 17Lands, EDHREC, Moxfield, Spicerack, and MTGGoldfish into one interface for AI assistants. 69 tools for Commander analytics, draft evaluation, competitive metagame, sideboard strategy, and

17landscommanderconstructeddraftedh
Share:
10
Stars
0
Downloads
0
Weekly
0/5

What is MTG Analytics?

MTG Analytics is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to unified mcp server composing scryfall, commander spellbook, 17lands, edhrec, moxfield, spicerack, and mtggoldfish into one interface for ai assistants. 69 tools for commander analytics, draft evaluati...

Unified MCP server composing Scryfall, Commander Spellbook, 17Lands, EDHREC, Moxfield, Spicerack, and MTGGoldfish into one interface for AI assistants. 69 tools for Commander analytics, draft evaluation, competitive metagame, sideboard strategy, and

This server falls under the Analytics category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Unified MCP server composing Scryfall, Commander Spellbook,

Use Cases

Analyze Magic: The Gathering Commander decks using 69 integrated tools.
Get draft evaluation, metagame analysis, and sideboard strategy recommendations.
Access Scryfall, Commander Spellbook, 17Lands, and EDHREC data unified.
j4th

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedMay 20, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx mtg

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use MTG Analytics

The MTG MCP Server is a unified Magic: The Gathering analytics platform that composes Scryfall, Commander Spellbook, 17Lands, EDHREC, Moxfield, Spicerack, and MTGGoldfish into a single MCP interface with 69 tools across 13 domains. It covers card search, combo finding, draft analytics, Commander metagame analysis, deck building, sideboard strategy, rules engine queries, and competitive format guides—available both as a hosted endpoint and a local PyPI package.

Prerequisites

  • Python 3.12 or later (for local installation)
  • uv or uvx installed (https://docs.astral.sh/uv/)
  • Claude Desktop, Claude Code, or another MCP-compatible client
  • No API keys required — all data sources are publicly accessible
1

Choose hosted or local installation

The MTG MCP server is available as a zero-setup hosted endpoint or as a local package. The hosted URL requires no installation at all.

# Hosted (no install needed):
# MCP URL: https://mtg-mcp-server.fastmcp.app/mcp

# Local via uvx (recommended for local use):
uvx mtg-mcp-server

# Install permanently:
uv tool install mtg-mcp-server
2

Add to Claude Code (local)

Register the server with Claude Code using a single command.

claude mcp add mtg -- uvx mtg-mcp-server
3

Add to Claude Desktop (local)

Edit claude_desktop_config.json to add the MTG server entry using uvx.

{
  "mcpServers": {
    "mtg": {
      "command": "uvx",
      "args": ["mtg-mcp-server"]
    }
  }
}
4

Enable optional feature flags

Several data sources are disabled by default to reduce startup time and bandwidth. Enable them via environment variables. The MTG_MCP_ENABLE_BULK_DATA flag downloads ~30 MB of Scryfall bulk card data.

{
  "mcpServers": {
    "mtg": {
      "command": "uvx",
      "args": ["mtg-mcp-server"],
      "env": {
        "MTG_MCP_ENABLE_EDHREC": "true",
        "MTG_MCP_ENABLE_17LANDS": "true",
        "MTG_MCP_ENABLE_BULK_DATA": "false",
        "MTG_MCP_ENABLE_RULES": "true"
      }
    }
  }
}
5

Connect to the hosted endpoint (alternative)

Configure your MCP client to use the hosted streamable HTTP endpoint instead of running a local process. No installation or Python required.

# In Claude Desktop (using HTTP transport):
# Add the remote URL to your MCP client settings:
# https://mtg-mcp-server.fastmcp.app/mcp

# In Claude Code:
claude mcp add --transport http mtg https://mtg-mcp-server.fastmcp.app/mcp
6

Verify tools are available

After restarting your MCP client, ask Claude to list available MTG tools or try a card search to confirm the 69 tools loaded correctly.

# Test prompt:
"Search for the card Black Lotus and show me its details"

MTG Analytics Examples

Client configuration

Claude Desktop claude_desktop_config.json for the MTG MCP server with EDHREC and 17Lands enabled.

{
  "mcpServers": {
    "mtg": {
      "command": "uvx",
      "args": ["mtg-mcp-server"],
      "env": {
        "MTG_MCP_ENABLE_EDHREC": "true",
        "MTG_MCP_ENABLE_17LANDS": "true",
        "MTG_MCP_ENABLE_RULES": "true"
      }
    }
  }
}

Prompts to try

Example prompts covering Commander analytics, draft guidance, metagame analysis, and rules queries.

- "Compare Muldrotha vs Meren vs Karador as graveyard commanders"
- "What are the best commons in Foundations for draft?"
- "Find all two-card infinite combos that include Thassa's Oracle"
- "Validate my Modern Burn decklist and suggest sideboard improvements"
- "What is the current Pioneer metagame snapshot from MTGGoldfish?"
- "Build me a sideboard for my Pioneer Lotus Field Combo deck"

Troubleshooting MTG Analytics

uvx mtg-mcp-server fails with package not found error

Ensure uv is up to date by running `uv self update`. The package name on PyPI is mtg-mcp-server. Try `uv tool install mtg-mcp-server` first and then run it with `uv tool run mtg-mcp-server` to confirm the install succeeded.

EDHREC or 17Lands tools are missing from the tool list

These features are disabled by default. Set MTG_MCP_ENABLE_EDHREC=true and MTG_MCP_ENABLE_17LANDS=true in the env block of your MCP configuration and restart your client. When using uvx, pass them as: `uvx --env MTG_MCP_ENABLE_EDHREC=true mtg-mcp-server`.

Scryfall card search returns outdated card data

By default, the server uses the Scryfall live API for card lookups. If you enabled MTG_MCP_ENABLE_BULK_DATA=true, the ~30 MB bulk file is cached locally and may be stale. Delete the local cache file and restart the server to force a fresh download from Scryfall.

Frequently Asked Questions about MTG Analytics

What is MTG Analytics?

MTG Analytics is a Model Context Protocol (MCP) server that unified mcp server composing scryfall, commander spellbook, 17lands, edhrec, moxfield, spicerack, and mtggoldfish into one interface for ai assistants. 69 tools for commander analytics, draft evaluation, competitive metagame, sideboard strategy, and It connects AI assistants to external tools and data sources through a standardized interface.

How do I install MTG Analytics?

Follow the installation instructions on the MTG Analytics GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with MTG Analytics?

MTG Analytics works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is MTG Analytics free to use?

Yes, MTG Analytics is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Analytics MCP Servers

Explore all analytics servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "mtg": { "command": "npx", "args": ["-y", "mtg"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use MTG Analytics?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides