# Connect ShineStudio to your AI (MCP setup guide)

ShineStudio is an MCP connector. Once it is added, Claude, ChatGPT, Codex or any other MCP app can
make ad images and ad videos for you. Everything it makes also appears in your ShineStudio gallery.

## Your connection details

- Connector address: `https://app.shinestudio.ai/mcp`
- How it signs in: apps with a sign-in step (Claude's custom connectors) open a ShineStudio window
  where you sign in with your normal account and press Allow. No key needed. Other apps send the
  header `Authorization: Bearer PASTE_YOUR_KEY_HERE`.
- Private link, for apps that only take a URL and cannot sign in: `https://app.shinestudio.ai/mcp/PASTE_YOUR_KEY_HERE`
- Type: remote MCP server, Streamable HTTP. Sign-in is standard MCP OAuth, or an API key.

For the header or the private link you need a ShineStudio API key. Make one in ShineStudio: click
the gear icon (Settings) at the top right, scroll to API keys, type a name and press Generate. Copy
it straight away, it is only shown once. A real key starts with `adw_live_`.

**A connected app spends your credits, and so do the key and the private link.** Treat them like a password. Do not post them
in a chat with other people, a shared document or a code repository. If one leaks, revoke the key
in Settings, API keys. Revoking stops it within about 30 seconds.

## Quick start

**Claude desktop app, Claude Cowork or claude.ai** (custom connector)

1. In Claude, open Settings (in some versions, Customize), then Connectors.
2. Press Add custom connector (or +, then Add custom connector).
3. Name: ShineStudio. URL: `https://app.shinestudio.ai/mcp`. Leave the OAuth fields under Advanced
   settings empty. Press Add, then Connect.
4. A ShineStudio window opens. Sign in with your ShineStudio account and press Allow.
5. In a chat, open the tools menu and switch ShineStudio on.

To disconnect, revoke the "Claude connector" key in ShineStudio, Settings, API keys. The private link
(`https://app.shinestudio.ai/mcp/PASTE_YOUR_KEY_HERE`) also still works here if you prefer a key.
On Team and Enterprise plans, an owner may need to add or allow the connector first.

**Claude Code** (terminal, or the Code tab in the Claude desktop app). Run:

```bash
claude mcp add --transport http --scope user shinestudio https://app.shinestudio.ai/mcp --header "Authorization: Bearer PASTE_YOUR_KEY_HERE"
```

Then start a new session and type `/mcp`. You should see shinestudio connected.

**ChatGPT** (web, developer mode custom connector)

1. In ChatGPT, open Settings, then Apps and Connectors (called Apps in newer versions), then
   Advanced settings, and turn on Developer mode.
2. Back in Apps and Connectors, press Create (add a custom app or connector).
3. Name: ShineStudio. MCP server URL: your private link. Authentication: No authentication. Confirm
   that you trust it and press Create.
4. In a chat, pick Developer mode from the + menu and switch ShineStudio on.

Menu names in ChatGPT change from time to time. On Business and Enterprise plans an admin may need
to allow developer mode.

**Codex** (terminal, IDE extension and desktop app all read the same file). Add this to
`~/.codex/config.toml`, replacing any existing `[mcp_servers.shinestudio]` block:

```toml
[mcp_servers.shinestudio]
url = "https://app.shinestudio.ai/mcp"
http_headers = { "Authorization" = "Bearer PASTE_YOUR_KEY_HERE" }
tool_timeout_sec = 120
```

Then quit and reopen Codex and type `/mcp`.

**Any other MCP client** (Cursor, Windsurf, VS Code and others). Add a remote server of type
Streamable HTTP (sometimes called `http`) named shinestudio, with the connector address and the
`Authorization` header above. For example, Cursor's `~/.cursor/mcp.json`:

```json
{ "mcpServers": { "shinestudio": { "url": "https://app.shinestudio.ai/mcp", "headers": { "Authorization": "Bearer PASTE_YOUR_KEY_HERE" } } } }
```

If your app has no place for a header, use the private link as the address and leave
authentication off. Nothing else is needed.

**No MCP at all?** Use the REST API with the same key: https://app.shinestudio.ai/API.md

## For AI agents reading this

You are an AI assistant and the user wants you to connect to ShineStudio.

1. If you are in Claude Cowork, the Claude desktop chat or claude.ai, no key is needed: give the
   user the Claude click steps from the Quick start (plain connector address, then sign in).
2. Otherwise check the key. If the details above do not contain a real key (one that starts with
   `adw_live_` and is 41 characters long), ask the user for their ShineStudio API key. Never repeat
   the key back in chat, and only write it into your own app's private settings. If you are Claude
   Code or Codex, add the connector yourself with the command or config above. In ChatGPT, give the
   user the click steps from the Quick start.
3. Check it works. Call the `health` tool, then `get_guide`. Tell the user it is connected and how
   many ShineStudio tools you can see (there are 25).

## Before making anything

Read `get_guide` first. It explains every image and video model, their limits, defaults and prices,
how reference tags like @image1 work, library codes like B5, and how long result links last.

- **Every generation costs the user credits** (1 credit is worth 1 cent). The signed-in account
  (or the account that owns the key) pays. Use the model and settings the user asks for, and never submit the same job twice.
- **Error 402 means the account is out of credits.** Stop and tell the user. They buy more inside
  ShineStudio (click the credit balance at the top right to open the Credit Center). Credits cannot
  be bought through the connector.
- **Images** take about 30 seconds at 1k and a minute or more at 2k and 4k. The image tools wait up
  to about 35 seconds, so you often get a jobId back: check it with `get_job` about every 15 seconds.
- **Videos** always come back as a jobId. Check it with `get_job` about once a minute (HeyGen Video 1,
  `heygen-video-1`, is faster: every 15 seconds). Never submit the video again while it is running.
- **Seedance** takes up to 9 pictures and up to 3 reference videos (2 to 15 seconds each, 15 seconds
  in total). Never send it a voice clip.
- **To carry a scene on,** use `extract_video_frame` on the last clip (free) and open the next
  HeyGen clip with that frame in `first-frame` mode.
- **Result links expire.** Results are kept while the user's monthly plan is active (and for 30
  more days after it ends), or for 15 days without a plan. Tell the user to download anything they
  want to keep forever.
