heygen-mcp-server
v1.1.0
Published
MCP server for HeyGen API - Assets and Folders management
Maintainers
Readme
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 installBuild 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 assetsDelete Asset
Use the delete_asset tool with asset_id parameter to delete a specific assetList Folders
Use the list_folders tool to see all your foldersCreate 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 folderTrash Folder
Use the trash_folder tool with folder_id parameter to move a folder to trashRestore Folder
Use the restore_folder tool with folder_id parameter to restore a trashed folderUpload 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 handlingDevelopment
Build
npm run buildWatch Mode
npm run watchRun Locally
npm run devAPI 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 [email protected] 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 [email protected]
- MCP Protocol: Visit the Model Context Protocol documentation
