API Reference
MCP Server
Let Claude, Codex and other AI agents work in your Blitz Rocket account
MCP Server
Blitz Rocket runs a Model Context Protocol server, so an AI agent can work in your account the way you do in the dashboard: create and edit campaigns and every custom app (instant-win games, content gates, UGC collectors, comment pickers), and manage entrants, rewards, referrals and integrations.
/api/mcpThe server uses the Streamable HTTP transport and is stateless, so any MCP client that supports remote HTTP servers with a custom Authorization header works.
Create a Token
Go to Settings → Developer → MCP and create a token. Each token:
- acts as you, inside the team you created it in, and nowhere else;
- is either Full access (read and change anything) or Read-only (look things up, no changes);
- is shown once. Revoke it from the same page at any time. It also stops working if you leave the team.
Connect Your Agent
Claude Code
claude mcp add --transport http --scope user blitzrocket https://blitzrocket.com/api/mcp \
--header "Authorization: Bearer <your-mcp-token>"
Codex
Put the token in your shell profile, then add the server to ~/.codex/config.toml:
export BLITZROCKET_MCP_TOKEN="<your-mcp-token>"
[mcp_servers.blitzrocket]
url = "https://blitzrocket.com/api/mcp"
bearer_token_env_var = "BLITZROCKET_MCP_TOKEN"
Cursor and other clients
{
"mcpServers": {
"blitzrocket": {
"url": "https://blitzrocket.com/api/mcp",
"headers": { "Authorization": "Bearer <your-mcp-token>" }
}
}
}
Tools
| Tool | What it does |
|---|---|
get_context | Shows the user, team and access level the connection acts as |
list_operations | Lists available operations by area (contest, instantWin, contentGate, ugcCollector, entry, reward, ...) |
describe_operation | Returns an operation's input as JSON Schema |
run_query | Runs a read operation |
run_mutation | Runs an operation that changes data (full-access tokens only) |
Operations are the same ones the dashboard uses, so new features become available to agents as soon as they ship. Every operation runs with your permissions and your plan's limits.
Not available to agents
- Team members, roles and invitations
- Billing and subscription changes
- Sending payouts and connecting PayPal
- API keys, MCP tokens and your account's sign-in settings
Example Prompts
- "List my active campaigns and how many entries each has."
- "Create a spin-to-win game with three prize tiers: 10% off, free shipping, and a $50 gift card."
- "Approve every pending submission in my UGC collector that has a caption."
- "Duplicate last month's giveaway, rename it for December, and set it to start on December 1."