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

# Claude Code

> Connect Claude Code to up-to-date and token-efficient documentation.

How to set up Ref with [Claude Code](https://www.claude.com/product/claude-code).

## Install

Run the `claude` install command. You can copy a version of the command with your API key pre-populated at [ref.tools/install](https://ref.tools/install)

```
claude mcp add --transport http Ref https://api.ref.tools/mcp --header "x-ref-api-key: <YOUR_API_KEY>"
```

You can find your API key at [ref.tools/keys](https://ref.tools/keys)

## Verify

Run the command:

```
claude mcp list
```

You should see:

```
➜  claude mcp list
Ref: https://api.ref.tools/mcp (HTTP)
```

## Get help

If you have any issues, please reach out to `help@ref.tools`. We're happy to help you get started!
