Skip to main content

Heygen MCP Server

Heygen Logo

The HeyGen MCP server enables any MCP Client like Claude Desktop or Agents to use the HeyGen API to generate avatars and videos.

License: MIT

Note: This project is in early development. While we welcome community feedback and contributions, please be aware that official support is limited.

Installation

Prerequisites

  • Python 3.10 or higher
  • A Heygen API key (get one from Heygen). Includes 10 Free Credits per Month

Installing uv

uv is a fast Python package installer and resolver that we recommend for installing this package.

macOS or Linux:

# Install with the official installer script
curl -LsSf https://astral.sh/uv/install.sh | sh

# Or via Homebrew (macOS)
brew install uv

Windows:

# Install with the official installer script in PowerShell
irm https://astral.sh/uv/install.ps1 | iex

# Or via Scoop
scoop install uv

For other installation methods, see the uv documentation.

Usage

Quickstart with Claude Desktop

  1. Get your API key from HeyGen.
  2. Install uv package manager (see Installing uv section above).
  3. Go to Claude > Settings > Developer > Edit Config > claude_desktop_config.json to include the following:
{
  "mcpServers": {
    "HeyGen": {
      "command": "uvx",
      "args": ["heygen-mcp"],
      "env": {
        "HEYGEN_API_KEY": "<insert-your-api-key-here>"
      }
    }
  }
}

If you're using Windows, you'll need to enable "Developer Mode" in Claude Desktop to use the MCP server. Click "Help" in the hamburger menu at the top left and select "Enable Developer Mode".

Available MCP Tools

The server provides the following tools to Claude:

  • get_remaining_credits: Retrieves the remaining credits in your Heygen account.
  • get_voices: Retrieves a list of available voices from the Heygen API (limited to first 100 voices).
  • get_avatar_groups: Retrieves a list of Heygen avatar groups.
  • get_avatars_in_avatar_group: Retrieves a list of avatars in a specific Heygen avatar group.
  • generate_avatar_video: Generates a new avatar video with the specified avatar, text, and voice.
  • get_avatar_video_status: Retrieves the status of a video generated via the Heygen API.

Development

Running with MCP Inspector

To run the server locally with the MCP Inspector for testing and debugging:

uv --with "mcp[cli]" dev heygen_mcp/server.py

This will start the server in development mode and allow you to use the MCP Inspector to test the available tools and functionality.

Roadmap

  • Tests
  • CICD
  • Photo Avatar APIs Support
  • SSE And Remote MCP Server with OAuth Flow
  • Translation API Support
  • Template API Support
  • Interactive Avatar API Support

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for heygen-mcp 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for heygen-mcp 0.0.3
File Size Uploaded Provenance
heygen_mcp-0.0.3.tar.gz 10.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for heygen-mcp 0.0.3
File Interpreter ABI Platform
heygen_mcp-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 19.3 kB

Release files / heygen_mcp-0.0.3.tar.gz

Download URL heygen_mcp-0.0.3.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a5492cce32c5ee1187023ca24125438fdfc91358f80137099251b58be698c343
BLAKE2b-256 checksum
How to use checksums
d93d4e4260d3158fdb4e959a7316d1ed2b6c4b1dd9d793398341d5baef95ed7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.14

Release files / heygen_mcp-0.0.3-py3-none-any.whl

Download URL heygen_mcp-0.0.3-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7d30d2d7e83a33c902da7b51d56d2f153894e021918eab54a929c496fe3358b7
BLAKE2b-256 checksum
How to use checksums
7d57eb95ec7ccd51c04a79a40fac9b6c93c2672de5d5c178c9d36711410ae572
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.14

Security for heygen-mcp 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page