Heygen MCP for AI Agents

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Heygen MCP or direct API to generate videos, automate editing, fetch video status, and manage assets through natural language.
Trusted by
AWS
Glean
Zoom
Airtable

30 min · no commitment · see it on your stack

Heygen Logo
Gradient Top
Gradient Middle
Gradient Bottom
divider

Try Heygen now

Enter a prompt below to test the integration in our Tool Router playground. You'll be redirected to sign in and try it live.

Supported Tools

Tools
Add looks to photo avatar groupTool to add additional looks (images) to an existing photo avatar group.
Add motion to photo avatarTool to add natural motion or animation to an existing photo avatar, turning a still image into a moving, lifelike one.
Check photo/look generation statusTool to retrieve the current status and details of a photo avatar or look generation by its ID.
Create a new folderTool to create a new folder under your HeyGen account.
Create knowledge baseTool to create a new knowledge base with a specified name, opening line, and custom prompt for Interactive Avatar streaming sessions.
Create photo avatar groupTool to create an avatar group which can include both AI-generated and user-uploaded photos of the avatar.
Create WebM videoTool to create a WebM format video with transparent background featuring an avatar speaking text or audio.
Delete an avatar videoTool to delete a video by its ID from HeyGen account.
Delete assetTool to delete a specific asset by its unique asset ID from HeyGen account.
Delete knowledge baseTool to delete a specific knowledge base by its ID.
Delete photo avatarTool to delete a photo avatar by its ID from HeyGen account.
Delete photo avatar groupTool to delete a photo avatar group by its ID from HeyGen account.
Delete webhook endpointTool to permanently delete a webhook endpoint from HeyGen.
Generate photo avatar photosTool to generate a personalized AI avatar based on text prompts and attribute inputs.
Generate text-to-speech audioTool to generate a speech audio file from any text input using a specified voice, powered by HeyGen's Starfish model.
Generate voice audio previewTool to generate a short audio preview with the specified voice and text.
Get current user informationTool to retrieve the profile information of the currently authenticated user.
Get training job statusTool to retrieve the current training status and details of a photo avatar training job by group ID.
Keep alive streaming sessionTool to reset the idle timeout counter for an active streaming session.
List all avatar groupsTool to retrieve a list of all available avatar groups in your HeyGen account.
List all locales for voicesTool to retrieve available locales for multilingual voices.
List assetsTool to retrieve a paginated list of all assets (images, audios, videos) created under your account.
List brand voicesTool to retrieve a list of brand glossaries created under your account.
List foldersTool to retrieve a paginated list of folders created under your account.
List avatars in a specific groupTool to retrieve all avatars that belong to a specific avatar group.
List knowledge basesTool to retrieve a list of all existing knowledge bases associated with your account.
List session historyTool to retrieve a paginated history of all streaming sessions with metadata including session duration, timestamps, and other details.
List streaming avatarsTool to retrieve a list of public and custom interactive avatars for streaming.
List TTS voicesTool to retrieve a list of public and custom voices compatible with HeyGen's Starfish TTS model.
Create new streaming sessionTool to initiate a new streaming session with an Interactive Avatar for real-time interactions.
Add contact to personalized video projectThis endpoint allows you to add one or more contacts to a specific personalized video project in the Heygen platform.
Fetch personalized video project detailRetrieves detailed information about a specific personalized video project in HeyGen, including status, settings, and metadata.
Get photo avatar detailsTool to retrieve detailed information about a photo avatar or look using its unique ID.
Post talking photo binary imageCreates a talking photo by processing an uploaded image file.
Restore folder from trashTool to restore a previously deleted folder from trash by its unique folder ID.
Retrieve avatar detailsTool to retrieve detailed information about a specific avatar by its ID.
Retrieve sharable video URLTool to generate a public, shareable URL for a specific video by ID.
Retrieve template details v3Tool to retrieve comprehensive details about a specific template including all available variables for replacement and scene mappings for templates built in the New AI Studio.
Retrieve video status detailsTool to retrieve the current processing status and metadata for a specific video by ID.
Search public avatar groupsTool to search and retrieve public avatar groups with optional filters and pagination.
Create streaming token with expiryCreates a new streaming token for use with HeyGen's real-time avatar and voice chat services.
Post streaming ice candidatesThis endpoint is used to submit ICE (Interactive Connectivity Establishment) candidate information for a specific streaming session in the Heygen platform.
Interrupt streaming sessionInterrupts an ongoing streaming session with an interactive avatar.
Retrieve streaming listRetrieves a list of active or available streaming sessions or content within the HeyGen platform.
Set streaming quality endpointInitiates a new streaming session with HeyGen, allowing users to start an avatar-based stream with specified quality settings.
Start streaming sessionInitiates a new streaming session for real-time communication in the HeyGen platform.
Stop streaming sessionThe streaming.
Send task to streaming avatarThe StreamingTask endpoint initiates a real-time speaking task for an AI-driven avatar within an active streaming session.
Move folder to trashTool to move a specific folder to trash by its unique folder ID.
Update folder nameTool to update (rename) an existing folder by its unique folder ID.
Update knowledge baseTool to update an existing knowledge base by its ID.
Update webhook endpointTool to modify an existing webhook endpoint configuration including URL and subscribed event types.
Upload assetTool to upload a file asset (image, video, or audio) to HeyGen platform.
Upscale motion avatarTool to enhance the resolution and visual quality of a motion avatar.
List avatars endpointRetrieves a list of available avatars from the Heygen platform.
List talking photo entriesRetrieves a list of talking photos created using the HeyGen platform.
List videosRetrieves a list of videos associated with the user's account on the HeyGen platform.
List voice endpointsRetrieves a comprehensive list of all available voices in the HeyGen platform.
Add webhook endpointAdds a new webhook endpoint to receive real-time notifications for specified Heygen events.
List webhook endpointsRetrieves a list of all webhook endpoints configured for your HeyGen account.
List webhooksRetrieves a list of all available webhook event types that can be subscribed to in your HeyGen account.
Delete talking photo by idDeletes a specific talking photo from the HeyGen platform using its unique identifier.
Generate video template with variablesGenerates a customized video from a pre-existing template using HeyGen's AI platform.
Get template by idRetrieves a specific template from the HeyGen platform using its unique identifier.
Retrieve all templatesRetrieves a list of available avatar templates from the HeyGen platform.
Retrieve user remaining quotaRetrieves the current remaining quota for the authenticated user on the HeyGen platform.
Generate video with inputsGenerates a customized video using Heygen's AI-driven platform.
Post video translate requestThe TranslateVideo endpoint enables the translation of video content from one language to another.
Retrieve video translation by idRetrieves the current status of a video translation job in the HeyGen platform.
Retrieve video translation target languagesRetrieves a list of all available target languages supported by HeyGen's video translation feature.
List available voicesRetrieves a list of available voice models and options that can be used with HeyGen's AI-driven video creation platform.
Python
TypeScript

Install Composio

python
pip install composio claude-agent-sdk
Install the Composio SDK and Claude Agent SDK

Create Tool Router Session

python
from composio import Composio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions

composio = Composio(api_key='your-composio-api-key')
session = composio.create(user_id='your-user-id')
url = session.mcp.url
Initialize the Composio client and create a Tool Router session

Connect to AI Agent

python
import asyncio

options = ClaudeAgentOptions(
    permission_mode='bypassPermissions',
    mcp_servers={
        'tool_router': {
            'type': 'http',
            'url': url,
            'headers': {
                'x-api-key': 'your-composio-api-key'
            }
        }
    },
    system_prompt='You are a helpful assistant with access to Heygen tools.',
    max_turns=10
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query('List streaming avatars available for video generation')
        async for message in client.receive_response():
            if hasattr(message, 'content'):
                for block in message.content:
                    if hasattr(block, 'text'):
                        print(block.text)

asyncio.run(main())
Use the MCP server with your AI agent

Why Use Composio?

AI Native Heygen Integration

  • Supports both Heygen MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for creating, editing, and managing Heygen videos

Managed Auth

  • Built-in API key management for Heygen
  • Central place to manage, scope, and revoke Heygen access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Heygen
  • Scoped, least privilege access to Heygen resources
  • Full audit trail of agent actions to support review and compliance

Frequently Asked Questions

Do I need my own developer credentials to use Heygen with Composio?

Yes, Heygen requires you to configure your own API key credentials. Once set up, Composio handles secure credential storage and API request handling for you.

Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. Learn more.

What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

Used by agents from

Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai

Never worry about agent reliability

We handle tool reliability, observability, and security so you never have to second-guess an agent action.