Query Magic: The Gathering cards, sets, and prices and manage your I Want My MTG collection.
io.github.matthewdtowles/iwantmymtg-mcp (MCP)
An MCP server for I Want My MTG. It exposes I Want My MTG’s API as MCP tools so clients such as Claude Desktop, Claude Code, and Cursor can search Magic: The Gathering cards and sets and manage a user’s collection. The server is identified by slug io-github-matthewdtowles-iwantmymtg-mcp.
🛠️ Key Features
MCP tools for I Want My MTG
Search Magic: The Gathering cards and sets
Manage a user’s collection via IWMM’s API
🚀 Use Cases
Find MTG cards and sets through an MCP client
Maintain and update an MTG collection using MCP tools
Integrate MTG lookups with developer tools that support MCP
⚡ Developer Benefits
Access IWMM’s API through Model Context Protocol tooling
Works with MCP clients listed in the README (Claude Desktop, Claude Code, Cursor)
⚠️ Limitations
The provided description does not specify tool names, price retrieval behavior, authentication details, or any tool count.
An MCP server for I Want My MTG. Exposes IWMM's API as tools so Claude Desktop, Claude Code, Cursor, and other MCP clients can search Magic: The Gathering cards/sets and manage a user's collection conversationally.
Demo: Claude Code answering four collection queries via the iwmm MCP server
What you can do
Anonymous (no key): search cards, look up a card by set+number, get current prices and 30-day price history, get a card's buylist (sell-to-vendor) offers, list sets and their cards, list sealed products.
Authenticated (with an IWMM API key): manage your inventory and transactions; build and manage decks (create, import from a decklist, edit cards, add the cards you're missing to your buy-list); view portfolio summaries, history, performance, cash flow, realized gains, and breakdowns (including by color, with per-slice drill-down); manage price alerts and notifications.
Sell tools (with a key): see your collection's market sell value (best buylist offer per card, grouped by vendor), manage a buy-list (want-list), and get a cash-vs-store-credit recommendation for selling toward your buy list.
After saving, restart Cursor and confirm iwmm appears under Settings -> Features -> MCP Servers.
Example prompts
"Search for Lightning Bolt printings and show me the cheapest one."
"What's the price history of Bloodbraid Elf from Modern Horizons 3?"
"Add 4 copies of Lightning Bolt LEA to my inventory."
"What sealed products are available for MH3?"
"What's my collection worth to sell right now, and which vendor pays most?"
"Add these cards to my buy list, then tell me whether cash or store credit is the better deal."
See examples/ for walkthroughs of common flows, and docs/TOOLS.md for the full tool reference.
Configuration
Env var
Default
Purpose
IWMM_API_KEY
(unset)
Personal API key. Required only for authenticated tools.
IWMM_BASE_URL
https://iwantmymtg.net
Override for self-hosted or local-dev IWMM instances.
Local development
bash
npm install
npm run build
node dist/index.js
Or with tsx for live reload:
bash
npm install
npx tsx src/index.ts
License
This project is licensed under the MIT License — see the LICENSE file for details.
Install
Configuration
Environment variables
IWMM_API_KEYsecret
Personal 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.