> ## 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.

# Claude Code

> Connect the Pictory MCP server to Claude Code and create videos from the terminal, signing in with your Pictory account instead of an API key

[Claude Code](https://claude.com/claude-code) is Anthropic's official CLI for Claude. Connect the
Pictory MCP server and it gains a set of Pictory tools: you describe the video you want, and Claude
Code creates it through your Pictory account.

**You do not need an API key or an API subscription.** Sign in with your Pictory account
through the Pictory sign-in page.

> [!TIP]
>
> **Pictory 3 for Pictory 3 accounts.** 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.

## Connect

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

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

Verify it with `claude mcp list`; the server shows as connected.

> [!WARNING]
>
> `--callback-port 3118` is required. Claude Code completes the sign-in on a local listener, and
> Pictory checks that address against a registered list. Without the flag, Claude Code picks a
> random port and the sign-in fails before you can log in.

> [!NOTE]
>
> If you already added the Pictory connector in Claude and Claude Code is signed in to the same
> account, you can use that connection. `claude mcp list` shows it under the connector's name, prefixed
> `claude.ai`, and its tools are available in every session.

## What You Can Ask For

```text theme={null}
claude
> Create a teaser for a smart lamp. Show me a preview before making the finished video.
> Turn this blog post into a video: https://example.com/post
> Show me a preview first, then render it once I approve.
> Make the title on scene 2 smaller and swap its clip for a close-up.
> How much video quota do I have left?
```

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 Code 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 early in the conversation.
Settle narration, music, and transitions. The assistant 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 scenes, update existing AI narration, and
add or remove scenes where supported. The project is saved automatically and opens in the
Pictory 3 editor. See [everything you can do](https://docs.pictory.ai/claude-mcp/overview.md#everything-you-can-do)
and [Pictory 3 editing limits](https://docs.pictory.ai/claude-mcp/motion-graphics.md#edit-an-existing-project).

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 the finished Pictory 3 video, the assistant 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 render 5–15 minutes. See the [Pictory MCP Server overview](https://docs.pictory.ai/claude-mcp/overview.md) for details.

## Scope and Sign-Out

| Task | Command |
| - | - |
| Available in every project on this machine | Add with `--scope user` |
| Shared with everyone working in the repository | Add with `--scope project`, which writes `.mcp.json`. Each person signs in with their own Pictory account |
| Refresh the tool list without a new session | `/mcp` in a session, then **Reconnect** |
| Clear the stored sign-in | `claude mcp logout pictory-ai-video` |
| 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.

## 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, exactly as shown above.
> 3. Sign in: `claude mcp login pictory-ai-video`

> [accordion] Port 3118 Is Already in Use
>
> **Cause:** Another process is listening on that port, so Claude Code cannot open the callback listener. The port cannot be changed, because it is the one registered with Pictory.
>
> **Resolution:** Find the process with `lsof -i :3118`, 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 tool list when it connects, so a tool added since then is not visible.
>
> **Resolution:** Follow [Get the new features: existing users](#get-the-new-features-existing-users), then start a new session.

> [accordion] Calls Fail After a Successful Sign-In
>
> **Cause:** The stored sign-in has expired, or the connected account does not have access to the requested feature or sufficient remaining usage.
>
> **Resolution:** Sign out and in again with `claude mcp logout` then `claude mcp login`. Check the 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] [Connect from Claude Code](https://docs.pictory.ai/claude-mcp/claude-code.md)
>
> The same setup with scopes, sign-out and troubleshooting in full

> [card] [Connect from Claude](https://docs.pictory.ai/claude-mcp/claude-app.md)
>
> Add Pictory as a custom connector in Claude on the web

> [card] [Use Pictory with an LLM](https://docs.pictory.ai/guides/llm-integration/use-pictory-with-llm.md)
>
> Connect your assistant and see an example video conversation


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