OpenRouter HeyGen Voice MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
OpenRouter HeyGen Voice MCP
A stdio MCP server that generates speech using OpenRouter's heygen/heygen-voice-1-turbo:free model and saves a local WAV file. It offers the ten built-in voices; it does not clone voices or silently switch to paid models.
OpenRouter lists this free model as scheduled to end on 2026-11-30. Availability and free quota can change. Check the model page before relying on it.
Requirements
Bun, Node-compatible MCP client, and an OpenRouter API key.
Network access to
https://openrouter.ai/api/v1/audio/speech.Set
OPENROUTER_API_KEYin the MCP client's environment. Do not place keys in this repository or share them in chat.
Related MCP server: mcp-tts-server
Setup
bun install --frozen-lockfile
bun run test
bun run typecheckConfigure your MCP client with the absolute paths to Bun and this project's src/index.ts. The following is an example for Codex's config.toml; use paths appropriate for your system:
[mcp_servers.openrouter-heygen-voice]
command = "C:/Users/YOU/.bun/bin/bun.exe"
args = ["C:/PATH/TO/openrouter-heygen-voice-mcp/src/index.ts"]Set OPENROUTER_API_KEY in your operating-system or client environment and restart the client if necessary. For the current PowerShell session, a key already securely saved in the Windows user environment can be inherited without printing it:
$env:OPENROUTER_API_KEY = [Environment]::GetEnvironmentVariable('OPENROUTER_API_KEY', 'User')Restart the MCP client after changing configuration. Do not embed credentials in tool arguments, project files, or repository configuration.
Tools
list_voices: returns the ten built-in voice IDs from the 2026-11-03 model-catalog snapshot. No generation request.generate_speech: takestext(1–5,000 UTF-16 code units),voice(one of the listed IDs), and an absolute, new.wavoutput_path. The parent folder must already exist. Makes one OpenRouter request; it does not retry, split text, overwrite files, or fall back to a paid model. A failed or timed-out request should be investigated before retrying.
Example MCP tool arguments:
{"text":"你好,這是語音測試。","voice":"nadine","output_path":"C:/Temp/heygen-sample.wav"}The API sends the input text to OpenRouter and HeyGen. It returns raw PCM; the server writes a WAV header for signed 16-bit little-endian PCM, using sample-rate and channel information from the response when present, or the model's documented 44.1 kHz mono when absent. The result includes the generation ID, response content type, sample rate, file size, and calculated duration. WAV container validation is not a substitute for listening to the result.
OpenRouter TTS documentation · Model catalog API
Development
bun test uses an in-memory MCP transport and mocked HTTP responses; it does not generate speech or spend quota. Do not use real keys in tests. bun run start serves stdio; keep stdout reserved for MCP protocol messages.
License
MIT. This project is independent of OpenRouter and HeyGen.
This server cannot be deployed
Maintenance
Related MCP Connectors
Synthesize short texts into WAV audio using offline formant voices in English, German and Spanish
Turn text into speech with Nigerian and African-accented voices.
Text to speech in 149 languages: MP3 links from any assistant. Free without an account.
Generate English and Chinese speech, split long text, track batch jobs, and download audio.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to convert text to speech using Microsoft Edge's Text-to-Speech service with customizable voice options, speech rate, volume, and pitch parameters.MIT
- AlicenseNot gradedqualityCmaintenanceEnables text-to-speech generation using the Groq API, supporting multiple audio formats and optional local playback.12 npm1MIT

leanvox-mcpofficial
AlicenseNot gradedqualityDmaintenanceEnables text-to-speech generation, voice cloning, dialogue creation, and other TTS operations through natural language in MCP-compatible AI assistants.9 npmMIT- FlicenseAqualityDmaintenanceEnables text-to-speech conversion using Google Translate's TTS, supporting many languages and accents, and saving MP3 files.2-