Cursor Integration

Cursor MCP Crypto Trading: Build & Run Strategies in Cursor IDE

Cursor is the fastest environment for quantitative developers who want their coding agent to inspect local strategy files, validate contract specs, and execute live TypeScript directly through Eterna's Deno sandbox.

Updated: By Eterna Engineering (MCP Infrastructure & Execution Team)Read as Markdown
Direct answer: How do you connect Cursor to a crypto exchange via MCP?

Add https://mcp.eterna.exchange/mcp to ~/.cursor/mcp.json (or project .cursor/mcp.json) with type streamable-http, then click Connect in Cursor Settings -> MCP to complete Google OAuth 2.1 sign-in. Cursor's Agent gains search_sdk, search_examples, and execute_code to query live tickers, compute RSI/MACD/VWAP, and trade 800+ USDT perps and 380+ spot pairs in an isolated sub-account.

Config File.cursor/mcp.jsonGlobal (~/.cursor/mcp.json) or repo-scoped
Transportstreamable-httphttps://mcp.eterna.exchange/mcp
AuthOAuth 2.1Zero API keys stored in git or .env
Best Pair WithEterna CLInpx @eterna-hybrid-exchange/cli
https://mcp.eterna.exchange/mcp

Configure Eterna MCP in Cursor (60 seconds)

  1. 01Open Cursor MCP settings

    Open Cursor Settings -> Tools & MCP -> Add Custom MCP Server, or edit ~/.cursor/mcp.json directly.

  2. 02Paste the remote streamable-HTTP config

    Use the JSON snippet below. Because Eterna hosts the MCP server remotely, Cursor needs no local Node or Python runtime.

  3. 03Complete OAuth 2.1 sign-in

    Click Needs login next to the eterna server in Cursor Settings. Approve mcp:full in your browser to auto-provision your isolated sub-account.

  4. 04Verify tool discovery in Agent chat

    Ask Cursor Agent: 'Use Eterna MCP to check my USDT balance and show BTCUSDT 1h RSI and EMA 20/50.'

~/.cursor/mcp.json
{
  "mcpServers": {
    "eterna": {
      "type": "streamable-http",
      "url": "https://mcp.eterna.exchange/mcp"
    }
  }
}
Note: Works in both global ~/.cursor/mcp.json and workspace-local .cursor/mcp.json. Safe to commit because no secrets are stored in the file.

Recommended .cursor/rules/trading-guardrails.mdc for safe execution

Pair Eterna MCP with a workspace Cursor rule so your coding agent always follows strict position sizing and never hallucinates SDK methods.

.cursor/rules/trading-guardrails.mdc
// Example Cursor rule guidelines to place in .cursor/rules/trading-guardrails.mdc:
// 1. Always call search_sdk before using unfamiliar eterna.* methods.
// 2. Never call register_agent (it does not exist).
// 3. Always fetch eterna.getInstruments({ symbol }) and round qty to qtyStep.
// 4. Never place a perpetual order without stopLoss and takeProfit unless explicitly told.
// 5. Enforce max 1% equity risk per trade and max 5x leverage.
Note: Illustrative rule policy. Save as Markdown frontmatter in your own trading workspace.

What developers build with Cursor + Eterna MCP

  • Interactive strategy prototyping: iterate on RSI/VWAP/Bollinger setups in a local TypeScript file, run live dry-run scans via execute_code, and refine thresholds in seconds.
  • Automated portfolio hygiene: ask Cursor to audit all open positions, flag missing stop-losses, and tighten trailing stops via eterna.setTradingStop.
  • Multi-market screeners: scan 20+ USDT perpetuals and tokenized equity perps (NVDA, TSLA, COIN, MSTR) in a single Promise.all execute_code call.
  • Hybrid IDE + CLI workflow: draft strategies in Cursor Agent and run repeatable scripts from the terminal via npx @eterna-hybrid-exchange/cli.
FAQ

Frequently asked questions

Is it safe to commit .cursor/mcp.json with Eterna MCP to a git repository?
Yes. The configuration only contains the public remote URL (https://mcp.eterna.exchange/mcp). Authentication uses per-user OAuth 2.1 tokens managed by Cursor outside your repo.
Why does Cursor work better with Eterna's execute_code than a 50-tool exchange MCP?
Cursor already loads codebase context and file tools into every prompt. Adding 50 exchange tools crowds out your code context and degrades model accuracy. Eterna adds only 3 tools (search_sdk, search_examples, execute_code).
Primary Sources

References & verification links

Start Trading via MCP

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.

View on GitHub