# How to connect your AI app to Q-CTRL MCP

> Add Q-CTRL MCP to Claude, Claude Code, VS Code, Cursor and other MCP apps

Source: https://docs.q-ctrl.com/agent-resources/mcp/how-to-connect-your-ai-app-to-q-ctrl-mcp

Every app uses the same settings:

| Setting             | Value                        |
| ------------------- | ---------------------------- |
| Server URL          | `https://mcp.q-ctrl.com/mcp` |
| Transport           | Streamable HTTP              |
| OAuth client ID     | `mcp-login`                  |
| OAuth client secret | None. Leave it empty         |

The first time the app connects, your browser opens the Q-CTRL sign-in page. Sign in with your Q-CTRL account. The browser then sends you back to the app.

## Claude

1. Go to **Customize > Connectors** and click **Add custom connector**.
2. Enter the name `Q-CTRL` and the URL `https://mcp.q-ctrl.com/mcp`.
3. In the advanced settings, set the OAuth client ID to `mcp-login`. Leave the secret empty.
4. Click **Add**, then **Connect**, and sign in.

On a Team or Enterprise plan, an Owner adds the connector in **Organization settings > Connectors**. Each member then clicks **Connect** on it.

## Claude Code

Add the server:

```bash
claude mcp add --transport http --client-id mcp-login qctrl https://mcp.q-ctrl.com/mcp
```

Then sign in:

```bash
claude mcp login qctrl
```

Add `--scope user` to the first command to use the server in all your projects.

## VS Code

Add this to `.vscode/mcp.json`, or to your user `mcp.json` (run **MCP: Open User Configuration**):

```json
{
  "servers": {
    "qctrl": {
      "type": "http",
      "url": "https://mcp.q-ctrl.com/mcp",
      "oauth": {
        "clientId": "mcp-login"
      }
    }
  }
}
```

Click **Start** above the server in `mcp.json`, and sign in.

## Cursor

Add this to `.cursor/mcp.json` in your project, or to `~/.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "qctrl": {
      "url": "https://mcp.q-ctrl.com/mcp",
      "auth": {
        "CLIENT_ID": "mcp-login"
      }
    }
  }
}
```

Open the server on the **Customize** page, and sign in.

## Other apps

Any app that supports Streamable HTTP and OAuth with a fixed client ID can connect. Use the settings in the table above.

## Check that it works

Ask your app:

> Who am I signed in as on Q-CTRL?

The app calls `qctrl_whoami` and shows your name, email and organizations.
