Cursor Setup Guide

March 12, 2026 · View on GitHub

Method 1: One-click Install

In the AI chat, type:

Help me auto install Gate Skills and MCPs: https://github.com/gateio/gate-skills

Cursor One-Click Installer

Method 2: Manual Configuration

Gate MCP provides two endpoints. Choose based on your needs:

EndpointAuthUse Case
https://api.gatemcp.ai/mcpNoneMarket data only (tickers, order books, K-line, etc.)
https://api.gatemcp.ai/mcp/exchangeOAuth2Full access (trading, balances, transfers — OAuth login on connect)

Step 1: Open Cursor Settings

Navigate to SettingsTools & MCPAdd Custom MCP

Cursor Add MCP

Step 2: Edit MCP Configuration

Edit your mcp.json file.

For full trading (OAuth on connect):

{
  "mcpServers": {
    "Gate": {
      "url": "https://api.gatemcp.ai/mcp/exchange",
      "transport": "streamable-http",
      "headers": {
        "Content-Type": "application/json",
        "Accept": "application/json, text/event-stream"
      }
    }
  }
}

For market data only (no auth):

{
  "mcpServers": {
    "Gate": {
      "url": "https://api.gatemcp.ai/mcp",
      "transport": "streamable-http",
      "headers": {
        "Content-Type": "application/json",
        "Accept": "application/json, text/event-stream"
      }
    }
  }
}

For DEX (on-chain wallet, swap):

{
  "mcpServers": {
    "Gate-Dex": {
      "url": "https://api.gatemcp.ai/mcp/dex",
      "headers": {
        "x-api-key": "MCP_AK_8W2N7Q",
        "Authorization": "Bearer ${GATE_MCP_TOKEN}"
      }
    }
  }
}

For Info & News (no auth):

{
  "mcpServers": {
    "Gate-Info": {
      "url": "https://api.gatemcp.ai/mcp/info"
    },
    "Gate-News": {
      "url": "https://api.gatemcp.ai/mcp/news"
    }
  }
}

Cursor MCP JSON

Step 3: Start Using

Open Cursor AI chat and try:

  • "What is the current price of BTC/USDT?"
  • "Show me the order book for ETH/USDT"
  • "Get the 1-hour K-line data for SOL/USDT"

Cursor Usage

Troubleshooting

Connection Issues

  1. Check your internet connection
  2. Verify the MCP server URL is correct
  3. Check Cursor's MCP logs for errors

Tools Not Available

  1. Ensure the MCP configuration is saved correctly
  2. Restart Cursor
  3. Check if the MCP server is accessible

Next Steps