# Claude Code

> Connect GetIntel's MCP server to Claude Code with one command, confirm the connection, and replace or remove the token.

Source: https://getintel.ai/docs/mcp/clients/claude-code/

[Claude Code](/blog/ai-visibility-tools-mcp-claude-code/) connects to GetIntel over its native HTTP transport. Once connected, it can read your GetIntel data and edit your website's code in the same session.

<Steps>

1. **Create a token** in GetIntel under **Integrations**. Tick action access if Claude Code should update tasks and plan your week. See [Tokens and permissions](/docs/mcp/tokens-and-permissions/).

2. **Add the server.** In your project's directory, run:

   ```sh
   claude mcp add --transport http getintel https://app.getintel.ai/mcp \
     --header "Authorization: Bearer YOUR_TOKEN"
   ```

3. **Confirm.** Start Claude Code and run `/mcp`. **getintel** should show as connected.

4. **Try it.** Ask: *"Using GetIntel, what are my weakest topics this week?"*

</Steps>

## Replace or remove the token

```sh
claude mcp remove getintel
```

Then run the add command again with the new token.

## Or connect without a token

Claude Code also supports sign-in. Add the server with no `--header`:

```sh
claude mcp add --transport http getintel https://app.getintel.ai/mcp
```

Claude Code opens GetIntel's sign-in page, then an approval page where you pick a brand and choose whether to allow actions. The access token it gets lasts 2 hours and refreshes itself automatically.

<Aside type="tip">
Open Claude Code in your website's repository. Then it can read a task with `get_task` and make the change in the same conversation. See [Ship fixes with your coding agent](/docs/academy/playbooks/ship-fixes-with-your-coding-agent/).
</Aside>
