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 |

