Prerequisites
- Gemini CLI installed (
npm install -g @google/gemini-cli@latest) - A HeyGen account with Video Agent access
Adding the MCP Server
Open your Gemini CLI settings file and add the HeyGen server under themcpServers key.
Global (all projects): ~/.gemini/settings.json
Project-scoped: .gemini/settings.json in your project root
heygen alongside them inside the existing mcpServers block.
Restart Gemini CLI after saving the file.
Verifying the Connection
Launch Gemini CLI and run:heygen listed under connected MCP servers with its available tools displayed.
Authentication
On first tool invocation, Gemini CLI will prompt you to authorize access to your HeyGen account through a browser-based OAuth flow. Follow the prompt to complete authentication.Usage
Once connected, prompt Gemini CLI with a video generation request:Loading HeyGen Skills (Recommended)
For better prompt structure and higher-quality output, instruct Gemini to reference HeyGen’s prompt engineering guidelines before generating:Configuration Scoping
| Scope | File Location | Availability |
|---|---|---|
| Global | ~/.gemini/settings.json | All projects |
| Project | .gemini/settings.json (project root) | Current project only |

