Cursor

Attach the Cocobox MCP server to Cursor so its agent can describe schemas and run SQL.

Last updated

Cursor supports MCP HTTP servers natively. Cocobox plugs in with three lines of config.

Prerequisites

  • Cursor 0.45 or newer.
  • A Cocobox sk-coco-* API key with toolsEnabled: true. See API keys.

Configure

Open Cursor’s MCP settings: Cursor → Settings → MCP → Add new server, or edit ~/.cursor/mcp.json:

{
  "mcpServers": {
    "cocobox": {
      "type": "http",
      "url": "https://api.cocobox.io/v1/mcp",
      "headers": {
        "Authorization": "Bearer ${env:COCOBOX_API_KEY}"
      }
    }
  }
}

Reload Cursor. The MCP panel shows cocobox connected with the tool list.

Use it

In the agent panel, ask:

What tables exist on my “analytics” connection? Generate a query that returns DAU for the last 30 days.

Cursor will plan the tool calls, ask for permission the first time, then run them. The returned rows render as a markdown table inline.

Tips

  • Cursor caches MCP capabilities aggressively. If you change the tool list on the server side and don’t see updates, restart Cursor.
  • Cursor’s “Auto-run tools” toggle applies per tool. Leave sql_run on manual for production connections.