heygen-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@heygen-mcpgenerate a video of avatar Piper saying 'Welcome to our channel'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
heygen-mcp
MCP server for the HeyGen avatar video API. Provides tools that any MCP-compatible client (Claude Desktop, Claude Code, etc.) can use to generate talking-avatar videos.
Setup
cd heygen-mcp
npm installSet your API key (HeyGen dashboard → Settings → API):
export HEYGEN_API_KEY="your-key-here"Test the server starts correctly:
node index.js
# Should print "HeyGen MCP server running" to stderrRelated MCP server: Heygen MCP Server
Claude Desktop / Claude Code configuration
{
"mcpServers": {
"heygen": {
"command": "node",
"args": ["/Users/carlosvidal/www/heygen-mcp/index.js"],
"env": { "HEYGEN_API_KEY": "your-key-here" }
}
}
}Or from the CLI:
claude mcp add heygen -e HEYGEN_API_KEY=your-key-here -- node /Users/carlosvidal/www/heygen-mcp/index.jsTools
create_video
Primary tool. Submits the video, polls until rendering finishes, returns the video_url, and
optionally saves the mp4 to output_path.
Params: avatar_id, text, voice_id, talking_photo_id, audio_url, avatar_style,
speed, emotion, locale, background, scenes, dimension, title, caption,
output_path, timeout_seconds
generate_video
Submits the video and returns video_id immediately, without polling.
Params: same as create_video minus output_path / timeout_seconds
check_video
Status of a video by video_id — pending, waiting, processing, completed or failed.
Returns video_url, thumbnail_url, gif_url, caption_url and duration when completed.
download_video
Saves a finished video to a local .mp4. Accepts video_id (URL looked up automatically) or a
direct video_url.
list_avatars
Search avatars by name or ID. Always pass search — an account holds well over a thousand
avatars. Set include_talking_photos to also match photo avatars.
list_voices
Search voices by search / language / gender. Returns voice_id, preview_audio,
emotion_support and support_locale.
list_videos
Recent videos in the account, to recover a video_id generated earlier.
get_quota
Remaining API quota in seconds and credits. Run before long jobs.
Single scene vs. multi-scene
A single scene uses the flat arguments:
{ "avatar_id": "Piper_standing_education_front", "text": "Hola, soy Piper.", "voice_id": "1eca26cb..." }Multiple scenes use scenes, which overrides the flat arguments. Each scene has its own avatar,
script, voice and background:
{
"scenes": [
{ "avatar_id": "avatar_a", "text": "Primera escena.", "voice_id": "voice_a",
"background": { "type": "color", "value": "#f5f5f5" } },
{ "avatar_id": "avatar_b", "text": "Segunda escena.", "voice_id": "voice_b",
"background": { "type": "image", "url": "https://example.com/bg.jpg" } }
],
"dimension": "1080p_portrait",
"title": "Demo"
}Dimension presets
Preset | Size |
| 1920x1080 |
| 1280x720 |
| 1080x1920 |
| 720x1280 |
| 1080x1080 |
Notes
Video URLs expire 7 days after generation — use
output_pathordownload_videoto keep them.Max 1500 characters of
textper scene; split longer scripts across scenes.HeyGen bills 1 credit per 60 seconds of rendered video.
Rendering typically takes 1–3 minutes; polling interval is 5 seconds, default timeout 300s.
emotiononly applies to voices withemotion_support: true;localeonly to voices withsupport_locale: true.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceExposes HeyGen's video generation API to MCP-compatible clients, enabling listing avatars, generating videos, and checking render status.
- AlicenseBqualityDmaintenanceThis MCP server enables any MCP client to generate avatars and videos using the HeyGen API, with tools for managing credits, voices, and avatar video generation.7MIT
- Alicense-qualityBmaintenanceMCP server for the Golpo AI video API, enabling video generation, listing, and downloading from any MCP-compatible client.MIT
- AlicenseAqualityBmaintenanceMCP server for generating, editing, and batch processing videos using xAI's Grok Imagine Video API, with support for text-to-video, image-to-video, and video editing via natural language prompts.41901MIT
Related MCP Connectors
MCP server for Hailuo (MiniMax) AI video generation
MCP server for Kling AI video generation
MCP server for Google Veo AI video generation
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/carlosvidal/heygen-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server