npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

heygen-mcp-server

v1.1.0

Published

MCP server for HeyGen API - Assets and Folders management

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

  1. Clone or download this repository

  2. Install dependencies:

    npm install
  3. 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:

  1. Go to the HeyGen App
  2. Click the top left corner to access your Space
  3. Select "Space Settings" from the dropdown
  4. Navigate to the API tab
  5. 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 [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: