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

# Connect Claude Code

> Add the storekit MCP server to the Claude Code command line with one command, sign in with your storekit login and ask your first question.

**Time:** two minutes. **You need:** a storekit login on an account enabled for the AI assistant beta, and [Claude Code](https://docs.anthropic.com/en/docs/claude-code) installed.

## Add the Server

<Steps>
  <Step title="Register the server">
    In a terminal, run:

    ```bash theme={null}
    claude mcp add --transport http storekit https://mcp.storekit.com/mcp
    ```

    By default this adds the server to your local scope for the current project. Add `--scope user` to make it available in every project.
  </Step>

  <Step title="Sign in">
    Start `claude`, then run `/mcp`. Select **storekit** and choose **Authenticate**.

    Your browser opens the storekit dashboard. Sign in with your usual storekit email and password if you are not already signed in. You briefly see **Connecting your MCP client, please wait...** and are then sent back to your assistant.

    <Info>
      The assistant is connected to the account of the user who signed in. If you belong to more than one storekit account, it uses your first account. There is no account picker during sign-in.
    </Info>

    Back in the terminal, `/mcp` shows storekit as connected.
  </Step>
</Steps>

## Ask Your First Question

Ask your assistant:

```text theme={null}
Which stores are on my storekit account?
```

<Check>
  The assistant lists your stores by name, with their timezone and currency. If it does, you are connected. Try a second question — "How many orders did we take yesterday?" — then head to [What You Can Ask](/docs/guides/ai/what-you-can-ask).
</Check>

If the assistant says it cannot reach storekit or asks you to sign in again, see [Troubleshooting](/docs/guides/ai/troubleshooting).

## Approving Writes

Claude Code asks before each tool call unless you have allowed that tool. For the two storekit writes — creating a discount code and creating a payment link — read the arguments it shows and answer per call rather than allowing them for the whole session.

## Disconnecting

```bash theme={null}
claude mcp remove storekit
```

To drop only the sign-in and keep the server registered, run `/mcp` inside Claude Code, select **storekit** and choose **Clear authentication**.


## Related topics

- [Connect Claude](/docs/guides/ai/connect/claude.md)
- [Connect Cursor or VS Code](/docs/guides/ai/connect/cursor-vscode.md)
- [Connect Your AI Agent](/docs/guides/ai/overview.md)
- [Developer Introduction](/docs/developers/introduction.md)
- [Authentication](/docs/developers/mcp/authentication.md)
