Pokerai API

v0.2.0
io.github.pokerai-bet/mcp Checked 1 day ago Published 5 days ago

Browse postflop cache coverage and read Flop, Turn and River GTO strategy for study.

Values you need

VariableWhat it is
POKERAI_API_KEYrequired secret Your Pokerai API key, from https://pokerai.bet/login. Billable calls spend your quota.
POKERAI_ENABLE_SOLVEoptional Set to 1 to expose the real-time solver tools, which spend the scarce solve quota. Off by default.

npm (npx) discovery passed

Requires Node.js 18+

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

For AI agents

  1. Ask the user for: POKERAI_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: preflop_versions, preflop_strategy, preflop_range, flop_tree, flop_node, postflop_cache_coverage, postflop_cache_query.
  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