This is a Model Context Protocol (MCP) server that provides access to the HeyGen API for generating AI avatars and videos.
POST requests to: https://heygen.mcp.majewscy.tech/
For MCP authentication:
x-api-key
Your server authentication key (contact us for access)
For HeyGen access:
x-heygen-api-key
Your HeyGen API key (get from heygen.com)
curl -X POST https://heygen.mcp.majewscy.tech/ \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_SERVER_KEY" \
-H "x-heygen-api-key: YOUR_HEYGEN_KEY" \
-d '{
"jsonrpc": "2.0",
"method": "tools/list",
"id": 1
}'
curl -X POST https://heygen.mcp.majewscy.tech/ \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_SERVER_KEY" \
-H "x-heygen-api-key: YOUR_HEYGEN_KEY" \
-d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "get_remaining_credits",
"arguments": {}
},
"id": 2
}'
{
"mcpServers": {
"heygen": {
"type": "http",
"url": "https://heygen.mcp.majewscy.tech/",
"headers": {
"x-api-key": "YOUR_SERVER_KEY",
"x-heygen-api-key": "YOUR_HEYGEN_KEY"
}
}
}
}
get_remaining_credits - Check remaining API creditsget_voices - Get available voice optionsget_avatar_groups - List avatar groupsget_avatars_in_avatar_group - Get avatars in a specific groupgenerate_avatar_video - Generate a video with an avatarget_avatar_video_status - Check video generation status{"jsonrpc":"2.0","id":1,"error":{"code":-32001,"message":"Invalid API Key"}}
Solution: Check your x-api-key header value
{"jsonrpc":"2.0","id":1,"error":{"code":-32603,"message":"No HEYGEN_API_KEY provided"}}
Solution: Add x-heygen-api-key header with your HeyGen API key
GET /health - Returns server status (no authentication required)