A Model Context Protocol (MCP) server that integrates with ElevenLabs text-to-speech API.
51 stars2 watching6 forks
ElevenLabs MCP Server
A Model Context Protocol (MCP) server that integrates with ElevenLabs text-to-speech API.
Features
- Generate audio from text using ElevenLabs API
- Support for multiple voices and script parts
Installation
- Clone this repository
- Install dependencies:
uv venv uv pip install -e .
- Copy
.env.example
to.env
and fill in your ElevenLabs credentials
MCP Settings Configuration
Add the following configuration to your MCP settings file (e.g., cline_mcp_settings.json
for Claude Desktop):
{
"mcpServers": {
"elevenlabs": {
"command": "uv",
"args": [
"--directory",
"d:/GitHub/elevenlabs-mcp-server/src/elevenlabs_mcp",
"run",
"elevenlabs-mcp"
],
"env": {
"ELEVENLABS_API_KEY": "your-api-key",
"ELEVENLABS_VOICE_ID": "your-voice-id",
"ELEVENLABS_MODEL_ID": "eleven_flash_v2"
}
}
}
}
Usage
-
Start the server:
uv --directory d:/GitHub/elevenlabs-mcp-server/src/elevenlabs_mcp run elevenlabs-mcp
-
Use with any MCP client (e.g., Claude Desktop)
Tools
generate_audio
: Generate audio from a story script and return the audio content directly. The script can include multiple parts with optional voice_id and actor assignments.
Development
Install development dependencies:
uv pip install -e ".[dev]"
Run tests:
pytest
License
MIT
Features
audio
voices
scripts
tts
Category
Integrations