# Connect Claude Code to Harbor

> Add your Harbor workspace as a remote MCP server in Claude Code and verify which Harbor account it uses.

Connect Claude Code to your Harbor workspace to use the apps and tools available to you, or build an app Harbor will keep running. You need a Harbor workspace and a current version of Claude Code.

## Add the server

Copy the MCP URL from your workspace's AI tools page. Replace `YOUR_MCP_URL` below with that full URL, including `/mcp`.

```sh
claude mcp add --transport http --scope user harbor YOUR_MCP_URL
```

In a Claude Code session, run `/mcp`, select Harbor and complete sign-in when prompted. This uses user scope, so the configuration is available across your projects. Don't commit personal connection settings or credentials to a repository.

## Confirm the connection

Ask Claude Code: `Call Harbor's whoami tool and tell me who I'm signed in as.` If Harbor doesn't appear, check the URL and the entry in `/mcp`. If you signed in as the wrong person, reconnect with the correct account before calling any app tools.

Next: [Deploy your first Harbor app](/docs/quickstart.md). See [Claude Code's MCP documentation](https://code.claude.com/docs/en/mcp) for client configuration options.
