> ## Documentation Index
> Fetch the complete documentation index at: https://leverhq.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect to Claude Code

> Set up Lever in Claude Code

# Connect to Claude Code

Add Lever to Claude Code with a single command.

## Setup

```bash theme={null}
claude mcp add lever \
  --transport streamable-http \
  --url https://api.leverhq.app/mcp
```

Claude Code will open a browser window for you to log in with your Lever account and authorize. Once you approve, the connection is established automatically.

## Verify the Connection

In your next Claude Code session, ask:

> "What ad accounts do I have connected to Lever?"

Claude Code will call the `list_connections` tool and show your connected accounts.

## Alternative: API Key

If you prefer to use an API key instead of OAuth:

```bash theme={null}
claude mcp add lever \
  --transport streamable-http \
  --url https://api.leverhq.app/mcp \
  --header "Authorization: Bearer YOUR_API_KEY"
```

Replace `YOUR_API_KEY` with the key from your [Lever dashboard](https://leverhq.app).

## Troubleshooting

<AccordionGroup>
  <Accordion title="Claude Code doesn't see the Lever tools">
    Run `claude mcp list` to verify the server is registered. If not listed, re-run the `claude mcp add` command above.
  </Accordion>

  <Accordion title="Authentication error">
    Try removing and re-adding the server: `claude mcp remove lever` then run the add command again. If using an API key, verify it's correct or generate a new one in the [Lever dashboard](https://leverhq.app).
  </Accordion>
</AccordionGroup>
