https://github.com/elevenlabs/elevenlabs-mcp
The official ElevenLabs MCP server
https://github.com/elevenlabs/elevenlabs-mcp
elevenlabs elevenlabs-api mcp
Last synced: 5 months ago
JSON representation
The official ElevenLabs MCP server
- Host: GitHub
- URL: https://github.com/elevenlabs/elevenlabs-mcp
- Owner: elevenlabs
- License: mit
- Created: 2025-03-14T13:28:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-07T16:09:08.000Z (about 1 year ago)
- Last Synced: 2025-04-07T17:24:27.865Z (about 1 year ago)
- Topics: elevenlabs, elevenlabs-api, mcp
- Language: Python
- Homepage: https://elevenlabs.io
- Size: 324 KB
- Stars: 13
- Watchers: 16
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mcp - elevenlabs/elevenlabs-mcp
- awesome-mcp-servers - ElevenLabs MCP - MCP server integrating ElevenLabs' Text-to-Speech and audio processing APIs, enabling MCP clients to generate speech, clone voices, and transcribe audio. ([Read more](/details/elevenlabs-mcp.md)) `text-to-speech` `audio-processing` `ai-integration` `open-source` (Media Processing MCP Servers)
- awesome-mcp - elevenlabs/elevenlabs-mcp - The official ElevenLabs MCP server enabling MCP clients to access advanced text-to-speech and audio processing capabilities through ElevenLabs' APIs. (MCP Servers / Media & Creativity)
- awesome-creative-agentic-coding - ElevenLabs MCP
- awesome-mcp-servers - **ElevenLabs** - The official ElevenLabs MCP server `http` `git` `github` (📦 Other)
- metorial-index - ElevenLabs MCP Server - This server provides APIs for generating speech, voice cloning, and audio transcription. It facilitates seamless interaction with text-to-speech and audio processing functionalities. (Content Creation)
- awesome-voice-agents - ElevenLabs MCP - mcp) | Official ElevenLabs MCP server: TTS, transcription, voice cloning, outbound voice agents. Works with Claude Desktop/Cursor/Windsurf. | 官方 ElevenLabs MCP,高质量 TTS+克隆+外呼,生态最广 | (Voice MCP & Coding Agent Voice | 语音 MCP 与编程 Agent 语音 / Voice MCP Servers | 语音 MCP 服务)
- awesome-mcp-servers - ElevenLabs - The official ElevenLabs MCP server (Official Servers)
- Awesome-Official-MCP-Servers - elevenlabs/elevenlabs-mcp - mcp?style=social) | The official ElevenLabs MCP server | ElevenLabs 官方 MCP 服务器 | (官方 MCP 服务器列表)
- toolsdk-mcp-registry - ❌ elevenlabs-mcp - quality text-to-speech, voice cloning, and conversational capabilities with customizable voice profiles and audio processing features. (python) (Other Tools and Integrations / How to Submit)
- awesome-claude-code - elevenlabs/elevenlabs-mcp - mcp?style=flat-square&logo=github) | ElevenLabs TTS MCP | (MCP Ecosystem / Servers)
- awesome-openclaw-skills - ElevenLabs - | (MCP Servers & Protocol)
README

[](https://discord.gg/elevenlabs)
[](https://x.com/ElevenLabsDevs)
[](https://pypi.org/project/elevenlabs-mcp)
[](https://github.com/elevenlabs/elevenlabs-mcp-server/actions/workflows/test.yml)
Official ElevenLabs Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech and audio processing APIs. This server allows MCP clients like Claude Desktop, Cursor, Windsurf, OpenAI Agents and others to generate speech, clone voices, transcribe audio, and more.
## Quickstart with Claude Desktop
1. Get your API key from [ElevenLabs](https://elevenlabs.io/app/settings/api-keys). There is a free tier with 10k credits per month.
2. Install `uv` (Python package manager), install with `curl -LsSf https://astral.sh/uv/install.sh | sh` or see the `uv` [repo](https://github.com/astral-sh/uv) for additional install methods.
3. Go to Claude > Settings > Developer > Edit Config > claude_desktop_config.json to include the following:
```
{
"mcpServers": {
"ElevenLabs": {
"command": "uvx",
"args": ["elevenlabs-mcp"],
"env": {
"ELEVENLABS_API_KEY": ""
}
}
}
}
```
If you're using Windows, you will have 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".
## Other MCP clients
For other clients like Cursor and Windsurf, run:
1. `pip install elevenlabs-mcp`
2. `python -m elevenlabs_mcp --api-key={{PUT_YOUR_API_KEY_HERE}} --print` to get the configuration. Paste it into appropriate configuration directory specified by your MCP client.
That's it. Your MCP client can now interact with ElevenLabs through these tools:
## Example usage
⚠️ Warning: ElevenLabs credits are needed to use these tools.
Try asking Claude:
- "Create an AI agent that speaks like a film noir detective and can answer questions about classic movies"
- "Generate three voice variations for a wise, ancient dragon character, then I will choose my favorite voice to add to my voice library"
- "Convert this recording of my voice to sound like a medieval knight"
- "Create a soundscape of a thunderstorm in a dense jungle with animals reacting to the weather"
- "Turn this speech into text, identify different speakers, then convert it back using unique voices for each person"
## Optional features
### File Output Configuration
You can configure how the MCP server handles file outputs using these environment variables in your `claude_desktop_config.json`:
- **`ELEVENLABS_MCP_BASE_PATH`**: Specify the base path for file operations with relative paths (default: `~/Desktop`)
- **`ELEVENLABS_MCP_OUTPUT_MODE`**: Control how generated files are returned (default: `files`)
#### Output Modes
The `ELEVENLABS_MCP_OUTPUT_MODE` environment variable supports three modes:
1. **`files`** (default): Save files to disk and return file paths
```json
"env": {
"ELEVENLABS_API_KEY": "your-api-key",
"ELEVENLABS_MCP_OUTPUT_MODE": "files"
}
```
2. **`resources`**: Return files as MCP resources; binary data is base64-encoded, text is returned as UTF-8 text
```json
"env": {
"ELEVENLABS_API_KEY": "your-api-key",
"ELEVENLABS_MCP_OUTPUT_MODE": "resources"
}
```
3. **`both`**: Save files to disk AND return as MCP resources
```json
"env": {
"ELEVENLABS_API_KEY": "your-api-key",
"ELEVENLABS_MCP_OUTPUT_MODE": "both"
}
```
**Resource Mode Benefits:**
- Files are returned directly in the MCP response as base64-encoded data
- No disk I/O required - useful for containerized or serverless environments
- MCP clients can access file content immediately without file system access
- In `both` mode, resources can be fetched later using the `elevenlabs://filename` URI pattern
**Use Cases:**
- `files`: Traditional file-based workflows, local development
- `resources`: Cloud environments, MCP clients without file system access
- `both`: Maximum flexibility, caching, and resource sharing scenarios
### Data residency keys
You can specify the data residency region with the `ELEVENLABS_API_RESIDENCY` environment variable. Defaults to `"us"`.
**Note:** Data residency is an enterprise only feature. See [the docs](https://elevenlabs.io/docs/product-guides/administration/data-residency#overview) for more details.
## Contributing
If you want to contribute or run from source:
1. Clone the repository:
```bash
git clone https://github.com/elevenlabs/elevenlabs-mcp
cd elevenlabs-mcp
```
2. Create a virtual environment and install dependencies [using uv](https://github.com/astral-sh/uv):
```bash
uv venv
source .venv/bin/activate
uv pip install -e ".[dev]"
```
3. Copy `.env.example` to `.env` and add your ElevenLabs API key:
```bash
cp .env.example .env
# Edit .env and add your API key
```
4. Run the tests to make sure everything is working:
```bash
./scripts/test.sh
# Or with options
./scripts/test.sh --verbose --fail-fast
```
5. Install the server in Claude Desktop: `mcp install elevenlabs_mcp/server.py`
6. Debug and test locally with MCP Inspector: `mcp dev elevenlabs_mcp/server.py`
## Troubleshooting
Logs when running with Claude Desktop can be found at:
- **Windows**: `%APPDATA%\Claude\logs\mcp-server-elevenlabs.log`
- **macOS**: `~/Library/Logs/Claude/mcp-server-elevenlabs.log`
### Timeouts when using certain tools
Certain ElevenLabs API operations, like voice design and audio isolation, can take a long time to resolve. When using the MCP inspector in dev mode, you might get timeout errors despite the tool completing its intended task.
This shouldn't occur when using a client like Claude.
### MCP ElevenLabs: spawn uvx ENOENT
If you encounter the error "MCP ElevenLabs: spawn uvx ENOENT", confirm its absolute path by running this command in your terminal:
```bash
which uvx
```
Once you obtain the absolute path (e.g., `/usr/local/bin/uvx`), update your configuration to use that path (e.g., `"command": "/usr/local/bin/uvx"`). This ensures that the correct executable is referenced.