# Connect Claude Code

For Claude Code (the terminal tool) a single command is enough. The exact address is shown in the app under **AI assistant → "Connect the assistant" → Claude Code**.

## Video: connecting Claude Code

The video starts right at the Claude Code chapter — from the terminal command to the first event created from a prompt:

<YouTube id="ld2ehRvPpFo" start={247} title="Connect Your AI Assistant to Your Calendar – chapter: Claude Code" poster="/images/video-posters/ld2ehRvPpFo.jpg" maxWidth="800px" />

## Step by step

1. Run this command in your project:
   ```bash
   claude mcp add --transport http kalender-sync https://app.kalender-sync.de/mcp
   ```
2. Start Claude Code and type `/mcp`. Pick **kalender-sync**, then **Authenticate** — that opens our sign-in in the browser.
3. Sign in and confirm the grant on the **consent screen** — pick the calendars, set the detail level per calendar. Only now does the access exist.

Then you can dive right in, e.g.: *"Which calendars are shared via Kalender Sync?"*, *"Where do I have two hours in one block this week?"* or *"When is my dentist appointment?"*

## Disconnect again

`claude mcp remove kalender-sync` removes the server **only locally** in Claude Code. The authoritative revoke is the one in Kalender Sync under **AI assistant → Revoke** → [Revoke access](https://docs.kalender-sync.de/en/ki-assistent/#revoke-access).