Claude Code CLI Crypto Trading via Eterna MCP
Claude Code is uniquely suited for systematic traders who keep strategy specs, risk policies, and backtest notes in a local Git repository. Pairing Claude Code with Eterna MCP turns your terminal into an interactive trading workstation with OAuth 2.1 security and isolated sub-accounts.
Run `claude mcp add --transport http eterna https://mcp.eterna.exchange/mcp` in your terminal to connect Anthropic Claude Code to Eterna AI. Claude Code can then run multi-step TypeScript market scans, indicator calculations, and live USDT perpetual or spot trades across 1,180+ markets inside one `execute_code` call with zero local API keys.
https://mcp.eterna.exchange/mcp1. Add Eterna MCP to Claude Code
Register the remote HTTP transport directly in Claude Code user or project scope. No npm wrapper or local proxy is needed.
- 01Register the remote MCP server
Add Eterna as an HTTP MCP server at user scope so every workspace can access it, or omit `--scope user` to keep it inside one trading repository.
claude mcp add --scope user --transport http eterna https://mcp.eterna.exchange/mcp - 02Verify connection and trigger OAuth
Launch `claude`, run `/mcp`, select `eterna`, and sign in through the browser OAuth flow. Eterna provisions an isolated no-KYC sub-account automatically.
/mcp - 03Pin trading guardrails in CLAUDE.md
Add your max risk per trade, allowed leverage cap, and confirmation rule to a local `CLAUDE.md` file so Claude Code applies them on every session.
# Trading Guardrails (Eterna MCP)
- Always call eterna.getBalance() and eterna.getPositions() before opening any trade.
- Never exceed 5x leverage or risk more than 1.5% of equity per trade.
- Always attach stopLoss and takeProfit when calling eterna.placeOrder().
- Require explicit user confirmation before executing any market order or withdrawal.2. Why Claude Code + execute_code Beats Script Hacking
Instead of writing disposable Python scripts that leak API keys into `.env` files, Claude Code executes typed SDK code inside Eterna's managed sandbox.
- Version-control strategy prompts and audit logs in Git without ever committing exchange credentials.
- Inspect live orderbooks, RSI, MACD, EMA, VWAP, and Bollinger Bands across 20 pairs in one sandbox execution.
- Combine local files (journal CSVs, watchlists, news notes) with live Eterna positions in the same reasoning turn.
- Install the official Eterna Trading Skill zip into `.claude/skills/` for pre-tuned trade workflows.
Frequently asked questions
Does Claude Code need local Bybit or Eterna API keys?
Can Claude Code run scheduled or headless trading loops?
References & verification links
- Claude Crypto Trading HubFull guide covering Claude Web, Desktop, Skills, and Claude Code.
- Eterna MCP GitHub RepositoryOfficial quickstart and Claude skill bundle.
Connect your AI agent in 30 seconds
One remote MCP URL. 800+ USDT perpetuals, 380+ spot pairs, 0.014% maker / 0.035% taker, no KYC.