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

# Connect from Claude Code

> Register the Pictory MCP server in Claude Code with one command, sign in with your Pictory account, and create videos from the terminal

This page registers the Pictory MCP server directly in [Claude Code](https://claude.com/claude-code).

> [!NOTE]
>
> If you have already added the [Pictory connector in Claude](https://docs.pictory.ai/claude-mcp/claude-app.md) and Claude
> Code is signed in to the same account, you can use that connection: `claude mcp list` shows it under the name
> you gave the connector, prefixed `claude.ai`, and its tools are available in every session. The steps below are for a
> machine that is not signed in to claude.ai, or for a project-wide setup shared with a team.

> [!TIP]
>
> **Create and edit Pictory 3 videos.** Create animated text, charts, and diagrams through conversation,
> then open the same project in Pictory 3 for further editing. Explore the
> [Pictory 3 guide](https://docs.pictory.ai/claude-mcp/motion-graphics.md).

## Prerequisites

* Claude Code installed: `npm install -g @anthropic-ai/claude-code`
* A Pictory account with an active subscription or eligible Free Trial: [app.pictory.ai](https://app.pictory.ai). Available video minutes, voice-over usage, and AI Credits depend on your plan.

**You do not need an API key or an API subscription.** Sign in with your Pictory account.

## Add the Server

```bash theme={null}
claude mcp add --transport http --callback-port 3118 pictory-ai-video https://mcp.pictory.ai/mcp
```

`pictory-ai-video` is the name you will use to refer to the server; any name works.
`--callback-port 3118` is required, see [why the callback port is fixed](#why-the-callback-port-is-fixed).

## Sign In

```bash theme={null}
claude mcp login pictory-ai-video
```

A browser window opens on the Pictory sign-in page. Sign in with your Pictory email and
password, or **Continue with Google**. The browser returns to Claude Code, which stores the
sign-in for future sessions.

You can also sign in from inside a session: type `/mcp`, select `pictory-ai-video`, and choose
**Authenticate**.

## Verify

```bash theme={null}
claude mcp list
```

The server shows as connected. Start a session and ask for a video:

```text theme={null}
claude
> Create a teaser for a smart lamp. Show me a preview before making the finished video.
```

Pictory 2 and Pictory 3 are versions of the Pictory video app. Your account determines
the only type of new video you can create through the MCP connector:

| Your account | Videos you can create through MCP | What they look like |
| - | - | - |
| Pictory 2 | **Pictory 2 standard videos only** | Scenes with footage or images, text, narration, and music. |
| Pictory 3 | **Pictory 3 videos only**, available by default | Animated text, shapes, charts, and diagrams, with optional footage or images. |

Claude checks your account automatically. It does not ask you to choose between these
video types. These video features are already enabled on Pictory 3 accounts.

The MCP server rejects Pictory 3 creation requests from Pictory 2 accounts.

> [!NOTE]
>
> **Moving to Pictory 3 is a one-way change.** If you use Pictory 2 and want Pictory 3,
> contact Pictory support to enable Pictory 3 for your account. After your account moves to
> Pictory 3, you cannot switch back to Pictory 2. New videos you create through MCP will
> use Pictory 3 only.

For Pictory 3, choose a Brand Kit 2.0 from Pictory 3 or None. Settle narration, music,
and transitions. Claude asks about stock media, AI-generated media, both, or none only if
you have not already given a preference. Agree on the initial scene plan before creation.
Later, you can revise designs, update existing AI narration, and add or remove scenes where
supported. The project is saved automatically and opens in the Motion Studio editor in Pictory 3.
See [editing an existing project](https://docs.pictory.ai/claude-mcp/motion-graphics.md#edit-an-existing-project) and
[the complete capability list](https://docs.pictory.ai/claude-mcp/overview.md#everything-you-can-do).

On plans that charge render credits, Pictory 3 videos made through MCP cost
**200 AI Credits per video minute** for the project's first successful render.

Before rendering a Pictory 3 video, Claude shows your available credits and the cost, then
waits for your confirmation. This applies even if you asked to render in your first message
or the render costs zero credits. See [credits and rendering](https://docs.pictory.ai/claude-mcp/motion-graphics.md#credits-and-rendering).

Only Standard videos ask whether Pictory designs the scenes or you design them together.
They offer the choice to save an editable project. A Standard preview takes 2–5 minutes
and a final render 5–15 minutes; AI-generated media adds preparation time.

## Why the Callback Port Is Fixed

Claude Code completes the sign-in on a local listener at `http://localhost:<port>/callback`.
Pictory's sign-in service checks that address against an exact list of registered return
addresses, and `http://localhost:3118/callback` is the one registered for Claude Code. Without
`--callback-port`, Claude Code picks a random free port for each sign-in, the address does not
match, and the sign-in page shows an error before you can log in. Always pass
`--callback-port 3118`.

## Scope

By default the server is registered for the current project only, for you. Two other scopes are
available:

| Scope | Effect |
| - | - |
| `--scope user` | Available in every project on this machine |
| `--scope project` | Written to `.mcp.json` in the repository and shared with everyone who works in it. Each person signs in with their own Pictory account. |

For example, to make it available everywhere:

```bash theme={null}
claude mcp add --transport http --callback-port 3118 --scope user pictory-ai-video https://mcp.pictory.ai/mcp
```

## Sign Out, Refresh, Remove

| Task | Command |
| - | - |
| Clear the stored sign-in | `claude mcp logout pictory-ai-video` |
| Refresh the tool list without a new session | `/mcp` inside a session, then **Reconnect** |
| Remove the server | `claude mcp remove pictory-ai-video` |

## Get the New Features: Existing Users

If this connection comes from the connector in your Claude account, follow the
[disconnect, remove, and add again steps](https://docs.pictory.ai/claude-mcp/claude-app.md#get-the-new-features-existing-users)
in Claude first, then start a new Claude Code session.

If you registered Pictory directly in Claude Code, sign out and remove that server registration.
Follow the setup and sign-in steps on this page to add it again, using the same scope as before.
Start a new session after reconnecting. Your saved Pictory projects stay in your account.

Claude Code does not show the upload panel used for
[your own images and videos](https://docs.pictory.ai/claude-mcp/upload-media.md). Give Claude a public link to the file
instead.

## Troubleshooting

> [accordion] The Sign-In Page Shows an Error Before You Can Log In
>
> **Cause:** The server was added without `--callback-port`, so Claude Code used a random port
> and the return address did not match the registered one.
>
> **Resolution:**
>
> 1. Remove the server: `claude mcp remove pictory-ai-video`
> 2. Add it again with the flag: `claude mcp add --transport http --callback-port 3118 pictory-ai-video https://mcp.pictory.ai/mcp`
> 3. Sign in: `claude mcp login pictory-ai-video`

> [accordion] Port 3118 Is Already in Use
>
> **Cause:** Another process is listening on port 3118, so Claude Code cannot open the callback
> listener. The port cannot be changed, because it is the one registered with Pictory.
>
> **Resolution:**
>
> 1. Find the process: `lsof -i :3118`
> 2. Stop it, or wait for it to finish, then sign in again.

> [accordion] Tools Are Missing or Out of Date
>
> **Cause:** Claude Code reads the server's tool list when it connects, so a tool added since
> then is not visible.
>
> **Resolution:**
>
> 1. Follow [Get the new features: existing users](#get-the-new-features-existing-users).
> 2. Start a new session and confirm Pictory is connected.

> [accordion] Calls Fail After a Successful Sign-In
>
> **Cause:** The stored sign-in has expired, or the Pictory account does not carry a
> plan with access to the requested feature and sufficient remaining usage.
>
> **Resolution:**
>
> 1. Sign out and in again: `claude mcp logout pictory-ai-video`, then `claude mcp login pictory-ai-video`
> 2. Check your subscription at [app.pictory.ai](https://app.pictory.ai).

## Next Steps

> [card] [Pictory MCP Server](https://docs.pictory.ai/claude-mcp/overview.md)
>
> Standard videos, Pictory 3, and the options available through your connection

> [card] [Text-to-Video Skill](https://docs.pictory.ai/claude-skills/text-to-video-setup.md)
>
> The Claude Code skill that works with your API key and carries its own design playbook


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