heygen-mcp-adapter
The HeyGen MCP Adapter provides a simple REST API for generating videos through HeyGen and checking their status. It is easy to run locally and stores metadata in a SQLite database.
GitHub Stars
0
User Rating
Not Rated
Favorites
0
Views
18
Forks
0
Issues
1
HeyGen MCP Adapter
This project provides a simple REST API for generating videos through HeyGen and checking their status.
Running Locally
Install dependencies:
pip install -r requirements.txtSet your HeyGen API credentials as environment variables:
export HEYGEN_API_KEY=<your-api-key> # optional: override base URL if needed export HEYGEN_BASE_URL=https://api.heygen.com/v1Start the server:
uvicorn server:app --reload
The API will be available at http://localhost:8000.
Video metadata is stored in a local SQLite database (videos.db) created automatically in the project directory.
Refer to openapi.yaml for the API specification.
Authentication
Set the API_TOKEN environment variable to define the token expected by the
server (defaults to dev-token). Requests to /video/generate and/video/{video_id}/status must include this token using the Authorization
header:
curl -H "Authorization: Bearer $API_TOKEN" http://localhost:8000/video/generate
=======
## Docker
To build and run the application using Docker:
```bash
docker build -t heygen-mcp-adapter .
docker run -p 8000:8000 heygen-mcp-adapter
Using Docker Compose
For development with automatic reloads:
docker-compose up --build