# Connect Cursor to NexArt MCP

URL: https://docs.nexart.io/docs/mcp/connect/cursor

Configure Cursor&#x27;s remote MCP support for the hosted NexArt MCP Server with the API key injected from an environment variable, never committed to a project file.

## 1. Put the key in an environment variable

Shell profile (example)

```
export NEXART_API_KEY="nx_live_YOUR_API_KEY"
```

Use your operating system&#x27;s secure secret storage where possible. Restart Cursor so it sees the variable.

## 2. Add the server

Cursor reads `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` (one project) and supports `${env:NAME}` interpolation in headers. See Cursor&#x27;s MCP documentation.

mcp.json (no key in the file)

```
{
  "mcpServers": {
    "nexart": {
      "url": "https://mcp.nexart.io/",
      "headers": {
        "Authorization": "Bearer ${env:NEXART_API_KEY}"
      }
    }
  }
}
```

Never write the real key into `mcp.json`, especially a project file that may be committed.

## 3. Confirm the tools

Open Cursor&#x27;s MCP settings and check that nine NexArt tools are listed. Then ask the agent to call `nexart_get_certification_setup` without recording anything. Keep tool approval on for `nexart_record_execution`.

For certification arguments see the quickstart.
