How can a poker AI agent use MCP?
An AI agent can use the official Pokerai MCP server only for a controlled training scenario or a hand that has already ended. The agent discovers the server's exposed tools at runtime, validates the returned data, and leaves interpretation and high-impact decisions to a human.
Quick facts
| Official MCP server | github.com/pokerai-bet/mcp and package @pokerai/mcp |
|---|---|
| Authentication | The MCP server uses a Pokerai API key; keep it in the server environment, not in prompts or browser code. |
| Tool contract | Discover tool names and input schemas from the running official server. This guide does not assume an unpublished tool name or registry listing. |
| Grounding | Use the API-backed structured result for verifiable cards, equity, strategy, and other documented facts; LLM prose is explanation or orchestration, not solver output. |
| Allowed use | Training, coaching, hand review, study, and research. |
| Not allowed | Real-time assistance at real-money tables is prohibited. |
Tool-calling flow
Keep the agent loop small and inspectable. MCP transports the tool request; Pokerai API remains the source for the tool's API-backed result.
- Connect — Start the official MCP server using its README and provide the API key through server-side configuration.
- Discover — Ask the MCP client for the server's current tool list and schemas. Do not infer a tool name from this page, a model's memory, or an unverified registry entry.
- Validate — Confirm the request comes from a controlled training scenario or a completed hand and is a permitted offline training, review, study, coaching, or research task; normalize the supplied poker inputs against the discovered schema.
- Call — Call one discovered tool with the minimum required arguments, then retain the raw structured result and request metadata in the application's audit trail.
- Review — Have a human review the agent's explanation, uncertainty, and use of mixed frequencies before presenting high-impact educational or product output.
Minimal verifiable agent loop
This is protocol-level pseudocode, not a claimed tool name. It is verifiable because the agent first reads the running server's actual tool list and schema before it makes a call.
tools = mcp.list_tools()
selected = choose_tool(tools, task="offline preflop study")
assert selected.name in {tool.name for tool in tools}
assert selected.schema validates request
result = mcp.call_tool(
name=selected.name,
arguments=request
)
human_review(result.structured_content)
write_study_note(result.structured_content)
For a concrete request and response shape, use the discovered tool schema together with the official OpenAPI snapshot. If the server does not expose a suitable tool, do not substitute a guessed HTTP call or fabricate a tool result.
Human review and no-RTA boundary
Data boundaries
- Send only the poker inputs needed for the selected study task. Avoid API keys, account details, and unrelated personal data in prompts or tool arguments.
- Pokerai API requests are stateless; do not turn hand content into marketing attribution data or retain it longer than the application's review workflow requires.
- Keep the API key and raw tool response in trusted server-side systems. Redact secrets and user identifiers from agent traces, support tickets, and shared examples.
- Use the documented API contract as the authority for input and response semantics; the agent's prose is an explanation, not a replacement for the source data.
Official implementation links
- Official MCP server — installation and current server instructions; no registry listing is assumed here
- Python SDK — official Python client source
- TypeScript / JavaScript SDK — official JavaScript client source
- Interactive API reference — operation schemas and response details
- OpenAPI snapshot — machine-readable English API contract
- Developer docs — authentication, quotas, SDKs, and API workflows
- Poker hand review API guide — the primary answer page for completed-hand review workflows
- llms.txt — concise LLM context for Pokerai API