# mtg-mcp

> mtg-mcp is an open-source MCP server for games and play. Magic: The Gathering card search, deck tools and exact statistics for AI assistants. It runs locally on your machine and is started by your AI client.

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

## About

This .NET server gathers evidence for Magic: The Gathering deckbuilding and leaves the decisions to the assistant. Its README lists Scryfall card search, local decks, Archidekt sync, Commander Spellbook combos and exact statistics as the sources.

Archidekt and Playgroup tools switch on only when credentials exist as JSON files under `~/.mtg-mcp/`: `archidekt.json` with username and password, and `playgroup.json` with an API key. Without them the rest still works.

Install it as a global .NET tool with `dotnet tool install -g Nccurry.MtgMcp`, which needs .NET SDK 10 or newer and runs on Windows x64, Linux x64 and Apple-silicon macOS. It is released under AGPL-3.0-or-later; the full tool list is in the repository's reference doc.

## Features

- **Scryfall card search:** Looks up cards through Scryfall.
- **Local decks:** Works with decks stored on your machine.
- **Archidekt sync:** Syncs decks when Archidekt credentials are configured.
- **Commander Spellbook combos:** Finds combos using Commander Spellbook data.
- **Exact statistics:** Computes deck numbers exactly rather than estimating.
- **Optional Playgroup tools:** Enabled by an API key file.

## Good for

- Search for cards that fit a deck's colours and theme
- Check combos for a Commander deck
- Sync a deck from Archidekt for an assistant to review
- Work out exact probabilities for a deck build

## Install

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

```sh
claude mcp add mtg-mcp -- dnx Nccurry.MtgMcp --yes
```

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": {
    "mtg-mcp": {
      "command": "dnx",
      "args": [
        "Nccurry.MtgMcp",
        "--yes"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mtg-mcp": {
      "command": "dnx",
      "args": [
        "Nccurry.MtgMcp",
        "--yes"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mtg-mcp": {
      "command": "dnx",
      "args": [
        "Nccurry.MtgMcp",
        "--yes"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mtg-mcp": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "Nccurry.MtgMcp",
        "--yes"
      ]
    }
  }
}
```

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 mtg-mcp -- dnx Nccurry.MtgMcp --yes
```

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

```toml
[mcp_servers.mtg-mcp]
command = "dnx"
args = ["Nccurry.MtgMcp", "--yes"]
```

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

```json
{
  "mcpServers": {
    "mtg-mcp": {
      "command": "dnx",
      "args": [
        "Nccurry.MtgMcp",
        "--yes"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user mtg-mcp dnx -- Nccurry.MtgMcp --yes

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

```json
{
  "mcpServers": {
    "mtg-mcp": {
      "command": "dnx",
      "args": [
        "Nccurry.MtgMcp",
        "--yes"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mtg-mcp": {
      "command": "dnx",
      "args": [
        "Nccurry.MtgMcp",
        "--yes"
      ]
    }
  }
}
```

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": {
    "mtg-mcp": {
      "command": "dnx",
      "args": [
        "Nccurry.MtgMcp",
        "--yes"
      ]
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mtg-mcp": {
      "command": "dnx",
      "args": [
        "Nccurry.MtgMcp",
        "--yes"
      ]
    }
  }
}
```

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": {
    "mtg-mcp": {
      "command": "dnx",
      "args": [
        "Nccurry.MtgMcp",
        "--yes"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "mtg-mcp": {
      "command": "dnx",
      "args": [
        "Nccurry.MtgMcp",
        "--yes"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mtg-mcp": {
      "command": "dnx",
      "args": [
        "Nccurry.MtgMcp",
        "--yes"
      ]
    }
  }
}
```

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": {
    "mtg-mcp": {
      "command": "dnx",
      "args": [
        "Nccurry.MtgMcp",
        "--yes"
      ]
    }
  }
}
```

## FAQ

### What do I need to install mtg-mcp?

The .NET SDK 10 or newer, then dotnet tool install -g Nccurry.MtgMcp.

### Which platforms are supported?

Windows x64, Linux x64 and macOS on Apple silicon.

### Do I need accounts?

No. Archidekt and Playgroup tools turn on only if their credential files exist.

### What licence is mtg-mcp under?

AGPL-3.0-or-later.

### Is mtg-mcp free?

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

### How do I add mtg-mcp to Claude Code?

Run this command in your terminal: claude mcp add mtg-mcp -- dnx Nccurry.MtgMcp --yes

### What are the best alternatives to mtg-mcp?

The closest alternatives to mtg-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/mtg-mcp-2
