Skip to main content

Access tokens and MCP

Connect Claude, ChatGPT, Cursor, VS Code and other AI apps to your Instant project over MCP, or use an access token for scripts and CI.

AI apps such as Claude, ChatGPT, Claude Code, Codex and Cursor can work on your Instant project over the Model Context Protocol (MCP). Once connected, an app can read your layouts and store details, change layout code, generate images and publish.

The Instant MCP server URL is:

https://api.instant.so/mcp

Connect an app

  1. Add Instant to your app; see Set up your app below.

  2. When Instant opens in your browser, sign in and select the project.

  3. Review what the app can do, then click Connect.

Connected apps appear in the MCP connections card under Settings → MCP access.

Set up your app

Claude (claude.ai, Claude Desktop, Cowork)

  • One-click: Add Instant to Claude. Review the name and URL Claude fills in, then confirm.

  • Manually: in Claude, go to Customize → Connectors, click + Add, choose Add custom connector, enter a name and the server URL, click Continue, then click Add.

  • On Team and Enterprise plans an owner first adds the connector under Organization settings → Connectors → Add → Custom → Web; members then click Connect in Customize → Connectors.

ChatGPT

  1. Click the plus button.

  2. Choose Add custom MCP server.

  3. Enter a name and, under Connection, the server URL.

  4. Choose OAuth for authentication.

  5. Click I understand and want to continue.

  6. Click Create as a plugin.

  7. Install the plugin, then mention it in a chat with @.

Other apps

App

Setup

Docs

Claude Code

Run claude mcp add --transport http instant https://api.instant.so/mcp, then /mcp in a session to sign in

Codex

Run codex mcp add instant --url https://api.instant.so/mcp

Cursor

Gemini CLI

Run gemini mcp add --transport http instant https://api.instant.so/mcp, then /mcp auth instant in a session to sign in

Any other app

Add the server URL as a remote MCP server. The app needs to support MCP sign-in (OAuth).

What apps can do

Connected apps and access tokens can:

  • Read your layouts, layout code, brand kit, store details, and the connected Shopify store's products and collections.

  • Create code layouts and change their code and settings, and change the brand kit.

  • Take a screenshot of a code layout at desktop or mobile width.

  • Publish and unpublish layouts.

  • Generate images with AI, and add images to the project's assets.

Store-wide default layouts, such as your home page, header, footer and default templates, can be read but are changed and published in the Instant dashboard.

Generating images uses your project's AI credits, the same pool used by the dashboard Agent and Studio. When the project has no credits left, image generation stops and everything else keeps working. See AI credits.

Remove an app's access

  1. Open Settings → MCP access for your project.

  2. In the MCP connections card, click the trash icon on the app's row.

  3. Confirm with Remove access.

Use an access token for scripts and CI

For scripts, CI and apps that can't sign in, use an access token. Apps that sign in should connect as described above.

  1. Open Settings → MCP access for your project.

  2. In the Access tokens card, click New token.

  3. Give the token a Name for where it will be used, then click Add.

  4. Copy the token. This is the only time the full token is shown.

Send the token as an Authorization: Bearer <token> header. Keep it in an environment variable or your CI's secret store rather than in a file or command. With the token in INSTANT_PAT:

  • Claude Code, in .mcp.json:

{ "mcpServers": { "instant": { "type": "http", "url": "https://api.instant.so/mcp", "headers": { "Authorization": "Bearer ${INSTANT_PAT}" } } } }
  • Codex:

codex mcp add instant --url https://api.instant.so/mcp --bearer-token-env-var INSTANT_PAT
  • Cursor, in mcp.json:

{ "mcpServers": { "instant": { "url": "https://api.instant.so/mcp", "headers": { "Authorization": "Bearer ${env:INSTANT_PAT}" } } } }

Access tokens can also ask the Agent to build or change a layout, which uses AI credits.

Each token is scoped to the project it was created in and is tied to the member who created it. If that member loses access to the project, their tokens for it are revoked automatically. Create separate tokens per developer or client so you can revoke one without affecting the others.

To revoke a token, open its menu in the Access tokens card, choose Revoke, and confirm with Revoke token. Anything using it loses access right away.

Availability and permissions

Plan

MCP tool calls

Free

Not included

Starter

100 a day

Pro

Unlimited

Business

Unlimited

Calls from connected apps and access tokens count together and reset at midnight UTC. MCP calls today under Settings → MCP access shows today's count.

Only direct owners and admins of the project can connect apps, create or revoke access tokens, and remove an app's access. Access through a team doesn't count.

Troubleshooting

  • "You need to be an owner or admin of a project to connect it." You aren't a direct owner or admin of any project. Ask a project owner to make you an admin, or to connect the app themselves.

  • "This connection request expired." The sign-in took too long. Go back to the app and connect again.

Related articles

Did this answer your question?