ElevenLabs MCP Server
Project description
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
- Get your API key from ElevenLabs. There is a free tier with 10k credits per month.
- Install
uv(Python package manager), install withcurl -LsSf https://astral.sh/uv/install.sh | shor see theuvrepo for additional install methods. - 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": "<insert-your-api-key-here>"
}
}
}
}
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:
pip install elevenlabs-mcppython -m elevenlabs_mcp --api-key={{PUT_YOUR_API_KEY_HERE}} --printto 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:
-
files(default): Save files to disk and return file paths"env": { "ELEVENLABS_API_KEY": "your-api-key", "ELEVENLABS_MCP_OUTPUT_MODE": "files" }
-
resources: Return files as MCP resources; binary data is base64-encoded, text is returned as UTF-8 text"env": { "ELEVENLABS_API_KEY": "your-api-key", "ELEVENLABS_MCP_OUTPUT_MODE": "resources" }
-
both: Save files to disk AND return as MCP resources"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
bothmode, resources can be fetched later using theelevenlabs://filenameURI pattern
Use Cases:
files: Traditional file-based workflows, local developmentresources: Cloud environments, MCP clients without file system accessboth: 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 for more details.
Contributing
If you want to contribute or run from source:
- Clone the repository:
git clone https://github.com/elevenlabs/elevenlabs-mcp
cd elevenlabs-mcp
- Create a virtual environment and install dependencies using uv:
uv venv
source .venv/bin/activate
uv pip install -e ".[dev]"
- Copy
.env.exampleto.envand add your ElevenLabs API key:
cp .env.example .env
# Edit .env and add your API key
- Run the tests to make sure everything is working:
./scripts/test.sh
# Or with options
./scripts/test.sh --verbose --fail-fast
-
Install the server in Claude Desktop:
mcp install elevenlabs_mcp/server.py -
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:
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file elevenlabs_mcp-0.9.1.tar.gz.
File metadata
- Download URL: elevenlabs_mcp-0.9.1.tar.gz
- Upload date:
- Size: 28.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fa959aea74a4730eadfa787ca7e87472da818eb2ccfe4a17228b6dbe1117ce0
|
|
| MD5 |
015a3b2f33c958a4c90aac2c47dd735c
|
|
| BLAKE2b-256 |
17b0f704b9a2c024bc5bf465e36cbe870f4558b44fb3107e130acdf13211c881
|
Provenance
The following attestation bundles were made for elevenlabs_mcp-0.9.1.tar.gz:
Publisher:
publish.yml on elevenlabs/elevenlabs-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
elevenlabs_mcp-0.9.1.tar.gz -
Subject digest:
5fa959aea74a4730eadfa787ca7e87472da818eb2ccfe4a17228b6dbe1117ce0 - Sigstore transparency entry: 798122909
- Sigstore integration time:
-
Permalink:
elevenlabs/elevenlabs-mcp@f95bf2f409402a0b339cb4e3fba2d46f425b57fa -
Branch / Tag:
refs/tags/v0.9.1 - Owner: https://github.com/elevenlabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f95bf2f409402a0b339cb4e3fba2d46f425b57fa -
Trigger Event:
push
-
Statement type:
File details
Details for the file elevenlabs_mcp-0.9.1-py3-none-any.whl.
File metadata
- Download URL: elevenlabs_mcp-0.9.1-py3-none-any.whl
- Upload date:
- Size: 25.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2659bc957a2d289fd5a02a9d984df954e73199c6fa5d6ec7be6f32bcc206d8de
|
|
| MD5 |
e081b8447f3a46f996ee3813ca3ae79a
|
|
| BLAKE2b-256 |
a2a744731a8d32474c5c291bebf5e63fa5237008160d80059e7172ae02918a9d
|
Provenance
The following attestation bundles were made for elevenlabs_mcp-0.9.1-py3-none-any.whl:
Publisher:
publish.yml on elevenlabs/elevenlabs-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
elevenlabs_mcp-0.9.1-py3-none-any.whl -
Subject digest:
2659bc957a2d289fd5a02a9d984df954e73199c6fa5d6ec7be6f32bcc206d8de - Sigstore transparency entry: 798122915
- Sigstore integration time:
-
Permalink:
elevenlabs/elevenlabs-mcp@f95bf2f409402a0b339cb4e3fba2d46f425b57fa -
Branch / Tag:
refs/tags/v0.9.1 - Owner: https://github.com/elevenlabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f95bf2f409402a0b339cb4e3fba2d46f425b57fa -
Trigger Event:
push
-
Statement type: