Connect HeyGen’s Video Agent to Claude Code to generate AI avatar videos directly from your terminal. Once configured, Claude Code can script, render, and deliver videos through natural-language prompts without leaving your development workflow.Documentation Index
Fetch the complete documentation index at: https://developers.heygen.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- Claude Code installed (installation guide)
- Node.js installed (required for MCP server resolution)
- A HeyGen account with Video Agent access
Adding the MCP Server
Run the following command in your terminal (not inside the Claude Code CLI):-s user scope flag:
Alternative: Direct Config Edit
You can also add the server by editing~/.claude.json directly:
Authentication
On first use, Claude Code will prompt you to authenticate with HeyGen. Run/mcp inside Claude Code and follow the browser-based OAuth flow to authorize access.
Verifying the Connection
After setup, confirm the server is active:heygen listed with a connected status.
Usage
Once connected, prompt Claude Code with a video generation request:Loading HeyGen Skills (Recommended)
For better prompt structure and higher-quality output, instruct Claude Code to read HeyGen’s prompt engineering guidelines before generating:Scoping
| Scope | Flag | Config Location | Availability |
|---|---|---|---|
| Local (default) | none | .mcp.json in project directory | Current project only |
| User | -s user | ~/.claude.json | All projects for current user |

