heygen-mcp

heygen-mcp

MCP server for the HeyGen avatar video API. Provides tools to generate talking-avatar videos, including video creation, status checking, downloading, and listing avatars/voices.

Category
访问服务器

README

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 install

Set 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 stderr

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

Tools

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_idpending, 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
1080p_landscape 1920x1080
720p_landscape (default) 1280x720
1080p_portrait 1080x1920
720p_portrait 720x1280
square 1080x1080

Notes

  • Video URLs expire 7 days after generation — use output_path or download_video to keep them.
  • Max 1500 characters of text per 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.
  • emotion only applies to voices with emotion_support: true; locale only to voices with support_locale: true.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选