# Usercase MCP server

> Ask real users on your site and run virtual users in a real browser, then fix what they hit.

- Repository: —
- Page: https://hostedmcp.org/servers/usercase/mcp
- Transport: stdio
- Stars: 0
- Latest version: 0.2.17

## Install

### Claude Code

```sh
claude mcp add --env 'USERCASE_API_KEY=<YOUR_USERCASE_API_KEY>' mcp -- npx -y @usercase/mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@usercase/mcp"
      ],
      "env": {
        "USERCASE_API_KEY": "<YOUR_USERCASE_API_KEY>"
      }
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@usercase/mcp"
      ],
      "env": {
        "USERCASE_API_KEY": "<YOUR_USERCASE_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"mcp","type":"stdio","command":"npx","args":["-y","@usercase/mcp"],"env":{"USERCASE_API_KEY":"<YOUR_USERCASE_API_KEY>"}}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@usercase/mcp"
      ],
      "env": {
        "USERCASE_API_KEY": "<YOUR_USERCASE_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add mcp --env 'USERCASE_API_KEY=<YOUR_USERCASE_API_KEY>' -- npx -y @usercase/mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.mcp]
command = "npx"
args = ["-y", "@usercase/mcp"]

[mcp_servers.mcp.env]
USERCASE_API_KEY = "<YOUR_USERCASE_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'USERCASE_API_KEY=<YOUR_USERCASE_API_KEY>' mcp npx -- -y @usercase/mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@usercase/mcp"
      ],
      "env": {
        "USERCASE_API_KEY": "<YOUR_USERCASE_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `USERCASE_API_KEY` | no | yes | Optional. Leave empty to connect in the browser on first use, or paste a key from Dashboard → Settings → API keys. |
| `USERCASE_DIAGNOSTICS` | no | no | Optional. Set to off to stop sending tool failure diagnostics to the Usercase team. |
