pasie15/heygen-mcp-server
If you are the rightful owner of heygen-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
The HeyGen MCP Server is a Model Context Protocol server designed to facilitate interaction with the HeyGen API for managing digital assets and folders.
HeyGen MCP Server
A Model Context Protocol (MCP) server that provides tools for interacting with the HeyGen API, specifically for managing assets and folders.
Features
This MCP server implements the following HeyGen API endpoints:
Assets Management
- upload_asset - Upload media files (images, videos, audio) to HeyGen
- list_assets - Retrieve all assets in your account
- delete_asset - Delete specific assets by ID
Folders Management
- list_folders - List all folders in your account
- create_folder - Create new folders
- update_folder - Rename existing folders
- trash_folder - Move folders to trash
- restore_folder - Restore trashed folders
Installation
-
Clone or download this repository
-
Install dependencies:
npm install -
Build the project:
npm run build
Configuration
Environment Variables
You need to set your HeyGen API key as an environment variable:
export HEYGEN_API_KEY="your_api_key_here"
To get your API key:
- Go to the HeyGen App
- Click the top left corner to access your Space
- Select "Space Settings" from the dropdown
- Navigate to the API tab
- Copy your API token
MCP Settings Configuration
Add the server to your MCP settings file (typically claude_desktop_config.json or similar):
{
"mcpServers": {
"heygen": {
"command": "node",
"args": [
"/path/to/mcp-servers/heygen/dist/index.js"
],
"env": {
"HEYGEN_API_KEY": "your_api_key_here"
}
}
}
}
Or using npx (no installation required):
{
"mcpServers": {
"heygen": {
"command": "npx",
"args": ["heygen-mcp-server"],
"env": {
"HEYGEN_API_KEY": "your_api_key_here"
}
}
}
}
Or if installed globally (npm install -g heygen-mcp-server):
{
"mcpServers": {
"heygen": {
"command": "heygen-mcp-server",
"env": {
"HEYGEN_API_KEY": "your_api_key_here"
}
}
}
}
Usage
Once configured, the HeyGen MCP server will be available to your MCP client. You can use the following tools:
List Assets
Use the list_assets tool to retrieve all your media assets
Delete Asset
Use the delete_asset tool with asset_id parameter to delete a specific asset
List Folders
Use the list_folders tool to see all your folders
Create Folder
Use the create_folder tool to create a new folder
Optionally specify project_type (default: "mixed")
Update Folder
Use the update_folder tool with folder_id and name parameters to rename a folder
Trash Folder
Use the trash_folder tool with folder_id parameter to move a folder to trash
Restore Folder
Use the restore_folder tool with folder_id parameter to restore a trashed folder
Upload Asset
Use the upload_asset tool with file_path and mime_type parameters
Supported MIME types:
- image/png
- image/jpeg
- audio/mpeg
- video/mp4
- video/webm
Note: File upload functionality requires binary file handling
Development
Build
npm run build
Watch Mode
npm run watch
Run Locally
npm run dev
API Documentation
For more information about the HeyGen API, visit:
Security
IMPORTANT: Keep your API key secret and secure! Never commit it to version control or share it publicly. Anyone with access to your API key can make requests on your behalf.
If you suspect your API key has been compromised, contact HeyGen at contact@heygen.com immediately.
Limitations
- The upload_asset tool currently provides instructions for manual upload as binary file handling is not yet fully implemented
- API rate limits depend on your HeyGen subscription tier
- Some operations may require specific HeyGen plan features
License
MIT
Support
For issues related to:
- This MCP server: Open an issue in this repository
- HeyGen API: Contact HeyGen support at contact@heygen.com
- MCP Protocol: Visit the Model Context Protocol documentation