> For the complete documentation index, see [llms.txt](https://docs.dapta.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dapta.ai/dapta-mcp/setup/connect-claude-code.md).

# Connect Claude Code

Claude Code connects from the terminal. One command registers the `dapta-ai` MCP for your user, and Dapta gives you the exact command with your key already inside.

{% hint style="info" %}
You will need the API key from the previous step. If you do not have one yet, see [Mint your API key](/dapta-mcp/setup/mint-your-api-key.md).
{% endhint %}

***

**Step 1:** On the **MCP Access** page in Dapta, scroll to **Connect your Claude client** and switch to the **Claude Code** tab. Click **Copy** next to the command.

<figure><img src="/files/xplHQhBvCbblKJIQplEL" alt="The Connect your Claude client card in Dapta with the Claude Code tab selected, showing the claude mcp add command with a Copy button and the Download skills bundle button"><figcaption><p>The Claude Code tab on the MCP Access page. Copy the full command, key included.</p></figcaption></figure>

***

**Step 2:** Paste and run the command in any terminal. It will look like this:

{% code title="terminal" overflow="wrap" %}

```bash
claude mcp add --transport http dapta-ai https://mcp.dapta.ai/mcp \
  --header "x-api-key: <your-key>"
```

{% endcode %}

***

**Step 3:** Start (or restart) Claude Code. The `dapta-ai` server is now available to your sessions.

***

## Next step

Connected. Now install the skills so Claude knows how to use the tools.

{% content-ref url="/pages/kL1MYg3Wr5gQLItnoq0w" %}
[Install skills (Claude Code)](/dapta-mcp/setup/install-skills-bundle.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.dapta.ai/dapta-mcp/setup/connect-claude-code.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
