Use your own AI
Connect Claude, Cursor, VS Code, Codex, Gemini CLI and other AI tools to your store over MCP - the server URL, a key, and the quickest setup for each client.
MCP (Model Context Protocol) is an open standard that lets an AI app use tools from other services. Every Starsell store is an MCP server, so the AI tool you already use can work in your store with the same tools as Starsell AI: read products, orders and sales, and, with a key that can edit, change product copy and prices.
What you need
- Server URL:
https://starsell.app/api/mcp - A key:
vtk_..., sent as the headerAuthorization: Bearer vtk_... - Access: the Starsell AI permission in the store
Every store uses the same URL: the key decides which store a client reaches. The server speaks MCP's Streamable HTTP transport and takes a key only. It has no OAuth sign-in, so a client has to be able to send a header.
Make a key
Open Use your own AI
Sign in to the admin at starsell.app and open your store. In the sidebar, click Starsell AI, then Use your own AI under it. The Use your own AI card under your conversations links there too (Set up).
Choose what the key can do
Under What a new key can reach, pick Read only or Can edit. See Read only or can edit.
Name it and make it
Name the key after the client you connect, for example "Claude Desktop", and click Make a key.
Copy it now
The key is shown once. Only a hash of it is kept, so a lost key can't be shown again: revoke it and make a new one. Right after you make it, Set up a client shows the setup for Claude Code, Claude Desktop and Cursor with your key filled in, and an Add to Cursor button that installs it with the key.
The same keys are listed in Settings > API and webhooks, under API and MCP keys. It is one list: a key made in either place works for MCP and for the store API.
Read only or can edit
| Key | What the client can do |
|---|---|
| Read only | Read products, orders and sales. It can look but not change anything. |
| Can edit | The same, plus change product copy and prices. |
Making a key that can edit needs the products permission in the store.
Edits over MCP go live at once
In the admin, Starsell AI drafts a change as a card you apply or skip. Over MCP, a key that can edit writes the change to the live store the moment the client calls the tool. The client is told to confirm with you first, but your client decides. Start with Read only, and leave your client's ask-before-running setting on.
Set up your client
The examples use starsell-your-store as the server name and vtk_your_key as the key. The admin page names the server after your store: starsell- and the store's slug.
| Client | Quickest path | Can send the key |
|---|---|---|
| Claude Code | One command | Yes |
| Claude Desktop and claude.ai | Custom connector by URL, or the config file | Connector: in beta. Config file: yes |
| ChatGPT | - | No |
| Cursor | Add to Cursor | Yes |
| VS Code | Add to VS Code | Yes |
| Windsurf | Config file | Yes |
| Codex | One command | Yes |
| Gemini CLI | One command | Yes |
Claude Code
Copy the command with the button on the box and run it in a terminal:
claude mcp add --transport http starsell-your-store https://starsell.app/api/mcp \
--header "Authorization: Bearer vtk_your_key"- The server is yours in the current project only (
local, the default). Add--scope userto use it in every project:claude mcp add --transport http --scope user starsell-your-store .... claude mcp listshows✔ Connectedonce it works. Inside Claude Code,/mcpshows the server's status.
To share the server with your team in the project's .mcp.json (--scope project), keep the key out of the file. Claude Code fills in ${STARSELL_KEY} from each person's environment:
{
"mcpServers": {
"starsell-your-store": {
"type": "http",
"url": "https://starsell.app/api/mcp",
"headers": { "Authorization": "Bearer ${STARSELL_KEY}" }
}
}
}Claude Desktop and claude.ai
A custom connector works on claude.ai, in Claude Desktop and in the mobile apps.
- Open Customize > Connectors, click + Add, then Add custom connector. On Team and Enterprise plans, an Owner adds it under Organization settings > Connectors, then each member connects to it.
- Enter a name, such as
Starsell, and the URLhttps://starsell.app/api/mcp. Click Continue. - Under Authentication, choose No sign in.
- Under Request headers, pick
authorizationand enterBearer vtk_your_key, with the wordBearerand a space: Claude sends the value exactly as you type it. - Click Add. In a chat, turn the connector on from + > Connectors.
No Request headers in the dialog?
Anthropic's docs say request headers are in beta and only some organizations have them. Without them, a custom connector can't send the key, so it can't reach Starsell. Use the config file in Claude Desktop instead.
Claude connects to the server from Anthropic's cloud, not from your computer. On Team and Enterprise plans, everyone who uses the connector shares the key you entered, with your permissions, so use a Read only key there unless everyone should edit.
ChatGPT
ChatGPT can't connect to Starsell yet. A custom MCP server in ChatGPT (Plugins > + > Add custom MCP server on the web) signs in with OAuth or no authentication only, and OpenAI's docs say ChatGPT can't send a custom API key. Starsell's server needs the key in a header and has no OAuth sign-in, so the connection is refused.
To work in your store with OpenAI's models, use Codex, which takes a key.
Cursor
Cursor opens and asks to install the starsell server. The button carries a placeholder key: once the server is installed, open its config in Cursor and replace vtk_your_key with your key.
The admin skips that step: right after you make a key, pick Cursor under Set up a client and click Add to Cursor. That link carries your new key.
VS Code
For GitHub Copilot in VS Code.
VS Code opens the server's details for you to review before you install it. The button carries a placeholder key: once the server is installed, run MCP: Open User Configuration from the Command Palette and replace vtk_your_key with your key. The server goes into VS Code's own MCP configuration, which VS Code passes on to Copilot sessions.
The same server from a terminal:
code --add-mcp '{"name":"starsell-your-store","type":"http","url":"https://starsell.app/api/mcp","headers":{"Authorization":"Bearer vtk_your_key"}}'Windsurf
Windsurf is now Devin Desktop. In Cascade's MCP menu, click Open MCP config file (~/.config/devin/mcp_config.json on macOS and Linux, %AppData%/devin/mcp_config.json on Windows) and add the server:
{
"mcpServers": {
"starsell-your-store": {
"serverUrl": "https://starsell.app/api/mcp",
"headers": { "Authorization": "Bearer vtk_your_key" }
}
}
}To keep the key out of the file, write "Bearer ${env:STARSELL_KEY}". With the Devin CLI, one command writes the same file:
devin mcp add -s user starsell-your-store https://starsell.app/api/mcp -H "Authorization: Bearer vtk_your_key"Codex
OpenAI's Codex CLI and its IDE extension share ~/.codex/config.toml. Codex reads the key from an environment variable and sends it as Authorization: Bearer:
export STARSELL_KEY=vtk_your_key
codex mcp add starsell-your-store --url https://starsell.app/api/mcp --bearer-token-env-var STARSELL_KEYPut the export in your shell profile so Codex always has it. The command writes this, which you can also add by hand:
[mcp_servers.starsell-your-store]
url = "https://starsell.app/api/mcp"
bearer_token_env_var = "STARSELL_KEY"For a key in the file instead, use http_headers = { "Authorization" = "Bearer vtk_your_key" }. codex mcp list shows the server; in Codex, /mcp lists the active ones.
Gemini CLI
gemini mcp add --transport http --scope user --header "Authorization: Bearer vtk_your_key" starsell-your-store https://starsell.app/api/mcpOptions go before the name. Without --scope user the server goes into the current project's .gemini/settings.json; with it, into ~/.gemini/settings.json for every project. By hand:
{
"mcpServers": {
"starsell-your-store": {
"httpUrl": "https://starsell.app/api/mcp",
"headers": { "Authorization": "Bearer ${STARSELL_KEY}" }
}
}
}Gemini CLI fills in ${STARSELL_KEY} from the environment. gemini mcp list shows each server and whether it connected.
Other clients
Any MCP client that speaks Streamable HTTP and can send a request header works. Give it the URL https://starsell.app/api/mcp and the header Authorization: Bearer vtk_your_key. A client that only runs local servers can connect through mcp-remote, as in the Claude Desktop config file. A client that connects to remote servers only through OAuth can't use Starsell.
Check that it works
Ask your client something that only reads, for example "Use the Starsell tools to show this week's sales summary". Then look at Use your own AI in the admin: the key's line shows the client that connected and "used just now", and Recent calls lists sales_summary.
What a client can do
The Tools card lists what a key reaches, by group:
| Group | Tools |
|---|---|
| Products | list_products, get_product; with Can edit, update_product_copy and update_price |
| Orders | list_orders, get_order |
| Analytics | sales_summary |
The read tools are the same as in Starsell AI: see What it can do. With Can edit, update_product_copy changes the title and description of one product in one of the store's languages, and update_price sets the price of one version of a product and answers with the old price, the new one and the margin it leaves.
Every edit goes in the store's activity log under the name of the person who made the key and the key's name ("MCP key "Claude Desktop" changed the price of ..."), and fires Product changed, so automations and webhooks see it like any other edit. A tool the key's permissions don't reach is crossed out on the card; clients never see it. Arguments, results and the protocol are in the MCP server reference.
A key acts as you
- Your permissions, checked on every call. A key reaches what you can reach in the store at the moment of the call. Without the orders permission the order tools are gone; without customers, customer details are left out of orders.
- One store. A key reaches only the store it was made in.
- It stops when you lose access. If you no longer have Starsell AI in the store, your keys stop working over MCP at once.
Keys and calls
Each key in the list shows its name, the client that last connected with it, when it was last used, who made it if it wasn't you, and Read only or Can edit. A green dot means it was used in the last 24 hours.
- Revoke stops a key at once. You can revoke your own keys; with the settings permission, anyone's.
- A store can have 25 keys at a time.
- Recent calls shows the latest 20 calls: the tool, the key, how long it took or why it failed, and when, with the calls and failures in the last 24 hours. Calls are kept for 30 days.
Make one key per client and name it after the client, so Recent calls and the activity log tell you which one did what. A key in a config file is a key: don't commit it, and revoke the ones you no longer use.
Related: MCP server reference, Starsell AI, Authentication, API and webhooks settings.
What it can do
Every tool Starsell AI has - reading products, orders and sales, drafting copy and translations, proposing prices - what each one returns, and the permission it needs.
Store settings
How the settings drawer works - opening it, finding any setting with search, saving changes, and what each section covers.