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

> 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.

- Canonical URL: https://ai.eterna.exchange/integrations/cursor
- Last updated: November 23, 2026
- Author: Eterna Engineering (MCP Infrastructure & Execution Team)
- MCP endpoint: https://mcp.eterna.exchange/mcp

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.

## Key Facts

| Metric | Value | Notes |
|--------|-------|-------|
| Config File | .cursor/mcp.json | Global (~/.cursor/mcp.json) or repo-scoped |
| Transport | streamable-http | https://mcp.eterna.exchange/mcp |
| Auth | OAuth 2.1 | Zero API keys stored in git or .env |
| Best Pair With | Eterna CLI | npx @eterna-hybrid-exchange/cli |

## Configure Eterna MCP in Cursor (60 seconds)

1. **Open Cursor MCP settings**: Open Cursor Settings -> Tools & MCP -> Add Custom MCP Server, or edit ~/.cursor/mcp.json directly.
2. **Paste 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. **Complete 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. **Verify 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

```json
{
  "mcpServers": {
    "eterna": {
      "type": "streamable-http",
      "url": "https://mcp.eterna.exchange/mcp"
    }
  }
}
```

*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

```typescript
// 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.
```

*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.

## 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).

## References & Primary Sources

- [Cursor MCP Documentation](https://docs.cursor.com/context/model-context-protocol): Official Cursor specification for mcp.json and remote HTTP MCP servers.
- [Eterna MCP Quickstart](https://github.com/EternaHybridExchange/eterna-mcp/blob/main/QUICKSTART.md): Official setup instructions for Cursor and other streamable-HTTP clients.

## Related Guides

- [Best MCP Server for Crypto Trading: Architecture, Fees, and Setup](https://ai.eterna.exchange/mcp-crypto-trading)
- [How to Build an AI Crypto Trading Agent with MCP (Step-by-Step)](https://ai.eterna.exchange/ai-trading-agent)
- [How to Trade Crypto with Claude (MCP Connector & Trading Skill)](https://ai.eterna.exchange/claude-crypto-trading)
- [Eterna MCP SDK Reference: All 30+ eterna.* Methods](https://ai.eterna.exchange/sdk)
- [GitHub Copilot & VS Code MCP Crypto Trading Setup](https://ai.eterna.exchange/integrations/vscode-copilot)
