The ElevenLabs MCP Server integrates with the ElevenLabs text-to-speech API, allowing you to generate high-quality audio from text. This server follows the Model Context Protocol (MCP) specification, making it compatible with various MCP clients like Claude Desktop, and includes a sample web-based client for managing voice generation tasks.
You can install ElevenLabs MCP Server automatically using Smithery with this command:
npx -y @smithery/cli install elevenlabs-mcp-server --client claude
When using uvx
, no specific installation is needed. Simply add the following configuration to your MCP settings file (e.g., cline_mcp_settings.json
for Claude Desktop):
{
"mcpServers": {
"elevenlabs": {
"command": "uvx",
"args": ["elevenlabs-mcp-server"],
"env": {
"ELEVENLABS_API_KEY": "your-api-key",
"ELEVENLABS_VOICE_ID": "your-voice-id",
"ELEVENLABS_MODEL_ID": "eleven_flash_v2",
"ELEVENLABS_STABILITY": "0.5",
"ELEVENLABS_SIMILARITY_BOOST": "0.75",
"ELEVENLABS_STYLE": "0.1",
"ELEVENLABS_OUTPUT_DIR": "output"
}
}
}
}
To configure the server, you'll need to set the following environment variables:
ELEVENLABS_API_KEY
: Your ElevenLabs API keyELEVENLABS_VOICE_ID
: Default voice ID to useELEVENLABS_MODEL_ID
: Model to use (default: eleven_flash_v2)ELEVENLABS_STABILITY
: Voice stability setting (0.0-1.0)ELEVENLABS_SIMILARITY_BOOST
: Similarity boost setting (0.0-1.0)ELEVENLABS_STYLE
: Style setting (0.0-1.0)ELEVENLABS_OUTPUT_DIR
: Directory to save output filesThe server provides several tools that can be used through an MCP client:
Resources can be accessed through MCP clients:
voiceover://history/{job_id}
: Get the audio file by its IDvoiceover://voices
: List all available voicesThe server includes a sample SvelteKit-based web interface for easier interaction:
cd clients/web-ui
pnpm install
.env.example
to .env
and configure as neededpnpm dev
The web interface provides a user-friendly way to:
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "elevenlabs" '{"command":"uvx","args":["elevenlabs-mcp-server"],"env":{"ELEVENLABS_API_KEY":"your-api-key","ELEVENLABS_VOICE_ID":"your-voice-id","ELEVENLABS_MODEL_ID":"eleven_flash_v2","ELEVENLABS_STABILITY":"0.5","ELEVENLABS_SIMILARITY_BOOST":"0.75","ELEVENLABS_STYLE":"0.1","ELEVENLABS_OUTPUT_DIR":"output"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"elevenlabs": {
"command": "uvx",
"args": [
"elevenlabs-mcp-server"
],
"env": {
"ELEVENLABS_API_KEY": "your-api-key",
"ELEVENLABS_VOICE_ID": "your-voice-id",
"ELEVENLABS_MODEL_ID": "eleven_flash_v2",
"ELEVENLABS_STABILITY": "0.5",
"ELEVENLABS_SIMILARITY_BOOST": "0.75",
"ELEVENLABS_STYLE": "0.1",
"ELEVENLABS_OUTPUT_DIR": "output"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"elevenlabs": {
"command": "uvx",
"args": [
"elevenlabs-mcp-server"
],
"env": {
"ELEVENLABS_API_KEY": "your-api-key",
"ELEVENLABS_VOICE_ID": "your-voice-id",
"ELEVENLABS_MODEL_ID": "eleven_flash_v2",
"ELEVENLABS_STABILITY": "0.5",
"ELEVENLABS_SIMILARITY_BOOST": "0.75",
"ELEVENLABS_STYLE": "0.1",
"ELEVENLABS_OUTPUT_DIR": "output"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect