iwantmymtg-mcp
This server connects to the I Want My MTG (IWMM) platform, enabling search and management of Magic: The Gathering cards, sets, and a personal collection.
Anonymous (No API Key Required):
Search cards by name, set code, rarity, type, format, or legality
Look up a specific card printing by set code and collector number
Get current prices (normal and foil) and 30-day price history for a card printing
List all MTG sets with release dates, types, and aggregate prices
Get details for a single set by set code
List all cards in a set with filtering options
List sealed products (booster boxes, bundles, commander decks, etc.) for a set, including TCGPlayer purchase URLs
Authenticated (API Key Required):
Inventory Management:
List, add, update, and remove cards from your inventory
Batch-check quantities of specific cards owned (normal + foil)
Transaction Tracking:
List, record, update, and delete buy/sell transactions (optionally syncs with inventory)
Portfolio & Analytics:
Get portfolio summary (current value, total invested, unrealized P&L, ROI)
Get portfolio value history, best/worst performing cards, cash flow breakdown, and realized gains (FIFO)
Get portfolio breakdown by set, rarity, type, format, or cost-basis
Get FIFO cost basis for a specific card and finish
Recalculate/refresh portfolio P&L
Price Alerts:
List, create, update, and delete price alerts with increase/decrease percentage thresholds
Notifications:
List notifications, get unread count, and mark notifications as read
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@iwantmymtg-mcpFind Lightning Bolt printings and cheapest price"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
iwantmymtg-mcp
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.
Published on npm, the MCP Registry, and Smithery. Coverage expands to match the API; see
docs/TOOLS.mdfor the full, always-current tool list.

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; view portfolio summaries, history, performance, cash flow, realized gains, and breakdowns; 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.
See the project roadmap for what's next.
Related MCP server: Discovery Engine MCP Server
Install
Requires Node 20+.
npx iwantmymtg-mcpOr install globally if you prefer:
npm install -g iwantmymtg-mcp
iwantmymtg-mcpClaude Desktop
Add to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json; Windows: %APPDATA%\Claude\claude_desktop_config.json):
{
"mcpServers": {
"iwmm": {
"command": "npx",
"args": ["-y", "iwantmymtg-mcp"],
"env": {
"IWMM_API_KEY": "iwm_live_..."
}
}
}
}IWMM_API_KEY is optional - read-only tools work without it. Create a key at https://iwantmymtg.net/user/api-keys.
Claude Code
Add to .mcp.json in your project (or ~/.claude/.mcp.json globally):
{
"mcpServers": {
"iwmm": {
"command": "npx",
"args": ["-y", "iwantmymtg-mcp"],
"env": { "IWMM_API_KEY": "iwm_live_..." }
}
}
}Cursor
Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json in your project:
{
"mcpServers": {
"iwmm": {
"command": "npx",
"args": ["-y", "iwantmymtg-mcp"],
"env": { "IWMM_API_KEY": "iwm_live_..." }
}
}
}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 |
| (unset) | Personal API key. Required only for authenticated tools. |
|
| Override for self-hosted or local-dev IWMM instances. |
Local development
npm install
npm run build
node dist/index.jsOr with tsx for live reload:
npm install
npx tsx src/index.tsLicense
This project is licensed under the MIT License — see the LICENSE file for details.
Maintenance
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/matthewdtowles/iwantmymtg-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server