ShotPoet runs a remote MCP (Model Context Protocol) server. Once you connect it to an AI assistant, the assistant can look up ShotPoet models and prices, start image and video generations, check their results, browse and search your Library, upload local files to use as references and read your credit balance. Generations use the credits in your ShotPoet account, and every result is saved to your Library, the same as generations you start on the website.
This guide covers Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code, Windsurf (Devin Desktop), Gemini CLI, Antigravity CLI, Cline, Zed, OpenCode, Trae, Cherry Studio and other MCP clients. Client menus and file locations are as documented by each client in November 2026. AI agents can read this page to set up the connection themselves; see Let your AI agent set it up.
1. Before you start
Every ShotPoet account can use MCP. You manage access tokens and authorized apps in the MCP tab of Manage Account, and generations started over MCP use the credits in your account; you can buy credits on Pricing.
You connect in one of two ways, depending on the client:
- Sign in with ShotPoet (OAuth). The client opens a ShotPoet page where you sign in and click Allow; no token is needed. Claude and ChatGPT connect this way, and Claude Code, Codex, Cursor, VS Code, Windsurf (Devin Desktop), Gemini CLI, Zed and OpenCode can too. Apps you allow are listed under Authorized apps in the MCP tab, where you can revoke them. Their access renews automatically; an app you don't use for 90 days has to sign in again.
- Access token. Most other clients send a personal access token in a request header.
To create an access token:
- Sign in to ShotPoet, open your avatar menu and choose Manage Account, then the MCP tab.
- Click Create token, enter a name such as the client you will use it in, and click Create.
- Copy the token right away. It starts with
sp_pat_and is shown only once.
Tokens don't expire. Revoke a token in the same tab when you stop using it; clients using it lose access right away. An account can have up to 10 tokens.
2. Connection details
- Server URL:
https://shotpoet.ai/mcp - Transport: Streamable HTTP. There is no stdio package and no separate SSE endpoint; clients that only run local (stdio) servers can use the bridge described in Other clients.
- Authentication: OAuth sign-in, or the header
Authorization: Bearer YOUR_TOKEN, whereYOUR_TOKENis your access token.
In the examples below, replace YOUR_TOKEN with your access token.
3. Let your AI agent set it up
Coding agents such as Claude Code, Codex, Cursor and Gemini CLI can add the server to their own configuration. In Manage Account → MCP, click Copy prompt and paste the prompt into the agent. Right after you create a token, Copy prompt next to it includes the token, so the agent connects with the token without asking. The prompt reads:
Connect the ShotPoet MCP server to this AI client so you can generate images and videos with my ShotPoet account.
Server URL: https://shotpoet.ai/mcp
Transport: Streamable HTTP
Authentication: sign in with ShotPoet (OAuth) if this client supports it, otherwise send the HTTP header "Authorization: Bearer <ACCESS_TOKEN>" with every request
Setup guide for each client: https://shotpoet.ai/mcp-guide.html
Steps:
1. Read the setup guide and follow the section for the client you are running in. If you can't change your own MCP configuration, tell me exactly what to add and where.
2. If the client signs in with OAuth, tell me when to sign in and click Allow. If you need an access token, ask me for it; I can create one in ShotPoet under Manage Account → MCP. Keep it out of files that are shared or committed to version control.
3. Reload or restart the client if it needs it, then call the get_balance tool and tell me my credit balance to confirm the connection.For AI agents reading this page: find the section in Set up your client for the client you are running in and apply it. Prefer an environment variable or the client's secret input over writing the token into a file, never commit the token to version control, and confirm the connection by calling get_balance. If the client needs a restart to load the server, tell the user.
4. Set up your client
Claude (web, desktop and mobile)
Add ShotPoet as a custom connector. It then works in Claude on the web, in the desktop app and in the mobile apps.
- Open Customize → Connectors, click Add and choose Add custom connector.
- Enter the name
ShotPoetand the URLhttps://shotpoet.ai/mcp, keep the default sign-in setting, and click Continue. - Click Connect. A ShotPoet page opens; sign in if asked and click Allow.
- In a chat, turn on ShotPoet in the tools menu below the message box.
The Free plan allows one custom connector. On Team and Enterprise plans, an owner adds it under Organization settings → Connectors → Add → Custom → Web, and each member then connects their own ShotPoet account.
Claude can also send an access token instead of signing in: choose No sign-in for authentication and add the request header authorization with the value Bearer YOUR_TOKEN. Request headers are in beta and only available to some accounts, and on Team and Enterprise plans a header set by the owner is shared by the whole organization, so signing in is the better choice there.
ChatGPT
ChatGPT connects by signing in with ShotPoet; it can't send an access token.
- On the ChatGPT website, open Plugins, click + and choose Add custom MCP server. Depending on your plan and workspace, you may need to turn on developer mode first, or a workspace admin may need to allow it.
- Enter the server URL
https://shotpoet.ai/mcp, choose OAuth for authentication, and click Create as a plugin. - Install it. ChatGPT opens a ShotPoet page; sign in if asked and click Allow.
- In a chat, choose ShotPoet from the tools menu, then ask for an image or video.
Custom MCP servers work on the ChatGPT website only. OpenAI's developer mode guide lists full support, including tools that take actions like generate, for Business, Enterprise and Edu workspaces, and read-only tools for Pro.
Claude Code
Add the server with its URL only:
claude mcp add --transport http --scope user shotpoet https://shotpoet.ai/mcpThen run /mcp inside Claude Code, choose shotpoet and follow the steps in your browser, or run claude mcp login shotpoet in a terminal. On the ShotPoet page, click Allow.
To use an access token, add the header when you add the server:
claude mcp add --transport http --scope user shotpoet https://shotpoet.ai/mcp --header "Authorization: Bearer YOUR_TOKEN"--scope user adds ShotPoet to every project; leave it out to add it to the current project only, or use --scope project to share it through the project's .mcp.json. In a shared .mcp.json, read the token from an environment variable so it isn't committed:
{
"mcpServers": {
"shotpoet": {
"type": "http",
"url": "https://shotpoet.ai/mcp",
"headers": {
"Authorization": "Bearer ${SHOTPOET_TOKEN}"
}
}
}
}Check the connection with claude mcp list, or run /mcp inside Claude Code.
Codex (CLI and IDE extension)
The Codex CLI, the Codex IDE extension and the ChatGPT desktop app share the configuration in ~/.codex/config.toml.
Add the server with its URL only:
codex mcp add shotpoet --url https://shotpoet.ai/mcpCodex detects that ShotPoet supports sign-in and opens the ShotPoet page in your browser; click Allow. If it doesn't, run codex mcp login shotpoet. On a machine without a browser, add --no-browser: Codex prints the sign-in URL, and you paste the address you are redirected to back into the terminal.
To use an access token, add the server from the command line:
codex mcp add shotpoet --url https://shotpoet.ai/mcp --bearer-token-env-var SHOTPOET_TOKENor add it to ~/.codex/config.toml yourself:
[mcp_servers.shotpoet]
url = "https://shotpoet.ai/mcp"
bearer_token_env_var = "SHOTPOET_TOKEN"Then set the token in the environment Codex starts from, for example in your shell profile:
export SHOTPOET_TOKEN="YOUR_TOKEN"Check the connection with codex mcp list or /mcp in Codex; in the IDE extension, open the gear menu and choose MCP servers.
Cursor
Add the server to ~/.cursor/mcp.json for every project, or to .cursor/mcp.json in a project.
With the URL only, Cursor signs in with ShotPoet: when it connects to the server, your browser opens the ShotPoet page, where you click Allow.
{
"mcpServers": {
"shotpoet": {
"url": "https://shotpoet.ai/mcp"
}
}
}To use an access token, add a header. Cursor can read it from an environment variable:
{
"mcpServers": {
"shotpoet": {
"url": "https://shotpoet.ai/mcp",
"headers": {
"Authorization": "Bearer ${env:SHOTPOET_TOKEN}"
}
}
}
}Restart Cursor after editing the file. Turn the server on or off under Customize in the sidebar; connection errors are in the Output panel under MCP Logs.
VS Code (GitHub Copilot)
Run MCP: Add Server from the Command Palette and follow the steps, or add the server to ~/.copilot/mcp-config.json yourself.
With the URL only, VS Code signs in with ShotPoet: on the first connection it asks you to authorize (or offers Authenticate in the server's actions), and your browser opens the ShotPoet page, where you click Allow.
{
"mcpServers": {
"shotpoet": {
"type": "http",
"url": "https://shotpoet.ai/mcp",
"tools": [
"*"
]
}
}
}To use an access token, add a header that reads it from an environment variable:
{
"mcpServers": {
"shotpoet": {
"type": "http",
"url": "https://shotpoet.ai/mcp",
"headers": {
"Authorization": "Bearer ${SHOTPOET_TOKEN}"
},
"tools": [
"*"
]
}
}
}Use MCP: List Servers to start the server and check its status, then use ShotPoet in Copilot Chat's agent mode. Older setups keep servers in .vscode/mcp.json under servers instead of mcpServers; VS Code plans to remove that format in February 2027.
Windsurf (Devin Desktop)
Windsurf is now Devin Desktop. In Cascade, choose Open MCP config file, or edit ~/.config/devin/mcp_config.json (%AppData%/devin/mcp_config.json on Windows; older Windsurf versions use ~/.codeium/windsurf/mcp_config.json). With the URL only, it signs in with ShotPoet:
{
"mcpServers": {
"shotpoet": {
"serverUrl": "https://shotpoet.ai/mcp"
}
}
}Open Customize → MCPs and click Authenticate next to ShotPoet; your browser opens the ShotPoet page, where you click Allow. In the Devin CLI, run devin mcp login shotpoet.
To use an access token, add a header that reads it from an environment variable:
{
"mcpServers": {
"shotpoet": {
"serverUrl": "https://shotpoet.ai/mcp",
"headers": {
"Authorization": "Bearer ${env:SHOTPOET_TOKEN}"
}
}
}
}For one project, use .devin/mcp_config.json, or .devin/mcp_config.local.json to keep the token out of version control. Click the refresh button in the MCP settings to load the tools.
Gemini CLI and Antigravity CLI
Gemini CLI:
gemini mcp add --transport http --scope user --header "Authorization: Bearer YOUR_TOKEN" shotpoet https://shotpoet.ai/mcpor add it to ~/.gemini/settings.json. Use httpUrl, not url, which Gemini CLI treats as an SSE server:
{
"mcpServers": {
"shotpoet": {
"httpUrl": "https://shotpoet.ai/mcp",
"headers": {
"Authorization": "Bearer ${SHOTPOET_TOKEN}"
}
}
}
}Check it with /mcp or gemini mcp list.
To sign in with ShotPoet instead of using a token, add the server without the --header option and run /mcp auth shotpoet in Gemini CLI. The sign-in opens a browser on the same machine, so it doesn't work over SSH without a browser or inside a container; use a token there.
Antigravity CLI, which replaced Gemini CLI for free and personal accounts, reads ~/.gemini/config/mcp_config.json, or .agents/mcp_config.json in a project:
{
"mcpServers": {
"shotpoet": {
"serverUrl": "https://shotpoet.ai/mcp",
"headers": {
"Authorization": "Bearer YOUR_TOKEN"
}
}
}
}Run /mcp in Antigravity CLI to reload the servers. In the Antigravity app, you can leave out the headers and sign in instead: open Customizations → Installed → MCP Servers, click Authenticate, sign in on the ShotPoet page, then paste the code it shows into Enter authorization code and click Submit.
Cline
Cline's Remote Servers form can't add headers, so edit the configuration instead: open MCP Servers → Configure MCP Servers and add the server. Set type to streamableHttp; without it Cline uses SSE.
{
"mcpServers": {
"shotpoet": {
"type": "streamableHttp",
"url": "https://shotpoet.ai/mcp",
"headers": {
"Authorization": "Bearer YOUR_TOKEN"
},
"disabled": false,
"autoApprove": []
}
}
}In the Cline CLI, you can sign in instead of using a token: add the server without headers, run cline mcp and choose Authorize OAuth.
Zed
Open Settings → AI → MCP Servers → Add Remote Server, or run zed: open settings file and add:
"context_servers": {
"shotpoet": {
"url": "https://shotpoet.ai/mcp",
"headers": {
"Authorization": "Bearer YOUR_TOKEN"
}
}
}Without the headers entry, Zed signs in with ShotPoet in your browser instead. The server is connected when its indicator turns green and shows "Server is active".
OpenCode
OpenCode signs in with ShotPoet by default. Add the server to ~/.config/opencode/opencode.json, or to opencode.json in a project:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"servers": {
"shotpoet": {
"type": "remote",
"url": "https://shotpoet.ai/mcp"
}
}
}
}Then run opencode mcp auth shotpoet, or open /mcps in the TUI and sign in to ShotPoet; click Allow on the ShotPoet page.
To use an access token instead, turn oauth off and add a header:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"servers": {
"shotpoet": {
"type": "remote",
"url": "https://shotpoet.ai/mcp",
"oauth": false,
"headers": {
"Authorization": "Bearer {env:SHOTPOET_TOKEN}"
}
}
}
}
}Check it with opencode mcp list.
Trae
Open Settings → MCP, choose Add → Create Manually and paste the following. For one project, turn on Project MCP and put the same content in .trae/mcp.json. Trae can't read environment variables here, so keep that file out of version control.
{
"mcpServers": {
"shotpoet": {
"url": "https://shotpoet.ai/mcp",
"headers": {
"Authorization": "Bearer YOUR_TOKEN"
}
}
}
}Cherry Studio
Open Settings → MCP → MCP Servers → Add, set the type to Streamable HTTP, enter the URL https://shotpoet.ai/mcp, and enter the header as one line in the headers field:
Authorization=Bearer YOUR_TOKENOr choose Import from JSON and paste:
{
"mcpServers": {
"shotpoet": {
"type": "streamableHttp",
"baseUrl": "https://shotpoet.ai/mcp",
"headers": {
"Authorization": "Bearer YOUR_TOKEN"
}
}
}
}Kiro, Junie, LM Studio, Goose and Augment
- Kiro: add
urlandheadersto~/.kiro/settings/mcp.jsonor.kiro/settings/mcp.json. To read the token from${SHOTPOET_TOKEN}, first add the variable to Mcp Approved Env Vars. - Junie: add
urlandheadersto~/.junie/mcp/mcp.jsonor.junie/mcp/mcp.json. - LM Studio (0.3.17 or later): Program → Install → Edit mcp.json, in the same format as Cursor.
- Goose: goose configure → Add Extension → Remote Extension (Streamable HTTP), or in
~/.config/goose/config.yamlan extension withtype: streamable_http,uri: https://shotpoet.ai/mcpand theAuthorizationheader underheaders. - Augment:
auggie mcp add shotpoet --transport http --url https://shotpoet.ai/mcp --header "Authorization:Bearer YOUR_TOKEN" - JetBrains AI Assistant: its MCP settings don't take request headers; use the bridge in Other clients.
Other clients
Any client that supports remote Streamable HTTP servers with custom headers works with the server URL and the Authorization header. Clients that support MCP sign-in (OAuth) can use the server URL alone.
Clients that only run local (stdio) servers, such as JetBrains AI Assistant or the claude_desktop_config.json file of Claude Desktop, can reach ShotPoet through the mcp-remote bridge, which needs Node.js 18 or later:
{
"mcpServers": {
"shotpoet": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://shotpoet.ai/mcp",
"--header",
"Authorization:${AUTH_HEADER}",
"--transport",
"http-only"
],
"env": {
"AUTH_HEADER": "Bearer YOUR_TOKEN"
}
}
}
}Keep the Bearer value in env: some clients split arguments that contain spaces. --transport http-only stops the bridge from falling back to SSE, which ShotPoet doesn't serve. Claude Desktop's file is at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS and %APPDATA%\Claude\claude_desktop_config.json on Windows; quit and reopen Claude Desktop after editing it. For Claude Desktop, the custom connector in Claude is simpler.
5. Tools
The server provides seven tools. Your assistant decides when to call them; you can also ask for one by name.
list_models
Lists the image and video models you can use. Without model, it returns each model's ID, name, type, the generation modes it accepts and its lowest price. With model, it returns that model's options for each mode: aspect ratios, resolutions, qualities, video lengths, sound, how many reference images and videos it takes, and the credits for each resolution and quality.
kind(optional):imageorvideo.model(optional): a model ID from the list.
Generation modes: text has no reference; image has one reference image or a start frame; reference has two or more reference images; frames has a start and an end frame; video has reference videos.
generate
Starts a generation and charges credits. Options you leave out use the model's defaults; an option the model doesn't offer returns an error that lists the choices.
model: model ID fromlist_models.prompt: what to generate.ratio,resolution,quality: such as16:9,2Kor720p, andhigh.duration: video length in seconds.sound: whether a video has audio, for models where sound is optional.outputs: number of results, 1 to 4. The default is 1.images: reference images. Withend_frame, the first image is the start frame.end_frame: end frame of a video.videos: reference videos.request_id: any unique string up to 100 characters. Sending the samerequest_idwith the same options again returns the generation it already started instead of charging again.wait_seconds: how long to wait for the results, 0 to 45 seconds. The default is 30.
Each reference can be a result ID or a file link returned by this server, or a public HTTPS URL. Images can be up to 20 MB and videos up to 30 MB, with 96 MB in total.
get_generation
Returns the status and results of a generation, waiting up to wait_seconds (0 to 45, default 30) for results that are still running.
id: the generation ID returned bygenerate.wait_seconds(optional).
Both generate and get_generation return the generation ID, its status (running or finished), its settings, prompt, the credits charged and each result: result ID, status, size, a link to the original file, a link to the preview image, the result's page in your Library and, for a failed result, the reason. Finished results also come with a preview image the assistant can see. In Claude and ChatGPT, the results also show as a card in the conversation, where you can play videos and open each result in ShotPoet.
list_generations
Lists your recent generations, newest first, with their prompts, settings and results.
limit(optional): 1 to 20. The default is 10.before(optional): a generation ID; returns generations started before it. A full page returnsnext_beforefor the next page.
search_library
Finds finished results and uploaded files in your Library by name or prompt title, newest first. Each item has an ID you can use as a reference in generate, its prompt, file links and its page in your Library.
query(optional): words to look for. Leave it out to list the newest items.kind(optional):image,videooraudio.limit(optional): 1 to 20. The default is 10.
create_upload
Returns a link for uploading a file from your computer to your Library, valid for 15 minutes, with a ready-to-run curl command. The assistant sends the file with PUT; the response has the ID to use as a reference in generate. Images can be up to 20 MB, and videos and audio up to 100 MB. This works in clients that can run commands on your computer, such as Claude Code and Codex.
filename(optional): the name shown in your Library.
curl -sS -T sketch.png 'https://shotpoet.ai/api/mcp/uploads?p=...&name=sketch.png'get_balance
Returns your credit balance and how much of it is free credits, which only work with certain models and settings.
6. Using ShotPoet from your assistant
Ask in plain language. For example:
- "Which ShotPoet video models support a start and an end frame, and what do they cost?"
- "Generate a 16:9 image of a lighthouse at dawn with the cheapest model, then make a 5-second video from it."
- "Make three variations of the last image with a warmer palette."
- "Find the apple images in my ShotPoet library and make a video from the newest one."
- "Upload ./sketch.png to ShotPoet and turn it into a watercolor painting." (clients that can run commands)
- "How many ShotPoet credits do I have left?"
Videos usually take longer than one call can wait. When generate returns running, the assistant calls get_generation with the same ID until the results are finished. If your client times out while waiting, the generation keeps running; ask the assistant to check it again.
File links in the results work without signing in and expire after 24 hours. Calling get_generation again returns new links. The page link opens the result in your Library and needs you to be signed in. Your results stay in your Library like any other generation.
7. Credits and limits
- Generations cost the same credits as on the website: per image for image models, per second of output for video models.
list_modelsshows the prices, and Pricing lists every model. - Credits for failed results are returned to your balance, as described in the Refund Policy.
- Each token or authorized app can make up to 60 tool calls per minute.
- You can give each token or authorized app a credit limit per generation and a credit limit per 24 hours in Manage Account → MCP. Both are optional; leave them empty for no limit. A generation that would go over a limit is refused and the assistant is told why. The 24-hour limit counts the credits charged in the last 24 hours, after refunds for failed results.
- A generation has up to 4 results. Limits on running tasks and on storage are the same as on the website.
- An account can have up to 10 access tokens and 20 authorized apps.
8. Keeping your account safe
- An access token lets anyone who has it spend your credits. Store it in an environment variable or your client's secret storage, and never commit it to a repository or paste it into a shared chat.
- Set credit limits on tokens and apps you share with automated tools, so a mistaken or exposed token can only spend what you allow.
- Revoke a token or an authorized app in Manage Account → MCP as soon as you stop using it or think it was exposed.
- Your assistant can start generations on its own when a conversation asks for it. Keep an eye on which actions your client lets it run without asking you.
- File links from the tools can be opened by anyone who has them until they expire.
9. Troubleshooting
- 401 Unauthorized: with an access token, the token is wrong, was revoked, or is missing the
Bearerprefix. With sign-in, the app was revoked in the MCP tab or not used for 90 days; sign in again from the client, for example with/mcpin Claude Code orcodex mcp login shotpoet. - The client never asks you to sign in: remove the
Authorizationheader from its configuration. Clients that have a header use it instead of signing in. - 403 Forbidden: the request came from a web page on another site. Use an MCP client rather than calling the server from a browser page.
- The tools don't appear: restart or reload the client after changing its configuration, check that the transport is HTTP (Streamable HTTP) and not SSE or stdio, and check the client's MCP log.
- "Too many requests. Try again in a minute": the token or app made more than 60 tool calls in a minute.
- "Not enough credits": buy credits on Pricing, or choose a cheaper model or resolution.
- An option is "not available for this model": the error lists the choices;
list_modelswith the model ID shows all of them. - A reference URL can't be downloaded: the URL must be public HTTPS without a redirect. Use the result ID or the file link returned by this server instead.
- The call times out: the generation keeps running. Ask the assistant to call
get_generation, or open your Library.
10. Contact
For questions about MCP, write to support@shotpoet.ai with the email of your account and the client you are using.