> ## Documentation Index
> Fetch the complete documentation index at: https://docs.submagic.co/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP Server

> Connect Submagic to Claude, Claude Code, Cursor, and other MCP clients

# MCP Server

Connect Submagic to Claude, Claude Code, Cursor, or any [MCP](https://modelcontextprotocol.io) client with one URL: `https://api.submagic.co/mcp`.

<video controls src="https://submagic.pro/assets/videos/mcp.mp4" />

## Connect Claude

[Connect Submagic](https://claude.ai/customize/connectors?modal=add-custom-connector\&connectorName=Submagic\&connectorUrl=https%3A%2F%2Fapi.submagic.co%2Fmcp)

How to connect?

[https://api.submagic.co/mcp](https://api.submagic.co/mcp)

<dialog aria-label="How to connect Submagic to Claude" />

## Authentication

Clients other than the Claude connector pass your existing Submagic API key as a Bearer token:

```http theme={null}
Authorization: Bearer sk-your-api-key-here
```

The same key and credits that work for the REST API work for MCP. If you don't have a key yet, generate one from your [account settings](https://app.submagic.co/user?tab=api).

## Connecting Clients

### Claude Code

```bash theme={null}
claude mcp add --transport http submagic https://api.submagic.co/mcp \
  --header "Authorization: Bearer $SUBMAGIC_API_KEY"
```

### Claude Desktop

> [!TIP]
>
> The [Claude connector](#connect-claude) above works in Claude Desktop and is
> the easier setup. Use the config below only if you'd rather use an API key.

Claude Desktop's config file doesn't speak HTTP transport directly, so we use the [`mcp-remote`](https://www.npmjs.com/package/mcp-remote) bridge.

> [!WARNING]
>
> Requires Node.js **20.18+** installed locally so `npx` can run `mcp-remote`.

To open the config file, go to **Claude → Settings → Developer → Edit Config**. Add the following:

> [tab] macOS / Linux
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "submagic": {
>       "command": "npx",
>       "args": [
>         "-y",
>         "mcp-remote",
>         "https://api.submagic.co/mcp",
>         "--header",
>         "Authorization: Bearer YOUR_API_KEY_HERE"
>       ]
>     }
>   }
> }
> ```

> [tab] Windows
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "submagic": {
>       "command": "cmd",
>       "args": [
>         "/c",
>         "npx",
>         "-y",
>         "mcp-remote",
>         "https://api.submagic.co/mcp",
>         "--header",
>         "Authorization: Bearer YOUR_API_KEY_HERE"
>       ]
>     }
>   }
> }
> ```

Save, then fully quit and reopen Claude Desktop. Submagic tools will appear under the hammer icon at the bottom of the chat.

### Cursor / Windsurf

Configure an HTTP MCP server pointing at `https://api.submagic.co/mcp` with the header:

```http theme={null}
Authorization: Bearer YOUR_API_KEY_HERE
```

## Example Prompts

Once connected, you can ask your assistant things like:

* "Create a Submagic project from this URL."
* "Turn this YouTube video into Submagic Magic Clips."
* "Show me the status of my recent Submagic projects."
* "Export Submagic project `[id]` and publish it to TikTok and Instagram."
* "List my published Submagic projects from the last week with their views."
* "Show my Submagic publishing stats for the last 30 days."
* "How did profile `[id]` perform this month — views, engagement, and follower growth?"
* "Add background music to Submagic project `[id]`."
* "What Submagic caption templates are available?"

## Rate Limits & Credits

MCP tool calls share the same rate limits and credit pool as the REST API — see [Rate Limits](https://docs.submagic.co/rate-limits.md) for details.

> [card] Need help?
>
> Reach out to [support@submagic.co](mailto:support@submagic.co) if you run into
> trouble connecting your MCP client.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.