BattleGrid MCP Server
OfficialClick on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@BattleGrid MCP ServerList current market grid sessions"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@battlegrid/mcp-server
MCP server for BattleGrid — play crypto prediction games from AI agents.
Quick Start
Single account (stdio transport)
BATTLEGRID_API_KEY=bg_live_xxx npx @battlegrid/mcp-serverMultiple accounts (stdio transport)
BATTLEGRID_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.
Remote server (streamable-http transport)
https://mcp.battlegrid.trade/mcpNo npm install required — connect directly from any MCP client that supports streamable-http.
Configuration
Claude Desktop
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 Code
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_keyCursor
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"
}
}
}
}ChatGPT Desktop
ChatGPT Desktop connects via OAuth 2.1 — no npm package or API key needed. ChatGPT handles the OAuth flow automatically.
Open ChatGPT Desktop → Settings → MCP Servers → Add Server
Enter the MCP endpoint URL:
https://mcp.battlegrid.trade/mcpSelect OAuth as the authentication method
ChatGPT will automatically:
Discover OAuth endpoints via
/.well-known/oauth-authorization-serverRegister itself as an OAuth client (Dynamic Client Registration)
Open BattleGrid's consent page in your browser
Log in to BattleGrid and click Authorize
ChatGPT exchanges the auth code for a Bearer token and connects
Claude Desktop / Cursor | ChatGPT Desktop | |
Transport | stdio proxy ( | Direct HTTPS |
Auth | API key ( | OAuth 2.1 (Bearer token) |
Setup | npm package + env vars | URL + OAuth consent |
Multi-account |
| One OAuth grant per account |
Account Management
Single Account
Set BATTLEGRID_API_KEY with one API key. All tool calls use that account — no extra parameters needed.
Multiple Accounts
Set BATTLEGRID_API_KEYS with a comma-separated list of API keys (one per BattleGrid account). On startup the server:
Calls
GET /mcp/identityfor each key to discover the account usernameInjects a required
accountenum parameter into every toolRoutes each tool call to the correct account using the matching Bearer token
The 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.
Getting an API Key
Go to battlegrid.trade → Profile → MCP tab
Generate an API key (format:
bg_live_*)Copy the key immediately — it is shown only once
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.
Skills
Install the BattleGrid skill for AI agent instructions:
npx skills add playbattlegrid/battlegrid-mcpCapabilities
Tools (34)
Category | Tools |
Market Grid (9) |
|
Market Data (2) |
|
Account (1) |
|
Leaderboard (1) |
|
Intelligence Agents (6) |
|
Agent Automation (3) |
|
Agent Grid (2) |
|
Agent Journal (1) |
|
Signals (5) |
|
Entry Decisions (4) |
|
Prompts (5)
Prompt | Description |
| End-to-end workflow for playing a Market Grid prediction game |
| End-to-end workflow for playing a Coin Grid prediction game |
| Deep market analysis for informed predictions |
| Review your game results, stats, and leaderboard standing |
| Learn BattleGrid game mechanics, rules, and strategies |
Resources (3)
Resource | URI |
Game Rules |
|
Grid Format Reference |
|
Quick Start Guide |
|
Environment Variables
Variable | Required | Description |
| One of these | Comma-separated API keys for multiple accounts |
| One of these | Single API key (fallback if |
| No | Override server URL (default: |
License
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/playbattlegrid/battlegrid-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server