> ## 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 Replit

> Add storekit to Replit Agent as an MCP server with a one-click install link or by URL, sign in with your storekit login and ask your first question.

**Time:** about five minutes. **You need:** a storekit login on an account enabled for the AI assistant beta, and a Replit account. Once connected, Replit Agent can use storekit's tools in every one of your Repls.

## Add the Server

The quickest route is the install link, which pre-fills the name and URL for you.

<Steps>
  <Step title="Open the install link">
    Open [Add storekit to Replit](https://replit.com/integrations?mcp=eyJkaXNwbGF5TmFtZSI6InN0b3Jla2l0IiwiYmFzZVVybCI6Imh0dHBzOi8vbWNwLnN0b3Jla2l0LmNvbS9tY3AifQ==). Replit opens its **Connect an MCP server** dialog with the display name `storekit` and the URL already filled in:

    ```text theme={null}
    https://mcp.storekit.com/mcp
    ```

    If you would rather add it by hand, go to [replit.com/integrations](https://replit.com/integrations), scroll to **MCP Servers for Replit Agent**, choose **+ Add MCP server** and enter the same name and URL. Leave **Advanced settings** alone — storekit uses OAuth, not header keys.
  </Step>

  <Step title="Test, save and sign in">
    Choose **Test & save**. Replit connects to storekit and starts the sign-in flow.

    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 Replit, storekit is listed under **MCP Servers** with a connected status.
  </Step>
</Steps>

## Ask Your First Question

Replit Agent picks up the server automatically, but naming it helps: start your prompt with "Use the storekit MCP server to …".

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

When a tool needs confirmation, Replit Agent shows a prompt before it runs. storekit marks creating a discount code and creating a payment link as writes, so read the summary — code, amount, stores, expiry — before you allow either of them.

## Disconnecting

In [replit.com/integrations](https://replit.com/integrations), under **MCP Servers for Replit Agent**, remove the storekit server. See [Permissions & Privacy](/docs/guides/ai/permissions-and-privacy) for what storekit keeps.

<Note>
  Replit's menus are Replit's and change from time to time. If a label here does not match what you see, look for the same idea — a list of MCP servers with an option to add a custom one by URL.
</Note>


## Related topics

- [Connect Your AI Agent](/docs/guides/ai/overview.md)
- [API & Webhooks](/docs/guides/integrations/api-webhooks.md)
- [Connect Claude](/docs/guides/ai/connect/claude.md)
- [Connect Lovable](/docs/guides/ai/connect/lovable.md)
- [Out-of-Stock Log and Morning Digest](/docs/guides/build/recipes/out-of-stock-log.md)
