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
- Pro — OAuth MCP profile plus up to 3 active API keys, read access by default. Terminal place-order via MCP/REST needs the
write:terminalscope andfeat:terminalon your account. Ask AI via MCP needswrite:ask_ai. - Institutional — up to 10 keys; broader write access when your contract includes it (enabled by dogabot ops), including automation lifecycle and backtest create/cancel via MCP when the matching write scopes are enabled.
Free accounts cannot enable OAuth MCP or create API keys.
Step 1 (recommended): OAuth MCP for Cursor
- Sign in to dogabot → MCP & API (from Settings, or search ⌘K). This is not Credentials — those are exchange keys.
- 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"
}
}
}
- 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)
- On the same MCP & API page, create a key with a name, scopes, and optional IP allowlist.
- Copy the key immediately — it starts with
dbk_live_and is shown only once. - 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
- If dogabot tools appear in Cursor but every call times out or fails to connect, open Settings → Tools & MCP, turn dogabot off, wait a few seconds, then turn it on again (or reload the Cursor window). Long sessions and sleep can leave a stale connection while the tool list still looks fine.
- If OAuth MCP returns a forbidden error about the profile, open MCP & API, enable OAuth MCP access, set scopes, and save.
- If the MCP log says
DOGABOT_API_KEY is required, put your key in the MCP configenvblock (stdio package) and toggle the server again.
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
- Every MCP/API request requires a valid OAuth grant or scoped key — there is no anonymous access.
- Keys are rate-limited per key (60 requests/minute on Pro); OAuth MCP uses a per-user bucket with the same tier caps; invalid auth attempts are throttled.
- Optionally restrict keys and the OAuth MCP profile to your public egress IPs (MCP & API). Empty allowlist means any IP.
- MCP writes are scoped — terminal place/cancel and backtest create/cancel only when the key or OAuth profile and plan allow them.
- Revoke keys you no longer use (MCP & API → trash icon). Disable OAuth MCP when you no longer need Cursor connected.
- Use separate keys per integration (CI, desk dashboard); prefer OAuth for interactive IDE clients.
- API keys cannot access exchange credential secrets — connect exchanges only through the webapp (masked listing only via API when scoped).
Related
- dogabot MCP Server — product overview and client setup
- MCP tool catalog — all tools, scopes, and REST paths
- Export orders and signals to CSV — Pro data export from the UI
- Ask AI on dogabot — in-app assistant; Pro and Institutional keys can use MCP with
write:ask_ai - Institutional pricing