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

# Claude Code

> Connect SendKit to Claude Code for AI-powered email management from the terminal

[Claude Code](https://docs.anthropic.com/en/docs/claude-code) is Anthropic's CLI tool for working with Claude directly in your terminal. You can connect it to SendKit's MCP server to manage your email infrastructure with natural language.

## Prerequisites

* Claude Code installed (`npm install -g @anthropic-ai/claude-code`)
* A SendKit API key with **Full** permission

## Setup

<Steps>
  <Step title="Add the MCP server">
    Run the following command in your terminal:

    ```bash theme={null}
    claude mcp add --transport http sendkit https://mcp.sendkit.dev/sendkit \
      --header "Authorization: Bearer sk_your_api_key_here"
    ```

    <Note>
      Replace `sk_your_api_key_here` with your actual API key from the [SendKit dashboard](https://app.sendkit.dev).
    </Note>

    This adds the server to your project's `.mcp.json` file. To add it globally instead, append the `--scope user` flag.
  </Step>

  <Step title="Verify the connection">
    Start Claude Code and ask it to interact with your SendKit account:

    ```bash theme={null}
    claude
    ```

    ```
    List all my SendKit domains
    ```
  </Step>
</Steps>

## Manual configuration

You can also configure the server manually by creating a `.mcp.json` file in your project root:

```json theme={null}
{
  "mcpServers": {
    "sendkit": {
      "type": "http",
      "url": "https://mcp.sendkit.dev/sendkit",
      "headers": {
        "Authorization": "Bearer sk_your_api_key_here"
      }
    }
  }
}
```

For global configuration, add the same to `~/.claude.json`.

## Example prompts

Once connected, you can use natural language to manage your SendKit account:

```
Create a sender called "Support" with username "support" on my verified domain
```

```
Show me all contacts that are subscribed to the "Newsletter" list
```

```
Send a test email from support@mydomain.com to test@example.com with subject "Hello"
```

```
What's my sending reputation right now?
```
