MetorialDocs

Set up HeyGen in Metorial for Claude, ChatGPT and Cursor

Share HeyGen with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or API key sign-in, 24 tools (14 read-only).

To give your team HeyGen in Claude, ChatGPT, Cursor and other AI clients, an admin shares the HeyGen integration in a Metorial portal, and each person signs in to HeyGen with their own account. Agents can create AI avatar videos from text or audio, generate videos from prompts and Studio templates, translate videos with lip-sync, and synthesize speech. The integration has 24 tools, 14 read-only, 7 write and 3 destructive, plus 1 trigger.

What you'll learn

  • How an admin shares HeyGen in a portal and how each person connects
  • The 1 OAuth scope HeyGen can request, and what each one allows
  • How to keep the 14 read-only tools and reject the other 10

Before you start

Sign-in methods

MethodTypeWhat a person provides
HeyGen OAuth (default)OAuthSigns in to HeyGen after entering codeVerifier
API KeyAPI tokenapiKey

The portal and metorial setup use HeyGen OAuth unless someone picks another method.

HeyGen OAuth

Before the sign-in, setup asks for:

  • codeVerifier (optional)

People sign in to HeyGen and approve the scopes you allow. The integration can request:

ScopeNameWhat it allows
full_accessFull AccessFull API access based on account permissions

API Key

To connect, a person enters:

  • apiKey: HeyGen API key from Settings > API in your HeyGen dashboard

Use your own HeyGen OAuth app

With your own OAuth app, people see your company's name on the HeyGen consent screen, and the client ID and secret belong to you.

Start the credentials in Metorial

In the dashboard, select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials. Choose HeyGen and copy the Redirect URI.

Register the app with HeyGen

Create an OAuth app or client in HeyGen and add the redirect URI from Metorial as its redirect or callback URL. The vendor documents this in OAuth documentation.

Finish in Metorial

Copy the app's client ID and client secret. Back in Metorial, enter a Name, the Client ID and the Client Secret, review Scopes, and select Create. Then pick these credentials for the HeyGen integration.

Admin: share HeyGen in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose HeyGen. Under Auth Method, keep HeyGen OAuth or pick another. For how members connect, choose Each person connects, so everyone signs in to HeyGen as themselves.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from HeyGen.

Choose who gets it

Add the access groups that should see HeyGen. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user HeyGen integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search heygen

Employee: connect HeyGen

In the portal

Open HeyGen in the catalog

Sign in to your portal and open HeyGen. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. A HeyGen sign-in tab opens. Sign in and approve the permissions listed.

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search heygen
metorial setup <catalog-item-id>

catalog search prints the catalog item ID. metorial setup uses HeyGen OAuth. To connect with API Key instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.

Add it to your AI client

metorial install adds your HeyGen connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list heygen
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 14 read-only tools, such as list_assets and list_videos, and lose the 7 write tools, such as upload_asset or generate_speech, and the 3 destructive tools, such as delete_asset or delete_video.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list heygen
metorial tools <integration-id>
metorial call <integration-id> list_voices -d '{}'

metorial tools lists the 24 tools, minus any you rejected. list_voices takes no input. It retrieves a page of available voices for text-to-speech in HeyGen.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (14)

  • list_videos: List generated videos in your HeyGen account with pagination support.
  • list_avatars: Retrieve a page of available AI avatars in your HeyGen account, including both public and custom avatars.
  • list_assets: List uploaded assets (images, videos, audio files) in your HeyGen account.
  • list_voices: Retrieve a page of available voices for text-to-speech in HeyGen.
  • list_talking_photos: Retrieve a page of talking photos (photo avatars) in your HeyGen account.
  • get_remaining_quota: Check remaining API credits and account quota.
  • list_templates: List a page of available video templates in your HeyGen account.
  • get_template: Retrieve details of a specific template including its dynamic variable definitions. Needs templateId.
  • get_video_status: Check the status of a video generation job and retrieve the completed video URL. Needs videoId.
  • get_translation_status: Check the status of a video translation job and retrieve translated video URLs. Needs videoTranslateId.
  • get_current_user: Retrieve the authenticated HeyGen account identity and billing details.
  • list_translations: List video translation jobs with their IDs, languages, and status.
  • list_translation_languages: Discover the exact target language names accepted by translate_video.
  • get_video_agent_status: Check a Video Agent session returned by create_video_from_prompt.

Write tools (7)

  • upload_asset: Upload an asset (image, video, or audio) to HeyGen from a public URL. Needs url.
  • generate_speech: Generate natural-sounding speech audio from text using HeyGen's text-to-speech engine. Needs text and voiceId.
  • create_video_from_prompt: Generate a video using the Video Agent from a simple natural language prompt. Needs prompt.
  • translate_video: Translate a video into one or more target languages with natural voice cloning and lip-sync. Needs targetLanguages.
  • create_streaming_token: Create a legacy Interactive Avatar streaming token for an account that still has streaming access.
  • create_avatar_video: Generate an AI avatar video with one or more scenes. Needs scenes.
  • generate_from_template: Generate a customized video from a HeyGen template by filling in dynamic variables. Needs templateId and variables.

Destructive tools (3)

  • delete_video: Permanently delete a generated video from your HeyGen account. Needs videoId.
  • delete_asset: Permanently delete an uploaded asset from your HeyGen account. Needs assetId.
  • delete_translation: Permanently delete a video translation and its generated files.

Triggers

HeyGen has 1 trigger, which fire on events in HeyGen:

  • video_events: Triggers on HeyGen video lifecycle events including avatar video completion/failure, video agent completion/failure, video translation completion/failure, and personalized video updates.

Next steps