dogabot dogabot

General

API Keys and MCP Integration

Connect Cursor with OAuth MCP or create scoped API keys on Pro or Institutional plans for scripts, desks, and AI agents.

apimcpproinstitutionalintegrationautomationoauth

Pro and Institutional subscribers can use MCP for AI agents (Cursor, Claude Desktop, Claude Code) and API keys for scripts and internal tools.

Product overview: dogabot.com/mcp-server. Full tool catalog: docs.dogabot.com/mcp.

Who can use MCP and API keys

Free accounts cannot enable OAuth MCP or create API keys.

  1. Sign in to dogabot → MCP & API (from Settings, or search ⌘K). This is not Credentials — those are exchange keys.
  2. Under OAuth MCP access, choose Scopes and an optional IP allowlist, then Enable OAuth MCP and save.

One-click clients

After OAuth is enabled, open your client’s install UI (you still confirm in the client, then complete dogabot OAuth / Needs login):

Install via agent

Paste this English prompt into Cursor, Claude Code, Codex, or another agent so it can configure MCP for you:

Install the dogabot MCP server in this agent environment.

Prerequisites (the user must do these in the dogabot app first):
1. Pro or Institutional plan
2. Open https://app.dogabot.com/developers → enable OAuth MCP (scopes + optional IP allowlist) → Save

Then configure this MCP client:
- Hosted URL: https://mcp.dogabot.com/mcp
- Preferred auth: OAuth (Cursor: choose "Needs login") — do NOT paste a Clerk session JWT, browser cookie, or login token
- Add this URL-only config to mcp.json / MCP settings (no Authorization header):

{
  "mcpServers": {
    "dogabot": {
      "type": "http",
      "url": "https://mcp.dogabot.com/mcp"
    }
  }
}

After adding: complete OAuth consent until the server shows connected/green.

Docs: https://learn.dogabot.com/help/api-keys-and-mcp and https://dogabot.com/mcp-server

If this client only supports stdio MCP, use `npx -y @dogabot/mcp` with env DOGABOT_API_KEY from the same MCP & API page — see https://github.com/dogabot/dogabot-mcp-server.

Or add the config manually in Cursor Settings → Tools & MCP:

{
  "mcpServers": {
    "dogabot": {
      "type": "http",
      "url": "https://mcp.dogabot.com/mcp"
    }
  }
}
  1. Choose Needs login, approve dogabot in the Clerk consent screen, and confirm the server is green.

No API key is stored in mcp.json. Do not paste a browser login token.

When the dogabot plugin appears in the Cursor Marketplace, you can install it from Customize instead of pasting JSON (same hosted URL; OAuth). Until then, use the links or config above.

Step 2: Create an API key (scripts / CI / stdio)

  1. On the same MCP & API page, create a key with a name, scopes, and optional IP allowlist.
  2. Copy the key immediately — it starts with dbk_live_ and is shown only once.
  3. Store it in an environment variable or secret manager. Never commit it to git.

You can edit the IP allowlist later from the key row (network icon) without rotating the secret.

Step 3: Call the REST API

export DOGABOT_API_KEY=dbk_live_...
curl -H "Authorization: Bearer $DOGABOT_API_KEY" https://api.dogabot.com/api/v1/me

You can list automations, orders, backtest results, and more. Write access and rate limits depend on your plan; institutional desks should coordinate with their account manager for write access and webhooks. Always send an Idempotency-Key header on write requests.

Step 4 (optional): MCP with an API key header

Use this when OAuth is unavailable (CI, some stdio clients):

{
  "mcpServers": {
    "dogabot": {
      "type": "http",
      "url": "https://mcp.dogabot.com/mcp",
      "headers": {
        "Authorization": "Bearer dbk_live_REPLACE_ME"
      }
    }
  }
}

Optional stdio package @dogabot/mcp proxies to the same hosted endpoint for clients that only support command-based MCP. Full examples: github.com/dogabot/dogabot-mcp-server.

Claude Desktop / Claude Code / Grok

Claude (manual only): curated Claude Connectors / plugin directories are not listed yet. Use a custom connector with URL https://mcp.dogabot.com/mcp (OAuth after enabling OAuth MCP), or the stdio config from the public repo (examples/claude-desktop-config.json), or:

claude mcp add dogabot \
  --env DOGABOT_API_KEY=dbk_live_YOUR_KEY_HERE \
  -- npx -y @dogabot/mcp

Grok.com: Connectors → New Connector → Custom → https://mcp.dogabot.com/mcp. Grok Build: install from the plugin marketplace once the xai-org/plugin-marketplace entry is merged (see public repo / ops submission checklist).

Claude Desktop requires strict JSON — no comments and no ${env:…} interpolation.

Example tools

The hosted server exposes 63 tools. Highlights:

Read (typical): list_automations, get_positions, get_ticker, get_candles, list_exchanges, get_backtest, summarize_backtest_batch, get_backtest_signals, list_terminal_positions, list_terminal_emitters, list_exchange_balances, list_exchange_positions, get_exchange_margin_summary, list_exchange_orders, list_exchange_trades, list_exchange_income, get_terminal_symbol_rules.

summarize_backtest_batch (and compact list_backtests / get_backtest) includes a robustness object: fee drag, path split, peak leverage, Lo Sharpe / MinTRL / Kelly / entropy, and pass/warn/fail gates. Batch summarize also returns science (CSCV PBO, Hansen SPA). Optional require_gates=pass drops jobs that fail a gate before ranking.

list_exchange_balances returns a live exchange wallet snapshot for one venue — not stored in dogabot and not terminal or automation positions. Optional asset (e.g. USDT) returns only that row, including zero balance.

list_exchange_positions returns live open futures contracts on that venue (size and side). Spot exchanges return an empty list. On Binance-shaped perps (aster_dex, binance_usdm), pass symbol to also see leverage / max notional when flat. This is not the same as terminal session positions.

get_exchange_margin_summary returns futures account equity, maint/initial margin, margin ratio, and enriched positions with liquidation distance (aster_dex, binance_usdm).

list_exchange_orders returns live open orders plus recent filled/canceled history on that venue. This is not the same as terminal session order history. Binance and Aster history needs a symbol (the selected pair in Terminal, or the optional symbol argument).

list_exchange_trades returns live fills on that venue (not order objects). Omit cursor for the newest page; pass next_cursor for older fills. Binance and Aster need a symbol.

Write (scoped): place_terminal_order (needs write:terminal; prefer paper) and cancel_terminal_order for resting GTC limits. Leader mode (broadcast_mode=leader) needs a Traders Emitter id from list_terminal_emitters. Also create_backtest / cancel_backtest (needs write:backtest plus institutional API write when required). Check get_backtest_quota before creating; at most 10 backtests can be enqueued or running at once per user. Full trade history for a backtest is available for 24 hours, then only the latest 20 trades are kept.

Automation lifecycle via MCP (create_automation, start_automation, stop_automation, update_automation, delete_automation) requires the matching write scopes (write:automation / write:lifecycle) when granted on your key or OAuth profile.

Ask AI via MCP (create_ai_chat_conversation, ask_ai_chat, confirm_ai_chat_tool, …) needs write:ask_ai (Pro).

See the full catalog on docs.dogabot.com/mcp and setup examples on dogabot.com/mcp-server.

MCP troubleshooting

Institutional write access

If your contract includes API write access, dogabot ops enables it on your account. You can then create keys (or an OAuth profile) with write permissions and call actions such as start/stop automation — always include an idempotency key header on REST write requests so retries stay safe. The same write gate applies to MCP create_backtest / cancel_backtest.

Contact your account manager or sales for institutional API and webhook setup.

Security tips

Related in the app

Ready to put this into practice?

Create a free account and explore dogabot with paper trading.

View Pricing