1. Conduid
  2. Developer Tools
  3. Poker Arena Agent
MCP server · Developer Tools

Poker Arena Agent

AI-powered Texas Hold'em poker agent for Monad blockchain Gaming Arena

Unclaimed last commit 8 months ago devtools
48Fair

Scored 5 months ago · breakdown

About Poker Arena Agent

Poker Arena Agent is an MCP server published by Nalmuk1245 in the Developer Tools category: aI-powered Texas Hold'em poker agent for Monad blockchain Gaming Arena.

The repository has 2 stars and 0 forks, with the last commit 8 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/Nalmuk1245/poker-arena-agent

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (10)

analyze_opponentView learned opponent profile

Parameters not published.

check_moltbook_feedGet latest Moltbook posts

Parameters not published.

evolution_statusCheck strategy evolution parameters

Parameters not published.

get_mon_balanceCheck MON balance on Monad testnet

Parameters not published.

play_pokerFull match with analysis and Moltbook posting

Parameters not published.

post_poker_challengePost open poker challenge

Parameters not published.

post_to_moltbookPost to Moltbook social network

Parameters not published.

run_matchAI vs AI poker match with hand display

Parameters not published.

run_simulationOffline poker simulation vs bot archetypes

Parameters not published.

search_moltbookSemantic search on Moltbook

Parameters not published.

Ask AI

✦

Ask AI about Poker Arena Agent

Powered by Claude · Grounded in docs

I know everything about Poker Arena Agent. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 7 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • !License declaredNo license file. Legally you have no right to use it in a product.
  • !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

README

Poker Arena Agent

AI-powered Texas Hold'em poker agent that competes on the Monad blockchain with real token wagers, adaptive strategy, and bankroll management.

Features

  • Monte Carlo Equity Engine — 5,000-iteration simulations for accurate hand strength estimation
  • 4-Archetype Opponent Modeling — Classifies opponents as ROCK / TAG / LAG / Calling Station and adapts play accordingly
  • GTO-Based Bluffing — Game-theory optimal bluff frequencies adjusted per opponent tendencies
  • Kelly Criterion Bankroll Management — Fractional Kelly sizing with loss-streak dampening and stop-loss
  • Self-Evolving Strategy — Automatically tunes aggression, bluff frequency, and risk parameters based on match history
  • On-Chain Commit-Reveal — Fair deck shuffling via dual-seed commitment; hand verification at showdown
  • MCP Server — 10-tool Model Context Protocol server for Claude Desktop integration
  • Moltbook Social — Posts game results, trash-talks opponents, and issues open challenges

Architecture

agent/src/
├── blockchain/          # Contract interaction, event listening, game actions
├── engine/              # Dealer, Deck, HandEvaluator, OddsCalculator, GameRules
├── strategy/            # StrategyEngine, OpponentModel, BluffEngine, EVCalculator,
│                        # BankrollManager, StrategyEvolver
├── social/              # Moltbook API client
├── types/               # TypeScript interfaces (cards, game, strategy)
├── utils/               # Logger (Winston)
└── index.ts             # Main agent entry point

contracts/
├── core/
│   ├── PokerGame.sol    # Game lifecycle, betting, commit-reveal
│   └── TokenVault.sol   # Wager escrow & payouts (ReentrancyGuard)
└── libraries/
    └── GameStructs.sol  # Shared enums & structs

mcp/src/
└── index.ts             # MCP server (stdio transport, 10 tools)

scripts/
├── deploy.ts            # Contract deployment to Monad
├── runMatch.ts          # AI vs AI match runner
└── simulateGames.ts     # Offline simulation

Prerequisites

  • Node.js >= 18
  • npm
  • A Monad testnet wallet with MON tokens

Setup

  1. Install dependencies
npm install
  1. Configure environment
cp .env.example .env

Edit .env with your values:

PRIVATE_KEY=your_private_key_here
MONAD_RPC_URL=https://testnet-rpc.monad.xyz
POKER_GAME_ADDRESS=
TOKEN_VAULT_ADDRESS=
LOG_LEVEL=info
MOLTBOOK_API_KEY=
MOLTBOOK_AGENT_NAME=PokerArenaMolty
  1. Compile contracts
npm run compile
  1. Deploy contracts (testnet or local)
# Monad testnet
npm run deploy:testnet

# Local Hardhat node
npm run deploy:local

Copy the output addresses into your .env:

TOKEN_VAULT_ADDRESS=0x...
POKER_GAME_ADDRESS=0x...

Usage

Run the Agent

npm run agent

The agent will continuously look for open games, join or create matches, and play autonomously.

Run a Simulation

npm run simulate

Run an AI vs AI Match

npm run match

Run Tests

npm run test

MCP Server (Claude Desktop)

The MCP server exposes 10 tools for interacting with the agent through Claude Desktop.

Build & Start

npm run mcp:build
npm run mcp:start

Claude Desktop Configuration

Add to your Claude Desktop config (claude_desktop_config.json):

{
  "mcpServers": {
    "poker-arena": {
      "command": "node",
      "args": ["<path-to-project>/mcp/build/mcp/src/index.js"]
    }
  }
}

Available Tools

Tool Description
get_mon_balance Check MON balance on Monad testnet
run_simulation Offline poker simulation vs bot archetypes
run_match AI vs AI poker match with hand display
analyze_opponent View learned opponent profile
post_to_moltbook Post to Moltbook social network
check_moltbook_feed Get latest Moltbook posts
search_moltbook Semantic search on Moltbook
post_poker_challenge Post open poker challenge
play_poker Full match with analysis and Moltbook posting
evolution_status Check strategy evolution parameters

Strategy Overview

The agent follows a 6-step decision process each turn:

  1. Equity Calculation — Monte Carlo simulation (5,000 iterations) estimates win probability
  2. Opponent Adjustment — Equity adjusted based on classified archetype (+5% vs ROCK, -5% vs Calling Station, etc.)
  3. EV Calculation — Expected value computed for fold, call, and raise
  4. Bluff Check — GTO bluff frequency with semi-bluff preference (flush/straight draws)
  5. Bankroll Sizing — Kelly Criterion determines max bet, capped by risk parameters
  6. Decision — Best action selected from EV analysis, bluff opportunities, and hand strength

Self-Evolution

The StrategyEvolver monitors performance every N games and auto-tunes:

  • Monte Carlo simulation count (1,000–8,000)
  • Bluff multiplier (0.2–2.0)
  • Value bet threshold (45–75%)
  • Aggression factor (0.5–1.5)
  • Kelly fraction (0.2–0.7)

Smart Contracts

PokerGame.sol manages the full game lifecycle:

  • WAITING → PREFLOP → FLOP → TURN → RIVER → SHOWDOWN → COMPLETE
  • Dual-seed commit-reveal for provably fair deck shuffling
  • Hand commit-reveal for trustless showdown verification
  • 5-minute timeout protection
  • On-chain leaderboard (wins, losses, total wagered)

TokenVault.sol handles escrow:

  • Wager deposits with per-game accounting
  • Winner-take-all and split-pot payouts
  • Refunds for cancelled games
  • Reentrancy protection (OpenZeppelin)

Tech Stack

  • TypeScript / Node.js
  • Hardhat — Solidity compilation, testing, deployment
  • ethers.js — Blockchain interaction
  • pokersolver — Hand evaluation
  • OpenZeppelin — Smart contract security
  • Winston — Logging
  • @modelcontextprotocol/sdk — MCP server
  • Monad — L1 blockchain (testnet chain ID 10143)

License

MIT

README fetched from the repository 7 days ago. The original is authoritative.

Questions

About Poker Arena Agent

How do I install Poker Arena Agent?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Poker Arena Agent safe to use with an AI agent?

Its trust score is 48 out of 100 (fair). It passes 3 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Poker Arena Agent still maintained?

The last commit was 8 months ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.