Pokémon TCG API

v0.1.14
com.pokemontcgapi/mcp Checked 17 hours ago Published 6 days ago

English, Japanese and Chinese Pokémon cards: search, sets, illustrators, prices, photo lookup.

Values you need

VariableWhat it is
PTCG_API_KEYrequired secret API key for pokemontcgapi.com, needed by every tool but ptcg_get_reference. POST /v1/accounts/free returns one without a dashboard or a card.
PTCG_BASE_URLoptional Override the API base URL. Defaults to https://api.pokemontcgapi.com.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add mcp -e 'PTCG_API_KEY=<PTCG_API_KEY>' -- npx -y --package=@pokemontcgapi/mcp@0.1.14 pokemontcgapi-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp": {
      "args": [
        "-y",
        "--package=@pokemontcgapi/mcp@0.1.14",
        "pokemontcgapi-mcp"
      ],
      "command": "npx",
      "env": {
        "PTCG_API_KEY": "<PTCG_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp": {
      "args": [
        "-y",
        "--package=@pokemontcgapi/mcp@0.1.14",
        "pokemontcgapi-mcp"
      ],
      "command": "npx",
      "env": {
        "PTCG_API_KEY": "<PTCG_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "PTCG_API_KEY",
      "id": "ptcg-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "mcp": {
      "args": [
        "-y",
        "--package=@pokemontcgapi/mcp@0.1.14",
        "pokemontcgapi-mcp"
      ],
      "command": "npx",
      "env": {
        "PTCG_API_KEY": "${input:ptcg-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp]
command = "npx"
args = ["-y", "--package=@pokemontcgapi/mcp@0.1.14", "pokemontcgapi-mcp"]
env = { "PTCG_API_KEY" = "<PTCG_API_KEY>" }

For AI agents

  1. Ask the user for: PTCG_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: ptcg_search_cards, ptcg_get_cards, ptcg_get_card_prices, ptcg_list_sets, ptcg_get_reference, ptcg_list_artists, ptcg_get_catalogue_status, ptcg_search_sealed, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json