Skip to content
MCP server

Iwantmymtg MCP

Magic: The Gathering card, set and price lookups plus collection management over MCP

Runs locally

Iwantmymtg MCP is an open-source MCP server for games and play. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI
Runs
Locally
Version
0.8.1
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add iwantmymtg-mcp --env IWMM_API_KEY='<IWMM_API_KEY>' -- npx -y iwantmymtg-mcp

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "iwantmymtg-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "iwantmymtg-mcp"
      ],
      "env": {
        "IWMM_API_KEY": "<IWMM_API_KEY>"
      }
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "iwantmymtg-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "iwantmymtg-mcp"
      ],
      "env": {
        "IWMM_API_KEY": "<IWMM_API_KEY>"
      }
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "iwantmymtg-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "iwantmymtg-mcp"
      ],
      "env": {
        "IWMM_API_KEY": "<IWMM_API_KEY>"
      }
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "iwantmymtg-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "iwantmymtg-mcp"
      ],
      "env": {
        "IWMM_API_KEY": "<IWMM_API_KEY>"
      }
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add iwantmymtg-mcp --env IWMM_API_KEY='<IWMM_API_KEY>' -- npx -y iwantmymtg-mcp

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.iwantmymtg-mcp]
command = "npx"
args = ["-y", "iwantmymtg-mcp"]
env = { IWMM_API_KEY = "<IWMM_API_KEY>" }

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "iwantmymtg-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "iwantmymtg-mcp"
      ],
      "env": {
        "IWMM_API_KEY": "<IWMM_API_KEY>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "iwantmymtg-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "iwantmymtg-mcp"
          ],
          "env": {
            "IWMM_API_KEY": "<IWMM_API_KEY>"
          }
        }
      }
    }

    Or run: gemini mcp add -s user -e IWMM_API_KEY='<IWMM_API_KEY>' iwantmymtg-mcp npx -- -y iwantmymtg-mcp

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "iwantmymtg-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "iwantmymtg-mcp"
          ],
          "env": {
            "IWMM_API_KEY": "<IWMM_API_KEY>"
          }
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "iwantmymtg-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "iwantmymtg-mcp"
          ],
          "env": {
            "IWMM_API_KEY": "<IWMM_API_KEY>"
          }
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "iwantmymtg-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "iwantmymtg-mcp"
          ],
          "env": {
            "IWMM_API_KEY": "<IWMM_API_KEY>"
          }
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "iwantmymtg-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "iwantmymtg-mcp"
          ],
          "env": {
            "IWMM_API_KEY": "<IWMM_API_KEY>"
          }
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "iwantmymtg-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "iwantmymtg-mcp"
          ],
          "env": {
            "IWMM_API_KEY": "<IWMM_API_KEY>"
          }
        }
      }
    }

    The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "iwantmymtg-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "iwantmymtg-mcp"
          ],
          "env": {
            "IWMM_API_KEY": "<IWMM_API_KEY>"
          }
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "iwantmymtg-mcp": {
          "command": "npx",
          "args": [
            "-y",
            "iwantmymtg-mcp"
          ],
          "env": {
            "IWMM_API_KEY": "<IWMM_API_KEY>"
          }
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • IWMM_API_KEYPersonal IWMM API key (iwm_live_...). Optional; required only for the authenticated tools (anything that reads or changes your own collection). Read-only card, set, and price tools work without it.

About Iwantmymtg MCP

This server wraps the I Want My MTG API. Without a key it answers card and market questions: search cards, look up one by set and number, current prices and 30-day price history, buylist offers from vendors, sets and their cards, and sealed products. With a personal IWMM API key it also manages your own data: inventory and transactions, decks (including importing a decklist and adding missing cards to a buy list), portfolio summaries, history, cash flow and realised gains, and price alerts.

Sell-side tools estimate your collection's market sell value using the best buylist offer per card grouped by vendor, and recommend cash or store credit when selling toward a buy list. Example prompts in the README include finding the cheapest Lightning Bolt printing and asking which vendor pays most for your collection.

It runs over stdio via npx, needs Node 20 or later, and is MIT licensed. IWMM_BASE_URL can point at a self-hosted instance.

What it does

Card and set search
Find cards by name, set and number, and browse sets.
Prices and history
Current prices, 30-day history and vendor buylist offers.
Collection management
Inventory, transactions and decks with a personal key.
Portfolio analytics
Value, performance, cash flow and gains broken down by colour.
Sell recommendations
Best buylist offers and cash versus store credit advice.
Sealed products
List sealed products for a set.

Good for

  • Find the cheapest printing of a card
  • Check a card's price trend before buying
  • Import a decklist and list missing cards
  • See which vendor pays most for your collection

Pricing

Open source

MIT-licensed server; optional personal API key

Iwantmymtg MCP FAQ

Do I need an API key?

Only for tools that read or change your own collection; card, set and price tools work without one.

Where do I get a key?

From your account's API keys page on iwantmymtg.net.

How do I run Iwantmymtg MCP?

npx -y iwantmymtg-mcp, with Node 20 or later.

Can I use a self-hosted instance?

Yes, set IWMM_BASE_URL.

Is Iwantmymtg MCP free?

Yes. Iwantmymtg MCP is open source, so you can use and self-host it for free.

How do I add Iwantmymtg MCP to Claude Code?

Run this command in your terminal: claude mcp add iwantmymtg-mcp --env IWMM_API_KEY='<IWMM_API_KEY>' -- npx -y iwantmymtg-mcp

What are the best alternatives to Iwantmymtg MCP?

The closest alternatives to Iwantmymtg MCP are Space-core, Agent Arena, Minecraft MCP, B.O.M Founding Bots (beta) and Wizard101 Wiki.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers