BattleGrid MCP server — play crypto prediction games from AI agents
MCP server for BattleGrid — play crypto prediction games from AI agents.
BATTLEGRID_API_KEY=bg_live_xxx npx @battlegrid/mcp-serverBATTLEGRID_API_KEYS=bg_live_alice_key,bg_live_bob_key npx @battlegrid/mcp-serverWhen multiple keys are provided, the server discovers each account's identity and injects an account parameter into every tool so the AI agent can choose which account to act as.
https://mcp.battlegrid.trade/mcpNo npm install required — connect directly from any MCP client that supports streamable-http.
Single account:
{
"mcpServers": {
"battlegrid": {
"command": "npx",
"args": ["@battlegrid/mcp-server"],
"env": {
"BATTLEGRID_API_KEY": "bg_live_xxx"
}
}
}
}Multiple accounts:
{
"mcpServers": {
"battlegrid": {
"command": "npx",
"args": ["@battlegrid/mcp-server"],
"env": {
"BATTLEGRID_API_KEYS": "bg_live_alice_key,bg_live_bob_key"
}
}
}
}claude mcp add battlegrid -- npx @battlegrid/mcp-serverSet your API key(s):
# Single account
export BATTLEGRID_API_KEY=bg_live_xxx
# Multiple accounts
export BATTLEGRID_API_KEYS=bg_live_alice_key,bg_live_bob_keySingle account:
{
"mcpServers": {
"battlegrid": {
"command": "npx",
"args": ["@battlegrid/mcp-server"],
"env": {
"BATTLEGRID_API_KEY": "bg_live_xxx"
}
}
}
}Multiple accounts:
{
"mcpServers": {
"battlegrid": {
"command": "npx",
"args": ["@battlegrid/mcp-server"],
"env": {
"BATTLEGRID_API_KEYS": "bg_live_alice_key,bg_live_bob_key"
}
}
}
}Set BATTLEGRID_API_KEY with one API key. All tool calls use that account — no extra parameters needed.
Set BATTLEGRID_API_KEYS with a comma-separated list of API keys (one per BattleGrid account). On startup the server:
GET /mcp/identity for each key to discover the account usernameaccount enum parameter into every toolThe AI agent sees tools like this:
{
"name": "get_account_balance",
"inputSchema": {
"properties": {
"account": {
"type": "string",
"enum": ["alice", "bob"],
"description": "Which BattleGrid account to use for this action"
}
},
"required": ["account"]
}
}If a key fails identity discovery (revoked, invalid), it is skipped with a warning. If all keys fail, the process exits.
BATTLEGRID_API_KEYS takes precedence over BATTLEGRID_API_KEY when both are set.
bg_live_*)Each account supports one active key at a time. Generating a new key automatically revokes the previous one.
For paid games, enable Server-Signed Wagers in the MCP tab to allow the agent to submit entries on your behalf.
Install the BattleGrid skill for AI agent instructions:
npx skills add playbattlegrid/battlegrid-mcp| Category | Tools |
|---|---|
| Market Grid (7) | list_market_grid_sessions, get_market_grid_session, check_market_grid_submission, submit_market_grid, get_market_grid_results, get_market_grid_player_grid, update_market_grid |
| Coin Grid (6) | list_coin_grid_sessions, get_coin_grid_session, check_coin_grid_submission, submit_coin_grid, get_coin_grid_results, get_coin_grid_player_grid |
| Account (6) | get_account_balance, get_user_profile, get_user_stats, list_user_favorites, add_user_favorite_preset, remove_user_favorite_preset |
| Leaderboard (3) | get_leaderboard, get_market_grid_leaderboard, get_hall_of_fame |
| Market Data (4) | get_coin_overview, get_recent_candles, get_top_ranked_coins, list_game_presets |
| Intelligence Agent (2) | list_intelligence_agents, get_intelligence_agent |
| Prompt | Description |
|---|---|
play-market-grid | End-to-end workflow for playing a Market Grid prediction game |
play-coin-grid | End-to-end workflow for playing a Coin Grid prediction game |
analyze-market | Deep market analysis for informed predictions |
check-performance | Review your game results, stats, and leaderboard standing |
strategy-guide | Learn BattleGrid game mechanics, rules, and strategies |
| Resource | URI |
|---|---|
| Game Rules | battlegrid://rules/overview |
| Grid Format Reference | battlegrid://reference/grid-format |
| Quick Start Guide | battlegrid://guide/quick-start |
| Variable | Required | Description |
|---|---|---|
BATTLEGRID_API_KEYS | One of these | Comma-separated API keys for multiple accounts |
BATTLEGRID_API_KEY | One of these | Single API key (fallback if BATTLEGRID_API_KEYS not set) |
BATTLEGRID_API_URL | No | Override server URL (default: https://mcp.battlegrid.trade/mcp) |
playbattlegrid/battlegrid-mcp
March 9, 2026
April 13, 2026
HTML