> ## Documentation Index
> Fetch the complete documentation index at: https://docs.controlplane.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cursor IDE

> Connect the Cursor desktop app to Control Plane to manage your infrastructure directly from your editor.

## Prerequisites

> [card] Cursor IDE
>
> Download [Cursor](https://cursor.com)

> [card] Control Plane account
>
> Sign up at [console.cpln.io](https://console.cpln.io) if you don't have an account yet

## Add the MCP server

**1. Open MCP settings**

In Cursor, go to **Settings → Tools & MCPs**, then click **New MCP Server** under **Home MCP Servers**. Cursor opens your global `mcp.json`:

| OS | Path |
| - | - |
| macOS / Linux | `~/.cursor/mcp.json` |
| Windows | `%USERPROFILE%\.cursor\mcp.json` |

**2. Add the Control Plane server**

```json theme={null}
{
  "mcpServers": {
    "controlplane": {
      "type": "http",
      "url": "https://mcp.cpln.io/mcp"
    }
  }
}
```

> [!NOTE]
>
> Connecting to the bare URL uses the default **`core`** toolset profile — a focused set that already covers the whole build-and-operate workflow (it can read and delete any resource kind generically), which is the right fit for this client. Append `?toolsets=mk8s` to add BYOK Kubernetes tools, or `?toolsets=full` for everything. See [toolset profiles](https://docs.controlplane.com/ai/mcp.md#toolset-profiles).

Save and close the file.

**3. Connect**

Back in Cursor's MCP settings, the `controlplane` server now shows a **Connect** button. Click it.

1. Sign in to Control Plane (Google, GitHub, Microsoft, or SAML).
2. Select the orgs you want Cursor to access.
3. Click **Authorize**.

Your browser shows a success page — close the tab and return to Cursor.

**4. Use it**

Open Cursor's AI chat and ask "list GVCs in org `<your-org>`" (using one of the orgs you authorized) to confirm.

> [!NOTE]
>
> For the latest UI changes, see Cursor's [MCP documentation](https://cursor.com/docs/context/mcp).

## Example conversation

**1. Set Context**

```text theme={null}
Use org "my-org" and gvc "my-gvc" for context.
```

**2. Deploy a Workload**

```text theme={null}
Create a publicly accessible workload called "my-api" using nginx:latest on port 80.
```

**3. Get the Endpoint**

```text theme={null}
Monitor the readiness of my-api and give me the public endpoint once it's ready.
```

## Troubleshooting

> [accordion] Need to change which orgs are authorized
>
> In Cursor's MCP settings, expand the `controlplane` server, click **Logout**, then **Connect** again. Sign in again and adjust your org selections on the consent screen.

> [accordion] MCP server not appearing
>
> Verify the JSON syntax in `mcp.json` and reload Cursor.

## Next steps

> [card] [Usage Examples](https://docs.controlplane.com/ai/examples.md)
>
> Practical prompts for common Control Plane workflows

> [card] [Template Catalog](https://docs.controlplane.com/template-catalog/overview.md)
>
> 30+ production-ready templates your AI can deploy on request
