---
url: /build/quickstart.md
description: >-
  Connect Claude Code to your DutyGraph workspace over MCP and read your first
  company in five minutes.
---

# Quickstart

Connect Claude Code to your DutyGraph workspace and read your first company.

## 1. Create a token

Sign in as an advisor. Open **Settings › MCP access › Connect an AI assistant (MCP)**.

1. Enter a name, for example "Claude Code on my laptop".
2. Keep **Read** and **Write**.
3. Select **Create token** and copy it now. It starts with `dgp_` and is shown once.

## 2. Add the server

```sh
claude mcp add --transport http dutygraph https://dutygraph.com/api/mcp \
  --header "Authorization: Bearer $DUTYGRAPH_TOKEN"
```

Clients that support sign-in, such as Claude.ai and ChatGPT, can skip the token and sign in through the browser. See [Sign-in and tokens](authentication.md).

## 3. Ask for your companies

```text
List my DutyGraph companies, then show the Company Repo index for the first one.
```

Claude calls `list_companies` and `get_company_repo_index`. Nothing is changed.

## 4. Make a first change

Ask Claude to preview a team import from a CSV file. `import_roster_csv` previews unless you say apply, and it never invites anyone.

## Next

* [Connect other AI assistants](mcp.md)
* [Every tool](../reference/mcp-tools.md)
* [The CLI](cli.md)
