Skip to main content
Glama

@pokerai/mcp

MCP server for the Pokerai API — solver-grade GTO strategy for 6-max No-Limit Hold'em, exposed as tools your LLM agent (Claude, Cursor, Claude Code, …) can call.

Ask "what's GTO for AKs on the button facing a UTG open?" and the agent gets real presolved frequencies, not a guess.

Setup

You need a Pokerai API key — get one free at https://pokerai.bet/login.

The server runs over stdio via npx, so there's nothing to install globally.

Claude Desktop

Add to claude_desktop_config.json (Settings → Developer → Edit Config):

{
  "mcpServers": {
    "pokerai": {
      "command": "npx",
      "args": ["-y", "@pokerai/mcp"],
      "env": { "POKERAI_API_KEY": "gto_your_key_here" }
    }
  }
}

Claude Code

claude mcp add pokerai -e POKERAI_API_KEY=gto_your_key_here -- npx -y @pokerai/mcp

Cursor

~/.cursor/mcp.json (or Settings → MCP), same shape as the Claude Desktop block above.

Related MCP server: MCP Poker

Tools

Presolved lookups (spend your presolved quota — 10/mo on the free tier):

Tool

What it returns

preflop_versions

selectable strategy chart sets (free)

preflop_strategy

fold/call/raise frequencies for a hand vs an action line

preflop_range

the whole 169-hand-type range for a position + line

flop_tree

flop decision tree (nodes carry tokens); optional flop_version picks the dataset

flop_node

strategy at one flop node (with or without a hero hand)

Real-time solver (flop/turn/river) — off by default because it spends the scarce solve quota (5/mo on the free tier). Enable with POKERAI_ENABLE_SOLVE=1:

Tool

What it returns

solve_schedule

trigger an on-demand solve (costs 1 solve quota)

solve_tree

poll the solve + get its nodes

solve_node

strategy at one solved node

node_evs

per-hand, per-action EVs at a node

Environment

Var

Purpose

POKERAI_API_KEY

required — your key from https://pokerai.bet/login

POKERAI_ENABLE_SOLVE

set to 1 to expose the real-time solver tools

POKERAI_API_BASE

override the API base (default https://pokerai.bet)

Notes

  • The server authenticates with your key and spends your quota — it holds no shared credential and has no abuse surface of its own.

  • stdout is the MCP protocol channel; the server logs only to stderr.

About Pokerai API

Pokerai API provides solver-grade GTO strategy and poker computation APIs for training products, review tools, coaches, researchers, and AI agents.

Free tier: 10 presolved lookups + 5 real-time solves per month.

Real-time assistance (RTA) at real-money tables is prohibited.

MIT licensed. Docs: https://pokerai.bet/docs · Reference: https://pokerai.bet/reference

Available Tools

5 tools
flop_nodeFlop node strategyA

Strategy at one flop decision-tree node. Pass a node token minted by flop_tree. With hole_cards → that hand's mixed strategy at the node; omit → the node's whole-range strategy. Free (token-gated).

Inputs: node (required), hole_cards.

flop_treeFlop decision treeA

Starting ranges + every decision node for a flop spot. Each node carries a node token to pass to flop_node. Charges 1 presolved quota. Single-street (for turn/river use the solver tools).

Inputs: board (required), pot_type (required), positions (required).

preflop_rangeWhole preflop range for a spotA

The full 169-hand-type range (fold/call/raise per hand type: AA, AKs, AKo, ...) for a position + action line. No hole_cards. Charges 1 presolved quota (one call, not 169).

Inputs: hero (required), preflop_actions (required), table_size, preflop_version.

preflop_strategyPreflop GTO strategy for a handB

GTO mixed strategy (fold/call/raise frequencies + sizes) for a specific hand facing a preflop action line, 6-max 100bb. Charges 1 presolved quota. The situation (RFI/3-bet/4-bet/...) is derived from the actions.

Inputs: hero (required), hole_cards (required), preflop_actions (required), preflop_version.

preflop_versionsList preflop strategy versionsA

The selectable preflop_version values (id + human label) and which is the default. Free (no quota). Call this before assuming a version id.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool targets a distinct aspect: preflop_versions for metadata, preflop_strategy for a single hand's preflop strategy, preflop_range for full range, flop_tree for generating flop decision nodes, and flop_node for querying a specific node. Their descriptions clearly differentiate them.

    Naming Consistency5/5

    All tool names follow a consistent snake_case pattern with a street prefix (preflop_ or flop_) and a descriptive suffix (versions, strategy, node, range, tree). The naming is predictable and uniform.

    Tool Count5/5

    5 tools is well-scoped for a poker GTO solver covering preflop and flop analysis. Each tool serves a specific purpose without redundancy or unnecessary complexity.

    Completeness3/5

    The set covers preflop and flop strategies comprehensively, but notably lacks turn/river analysis, as acknowledged in flop_tree's description. This leaves a significant gap for full hand analysis, but within its intended scope it is reasonably complete.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers