Pokerai API

io.github.pokerai-bet由 GitHub 账号 pokerai-bet 发布v0.1.4更新于 Nov 6, 2026

Solver-grade GTO strategy for study. Real-time assistance (RTA) at real-money tables is prohibited.

已验证STDIO仅桌面金融数据与分析

概览

AI 生成的概览

Pokerai API 的 MCP 服务器,让助手查询 6-max 无限注德州扑克的求解器级 GTO 翻前与翻牌策略,用于学习研究。

可以做什么
  • 列出可选的翻前策略表版本及其默认版本
  • 查询某手牌面对特定翻前行动线的 GTO 弃牌/跟注/加注频率与尺度
  • 获取某位置与行动线对应的全部 169 种手牌类型范围
  • 获取翻牌决策树及节点令牌,再按节点读取策略(可指定或不指定具体手牌)
  • 启用后可调度实时求解,并读取求解节点与各手牌 EV
适用场景
适合扑克学习、教练、复盘工具与研究场景,需要真实的预求解 GTO 频率而非助手猜测时,用于 6-max 100bb 无限注德州扑克的翻前与翻牌局面。
运行要求
通过 npx 以 stdio 在本地运行(需 Node.js),在客户端的 MCP 配置中设置。需要 POKERAI_API_KEY 环境变量中的 Pokerai API 密钥,可从服务商登录页获取。需要访问 Pokerai API 的网络。仅当 POKERAI_ENABLE_SOLVE 设为 1 时才提供实时求解工具。
安装前请注意
会消耗你自己的配额:每次预求解查询消耗 1 次预求解配额(免费版每月 10 次),实时求解消耗更稀缺的求解配额(免费版每月 5 次)。POKERAI_API_KEY 是密钥,会发送给服务商 API。服务商禁止在真钱牌桌上使用实时辅助,仅限学习用途。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Pokerai API,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@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):

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

Claude Code

bash
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.

Tools

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

ToolWhat it returns
preflop_versionsselectable strategy chart sets (free)
preflop_strategyfold/call/raise frequencies for a hand vs an action line
preflop_rangethe whole 169-hand-type range for a position + line
flop_treeflop decision tree (nodes carry tokens); optional flop_version picks the dataset
flop_nodestrategy 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:

ToolWhat it returns
solve_scheduletrigger an on-demand solve (costs 1 solve quota)
solve_treepoll the solve + get its nodes
solve_nodestrategy at one solved node
node_evsper-hand, per-action EVs at a node

Environment

VarPurpose
POKERAI_API_KEYrequired — your key from https://pokerai.bet/login
POKERAI_ENABLE_SOLVEset to 1 to expose the real-time solver tools
POKERAI_API_BASEoverride 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

来源:README.md,提交 07a86c5

工具

5

preflop_versions

List preflop strategy versions

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

无需输入参数。

preflop_strategy

Preflop GTO strategy for a hand

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.

输入参数hero必填hole_cards必填preflop_actions必填preflop_version

preflop_range

Whole preflop range for a spot

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).

输入参数hero必填table_sizepreflop_actions必填preflop_version

flop_tree

Flop decision tree

Starting ranges + every decision node for a flop spot. In the response each node has `node`, its path (e.g. root/CHECK), and `token`; pass `token` as the `node` argument of flop_node. Charges 1 presolved quota. Single-street (for turn/river use the solver tools).

输入参数board必填pot_type必填positions必填flop_version

flop_node

Flop node strategy

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).

输入参数node必填hole_cards

版本历史

3
  1. v0.1.4最新Nov 5, 2026
  2. v0.1.3Nov 1, 2026
  3. v0.1.2Oct 31, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分
  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分