# Iwantmymtg MCP

> Iwantmymtg MCP is an open-source MCP server for games and play. Magic: The Gathering card, set and price lookups plus collection management over MCP. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI
- **Repository:** https://github.com/matthewdtowles/iwantmymtg-mcp
- **MCP Registry name:** io.github.matthewdtowles/iwantmymtg-mcp
- **Categories:** [games and play](https://ai-powered.com/categories/games-and-play)
- **Listing updated:** 2026-11-23

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
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.

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (claude_desktop_config.json)

```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.

### Cursor (~/.cursor/mcp.json)

```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.

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

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

### Codex: Or add to config.toml (~/.codex/config.toml)

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

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```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.

### Devin Desktop (~/.config/devin/mcp_config.json)

```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.

### Cline (cline_mcp_settings.json)

```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.

### Zed (Zed settings.json)

```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.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "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.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```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.

### Kiro (~/.kiro/settings/mcp.json)

```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.

### Other clients (your client's MCP settings (most use this shape))

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

## 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.

## Alternatives

- [Space-core](https://ai-powered.com/mcp/space-core-2): Space-core is a free MCP server for games and play.
- [Agent Arena](https://ai-powered.com/mcp/agent-arena-3): Agent Arena is a freemium MCP server for games and play.
- [Minecraft MCP](https://ai-powered.com/mcp/minecraft-mcp-2): Minecraft MCP is an open-source MCP server for games and play.
- [B.O.M Founding Bots (beta)](https://ai-powered.com/mcp/b-o-m-founding-bots-beta): B.O.M Founding Bots (beta) is a free MCP server for games and play.
- [Wizard101 Wiki](https://ai-powered.com/mcp/wizard101-wiki): Wizard101 Wiki is a free MCP server for knowledge and memory.
- [Bot Poker Arena](https://ai-powered.com/mcp/bot-poker-arena): Bot Poker Arena is a paid MCP server for games and play.
- [RV Chess](https://ai-powered.com/mcp/rv-chess): RV Chess is a free MCP server for games and play.
- [Assetto Corsa Config](https://ai-powered.com/mcp/assetto-corsa-config): Assetto Corsa Config is an open-source MCP server for games and play.

---
Source: https://ai-powered.com/mcp/iwantmymtg-mcp
