# Connect Cursor

> Let your agent do it: Connect Cursor to my remote Hermitbox install through `hermitbox mcp`. Install the Hermitbox CLI on the machine running Cursor's MCP process, start Cursor with `HERMITBOX_API_URL` and `HERMITBOX_API_KEY` in its private environment, and merge the page's server entry into `.cursor/mcp.json`, which names the variables and never their values. After a restart, ask for the project's defaults, create a sandbox, run `echo hello` in it and delete it. Never copy the key into the file or this chat. Follow the exact steps in https://docs.hermitbox.dev/v0.2.4/integrations/cursor.md.

Give Cursor the Hermitbox tools for a remote install through `hermitbox mcp` over stdio. On
the machine where you ran the installer, the Add to Cursor link in
[Use Hermitbox with your agent](https://docs.hermitbox.dev/v0.2.4/get-started/agents.md#cursor) sets it up without a key.

1. Install the [Hermitbox CLI](https://docs.hermitbox.dev/v0.2.4/get-started/cli.md) on the machine running Cursor's MCP process.
2. Start Cursor with `HERMITBOX_API_URL` and `HERMITBOX_API_KEY` in its private environment.
3. Merge this into `.cursor/mcp.json`, restart, and ask for project defaults, a sandbox,
   hello and cleanup. Supply an image only for a container default.

```json
{
  "mcpServers": {
    "hermitbox": {
      "type": "stdio",
      "command": "hermitbox",
      "args": ["mcp"],
      "env": {
        "HERMITBOX_API_URL": "${env:HERMITBOX_API_URL}",
        "HERMITBOX_API_KEY": "${env:HERMITBOX_API_KEY}"
      }
    }
  }
}
```

[Cursor's reference](https://cursor.com/docs/mcp) owns this file and its variable syntax.
Keep literal credentials out of it. Requests keep the host's [tier refusals](https://docs.hermitbox.dev/v0.2.4/reference/tiers.md).
