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

# Claude Code

> Add the Pipecorn MCP server to Claude Code with a single command and your API key.

Claude Code connects through `mcp-remote` and authenticates with your API key
in the `X-API-Key` header. Node.js is required.

Run the following in your terminal, replacing `YOUR-API-KEY` with your
[Pipecorn API key](/api-reference/API-key):

```bash theme={null}
claude mcp add pipecorn -e API_KEY=YOUR-API-KEY -- npx mcp-remote https://mcp.pipecorn.com/mcp --header "X-API-Key:\${API_KEY}"
```

The `-e` flag stores the key as an environment variable for the server
process, so it never appears in the command that Claude Code records. Check
the connection with `/mcp` inside Claude Code, which lists Pipecorn's tools.

To make the server available in every project, add `--scope user`.
