# Claude (connectors)

> Connect Claude on the web to the hosted dFlow MCP server with OAuth.

Web page: /docs/mcp/claude/

Use this path for Claude in the browser via **Settings → Connectors**. The MCP URL is the same as on the dashboard **Agents** screen.

## MCP URL

```
https://k8s.dflow.sh/mcp
```

Copy that URL before you open Claude.

## Steps

1. **Copy the URL** above (or copy it from **Dashboard → Agents → Connect MCP**).
2. In Claude, open **Settings → Connectors** ([claude.ai/settings/connectors](https://claude.ai/settings/connectors)) and choose **Connect** or add a connector.
3. Paste the MCP URL and save. Claude will start OAuth when it first calls the server.
4. **Sign in** to dFlow in the browser when prompted and approve the connection.
5. On the consent screen, pick the **workspace** this connector may use and choose scopes. **Deploy is off by default** — leave Deploy unchecked unless this client should apply changes to the cluster.
6. When consent finishes, you are **done**. Try a read-only tool such as `whoami` or `list_projects`.

## Turn Deploy on later

If you only granted Read and Stage, deploy tools return a plain message that the connection can stage but not deploy. Reconnect: open **Dashboard → Agents**, revoke the old grant if you want a clean slate, add the connector again in Claude, and on consent **tick Deploy** (or use **Read · Stage · Deploy**).

## Troubleshooting

| Symptom | What to do |
| --- | --- |
| **401** on the next call | The grant was revoked or the token expired. Reconnect in Claude and sign in again, or check **Connected agents** on the dashboard and revoke stale grants. |
| **Scope error** (can stage but not deploy) | The grant has no Deploy scope. Reconnect and enable **Deploy** on the consent screen. |
| Connector stuck on old workspace | Revoke the grant on the dashboard, then add the connector again and pick the correct workspace. |

For Claude Code on the CLI, see [Claude Code](/docs/mcp/claude-code). For token-based automation, see the bearer section on the [MCP overview](/docs/mcp).
