# Cursor

Add your Wire container to Cursor's MCP configuration.

## Configuration File Location

- **macOS**: `~/.cursor/mcp.json`
- **Windows**: `%USERPROFILE%\.cursor\mcp.json`
- **Linux**: `~/.cursor/mcp.json`

## With OAuth

<PersonalizedCode
  client:load
  code={`{
  "mcpServers": {
    "YOUR_CONTAINER_NAME": {
      "url": "https://YOUR_ORG_SLUG.mcp.usewire.io/container/YOUR_CONTAINER_ID/mcp"
    }
  }
}`}
/>

When you first use a Wire tool, your browser will open to authorize access.

## With API Key

:::tip[Use a container-scoped key]
Create a key from the container's **Access** tab in the Wire dashboard. Container-scoped keys only work for one container, so a leaked key can't reach your other data. See [Authentication](/mcp/authentication/#container-scoped-keys-recommended) for details.
:::

<PersonalizedCode
  client:load
  code={`{
  "mcpServers": {
    "YOUR_CONTAINER_NAME": {
      "url": "https://YOUR_ORG_SLUG.mcp.usewire.io/container/YOUR_CONTAINER_ID/mcp",
      "headers": {
        "x-api-key": "YOUR_API_KEY"
      }
    }
  }
}`}
/>

## Finding Your Container URL

Copy the MCP URL from your container's detail page in the Wire dashboard.

Restart Cursor after updating the configuration.