Connector guide8-minute read19 MCP tools7 languages

How to Connect HeyGen to ChatGPT via MCP

Let your AI make HeyGen avatar videos with your own key: pick avatars and voices, turn a script or a prompt into a talking video, fill your templates, translate videos into other languages with lip-sync, create photo avatars, and check renders and your balance.

HCBy HelpCode teamUpdated 8 min read Open-source on GitHub

No credit card · 7-day trial · Self-host alternative available

HeyGen

HeyGen

Let your AI make HeyGen avatar videos with your own key: pick avatars and voices, turn a script or a prompt into a talking video, fill your templates, translate videos into other languages with lip-sync, create photo avatars, and check renders and your balance.

tools

19

Region

INTL

Category

Publishing

Authentication

API Key

Required env vars

HEYGEN_API_KEY
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source · AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Skip the install. Get this working in under 2 minutes.

Start a free trial on cloud.anythingmcp.com, add the HeyGen in one click, then point your AI client (Claude, ChatGPT, Copilot or Cursor) at the generated MCP endpoint. No Docker, no git clone, zero engineering experience required.

Start free trial

Summary

Let your AI make HeyGen avatar videos with your own key: pick avatars and voices, turn a script or a prompt into a talking video, fill your templates, translate videos into other languages with lip-sync, create photo avatars, and check renders and your balance.

Try asking

Example prompts for HeyGen

Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.

HeyGen · live via MCP
Share
Opus 4.7

Claude is AI and can make mistakes. Please double-check responses.

💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → HeyGen, paste your credentials, mint an MCP API key and you're done. No Docker, no git clone, no local server.

HeyGen + ChatGPT

Let your AI make HeyGen avatar videos with your own key: pick avatars and voices, turn a script or a prompt into a talking video, fill your templates, translate videos into other languages with lip-sync, create photo avatars, and check renders and your balance.

Prerequisites

See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:

HEYGEN_API_KEY

Step 1 — Get credentials

  1. Sign in at https://app.heygen.com and open the API dashboard (https://app.heygen.com/developers/api).
  2. Generate an API key and copy it. API usage is billed separately from a HeyGen web subscription: add balance or a payment method there if the account has none.
  3. Paste the key into HEYGEN_API_KEY and install the connector. The key is sent only to HeyGen. A key restricted to some scopes needs read access to avatars, voices, videos, templates, translations and the user, and write access for the tools that create.
  4. Start with heygen_get_account: it shows your billing type and what you have left to spend.

Billed to your HeyGen API balance: videos, translations and avatars are paid from your API balance (a pay-as-you-go wallet or your plan's credits). HeyGen bills video by length and engine; the current prices are in the API dashboard, and a refused call (402) says how much was needed. Listing and checking is free.

Confirm first: before heygen_create_video, heygen_generate_from_template, heygen_create_agent_video or heygen_translate_video, the AI tells you what will be made (avatar, voice, script length, format, languages, engine) and waits for your yes. heygen_create_photo_avatar only takes a photo of someone who agreed to it, such as yourself, and the AI asks you to confirm that you have that right. heygen_delete_video is switched off at install.

How a video is made:

  1. The AI picks a character with heygen_list_avatar_groups and one of its looks with heygen_list_avatar_looks; the look is the presenter. A voice from heygen_list_voices is optional, otherwise the avatar's own voice speaks.
  2. heygen_create_video takes the script (up to 5,000 characters), the format (for example 9:16 for shorts) and the engine, and returns a video id at once.
  3. The video renders in the background. The AI checks heygen_get_video about every 30 seconds; a render takes from a minute to several minutes, longer for long scripts.
  4. The finished video comes with an MP4 link, a captioned version, SRT subtitles and a link to the video in HeyGen. Download links expire; ask again for fresh ones.

Other ways to make a video:

  • Templates: heygen_list_templates and heygen_get_template show your API-ready templates and their variables; heygen_generate_from_template fills every text variable and renders the video.
  • Video Agent: heygen_create_agent_video turns a prompt into a whole video (script, scenes, avatar); heygen_get_agent_session follows it until the video renders.
  • Translation: heygen_translate_video translates a video from a public link into one or more languages, with the speaker's cloned voice and lip-sync or as audio only; heygen_list_translation_languages lists the target languages.
  • Photo avatar: heygen_create_photo_avatar makes a presenter from one portrait; heygen_get_avatar_look shows when it is ready to use.

Engines: avatar_iv is the default. avatar_v gives the most natural motion, but only for looks that support it. avatar_iii supports 4K for digital twins and studio avatars.

Limits: 10 videos, translations or agent sessions rendering at once on pay-as-you-go (more on Enterprise), 300 list calls and 500 status checks a minute. Source files must be public links: video up to 100 MB, audio up to 50 MB and 10 minutes.

Common errors: 401: the key is wrong or revoked. 402 insufficient_credit: the balance does not cover this video, and the message says how much is needed. usage_limit_reached or trial_limit_exceeded: a workspace or trial limit that an admin or a paid plan lifts. 403 insufficient_api_key_scope: the key is restricted; give it the scopes listed above. 400 invalid_parameter: the message names the field, for example an engine the look does not support. 404: an id that does not exist; the AI checks it with the list tools. 429: too many requests; wait and retry once later.

The connector uses HeyGen's API v3 (HeyGen retires the older v1 and v2 endpoints on 31 October 2026). It does not cover multi-scene studio videos, image-to-video, lip-sync of existing videos, voice cloning and voice design, text to speech on its own, interactive streaming avatars, file uploads (sources must be public links), proofreading translations, webhooks, brand kits, folders or batches.

Step 2 — Install the adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

Step 3 — Add the connector in ChatGPT

Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide shows YOUR_SERVER_ID.

ChatGPT adds MCP servers as plugins on its Plugins page, on the web and on paid plans. Developer mode is no longer needed. In a Business workspace only admins and owners can add one; in Enterprise and Edu an admin can grant the Create plugins with MCPs permission.

  1. Go to chatgpt.com/plugins, click +, then Add custom MCP server.
  2. Enter a name, e.g. Name: HeyGen.
  3. Under Connection, enter the Server URL https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID and keep Authentication on OAuth.
  4. Select I understand and want to continue, then Create as a plugin. When ChatGPT asks, sign in to AnythingMCP and allow access.
  5. Install the new plugin from your personal plugins, then type @ in a chat and pick it.

Available tools

ToolWhat it does
heygen_list_avatar_groupsList avatar characters (groups): HeyGen's public stock avatars and the user's own (digital twins, photo avatars), with id, name, gender…
heygen_list_avatar_looksList avatar looks (a character's outfits, poses and styles)
heygen_get_avatar_lookGet one avatar look: type, character, default voice, supported engines, orientation, preview links and, for the user's own avatars, the…
heygen_list_voicesList the voices a video can speak with: HeyGen's public voices or the user's own cloned voices, with id, name, language, gender and a…
heygen_create_videoMake a talking avatar video: an avatar look speaks a script (or lip-syncs an audio file)
heygen_get_videoCheck a video (also one made from a template or by the video agent): status pending, processing, completed or failed
heygen_list_videosList the videos in the HeyGen account, newest first, with id, title, status, duration and links
heygen_delete_videoDelete a video and its files from the HeyGen account
heygen_list_templatesList the workspace's video templates that are ready for the API (templates are designed in the HeyGen editor; only those with variables…
heygen_get_templateGet a template's variables with their current values (keyed by variable name, each with its type: text, image, video, audio, character or…
heygen_generate_from_templateMake a video from a template by filling its variables
heygen_list_translation_languagesList the target languages video translation supports, as the exact names heygen_translate_video expects (e.g
heygen_translate_videoTranslate a video into one or more languages with the speaker's cloned voice and matching lip movements (or the audio only)
heygen_get_video_translationCheck a video translation: status pending, running, completed or failed
heygen_list_video_translationsList the video translation jobs in the account with status, languages and links
heygen_create_agent_videoLet HeyGen's Video Agent make a whole video from a prompt: it writes the script, picks an avatar (or uses the one given), builds the scenes…
heygen_get_agent_sessionFollow a Video Agent session: status (thinking, waiting_for_input, reviewing, generating, completed, failed), progress 0 to 100, title…
heygen_create_photo_avatarCreate an avatar from one photo of a person, to use as a presenter in videos
heygen_get_accountShow the HeyGen account behind the key and what it has left to spend: billing type and, depending on it, the API wallet balance (USD or…

Example prompts

  • "How much is left on my HeyGen API balance?"
  • "Show me my own avatars and which of their looks work best in 9:16."
  • "Make a 45-second 9:16 video with my digital twin reading this script. Confirm the avatar, voice and length with me first, then send me the MP4 link when it is ready."
  • "Fill our weekly update template with these three news items and render it."
  • "Translate this product demo video into Spanish (Spain) and Japanese with lip-sync and tell me when both versions are ready."

FAQ

Does the free ChatGPT plan work with custom MCP servers? OpenAI documents custom MCP servers for paid plans only; the Free plan is not on its list.

Next steps

Was this guide helpful?

Your HeyGen agent is one click away.

Install the connector, paste the key, prompt ChatGPT. Free for 7 days, no credit card.

Related guides

Connectors

How to Connect HeyGen to Claude via MCP

Let your AI make HeyGen avatar videos with your own key: pick avatars and voices, turn a script or a prompt into a talking video, fill your templates, translate videos into other languages with lip-sync, create photo avatars, and check renders and your balance.

Connectors

How to Connect HeyGen to Cursor via MCP

Let your AI make HeyGen avatar videos with your own key: pick avatars and voices, turn a script or a prompt into a talking video, fill your templates, translate videos into other languages with lip-sync, create photo avatars, and check renders and your balance.

Connectors

How to Connect HeyGen to Gemini via MCP

Let your AI make HeyGen avatar videos with your own key: pick avatars and voices, turn a script or a prompt into a talking video, fill your templates, translate videos into other languages with lip-sync, create photo avatars, and check renders and your balance.

Connectors

How to Connect HeyGen to Meta Muse via MCP

Let your AI make HeyGen avatar videos with your own key: pick avatars and voices, turn a script or a prompt into a talking video, fill your templates, translate videos into other languages with lip-sync, create photo avatars, and check renders and your balance.

Connectors

HeyGen to MCP: AI Avatar Videos from any AI Agent

Let your AI make HeyGen avatar videos with your own key: pick avatars and voices, turn a script or a prompt into a talking video, fill your templates, translate videos into other languages with lip-sync, create photo avatars, and check renders and your balance.

Connectors

How to Connect Avito to ChatGPT via MCP

Let your AI work with your Avito business account: list your ads and change their prices, read views, contacts and calls statistics, check autoload uploads and their errors, the feed format and your wallet, and read Avito Messenger chats. Sending messages and changing autoload settings are optional and off by default.