ElevenLabsMcp-Windows
Windows-optimized MCP server for ElevenLabs text-to-speech and audio processing, with fixed file paths and Cursor IDE integration.
README
MAKE YOUR IDE SPEAK
MAKE CURSOR SPEAK
<div class="title-block" style="text-align: center;" align="center">
</div>
🪟 Windows Fork - Enhanced for Cursor IDE
This is a Windows-optimized fork of the official ElevenLabs MCP server, specifically designed to work seamlessly on Windows and provide an enhanced experience with Cursor IDE.
🎤 What Makes This Fork Special?
🔧 Windows File Path Fixes: The primary difference between this fork and any other fork is that this fork fixes critical file and directory path issues on Windows. The original MCP server simply did not work on Windows when dealing with files - this fork resolves those issues completely:
- ✅ Proper Windows path handling for file operations
- ✅ Correct file saving and loading on Windows systems
- ✅ Reliable directory management for ElevenLabs audio files
- ✅ Future-proof file organization for documentation and archiving
✨ Cursor Rules Integration: This fork includes a .cursorrules file that enables Cursor AI to automatically:
- Generate speech using ElevenLabs MCP when you ask it to speak
- Play audio files using VLC in the background (no visible windows)
- Handle all audio operations seamlessly through natural language commands
- Properly manage and save all generated files on Windows
Just ask Cursor to "speak" or "say something" and it will automatically:
- Generate audio using ElevenLabs text-to-speech
- Save the file correctly on Windows (unlike the original MCP)
- Play it using VLC in the background
- Handle all the technical details for you
<p align="center"> Official ElevenLabs <a href="https://github.com/modelcontextprotocol">Model Context Protocol (MCP)</a> server that enables interaction with powerful Text to Speech and audio processing APIs. This server allows MCP clients like <a href="https://www.anthropic.com/claude">Claude Desktop</a>, <a href="https://www.cursor.so">Cursor</a>, <a href="https://codeium.com/windsurf">Windsurf</a>, <a href="https://github.com/openai/openai-agents-python">OpenAI Agents</a> and others to generate speech, clone voices, transcribe audio, and more. </p>
<!-- mcp-name: io.github.elevenlabs/elevenlabs-mcp -->
🚀 Quickstart with Cursor (Windows)
Step 1: Clone and Setup
Clone this repository and set up a virtual environment:
git clone <your-repo-url>
cd ElevenLabsMcp
python -m venv venv
.\venv\Scripts\activate
pip install -e ".[dev]"
Step 2: Get Your API Key
Get your API key from ElevenLabs. There is a free tier with 10k credits per month.
Step 3: Configure Cursor MCP
- Open Cursor Settings (or edit
%USERPROFILE%\.cursor\mcp.jsondirectly) - Add the ElevenLabs MCP server configuration pointing to your local server:
{
"mcpServers": {
"elevenlabs": {
"command": "C:\\path\\to\\ElevenLabsMcp\\venv\\Scripts\\python.exe",
"args": [
"C:\\path\\to\\ElevenLabsMcp\\elevenlabs_mcp\\server.py"
],
"env": {
"ELEVENLABS_API_KEY": "<your-api-key-here>",
"ELEVENLABS_VOICE_ID": "<optional-voice-id>",
"ELEVENLABS_MODEL_ID": "eleven_flash_v2",
"ELEVENLABS_STABILITY": "0.5",
"ELEVENLABS_SIMILARITY_BOOST": "0.75",
"ELEVENLABS_STYLE": "0.1",
"ELEVENLABS_API_RESIDENCY": "global",
"ELEVENLABS_MCP_OUTPUT_MODE": "files",
"ELEVENLABS_MCP_BASE_PATH": "C:\\path\\to\\ElevenLabsMcp\\audio"
}
}
}
}
Important:
- Replace
C:\\path\\to\\ElevenLabsMcpwith the actual path to your cloned repository - The
ELEVENLABS_VOICE_IDis optional - if not provided, the default voice will be used - Adjust
ELEVENLABS_MCP_BASE_PATHto where you want audio files saved (defaults toaudiofolder in the project) - All environment variables are optional except
ELEVENLABS_API_KEY
Step 4: Copy the Cursor Rules
The .cursorrules file in this repository contains pre-configured rules that make Cursor automatically use ElevenLabs MCP for speech generation and VLC for playback. Simply copy the .cursorrules file to your project root, or ensure it's in your workspace.
Step 5: Restart Cursor
After configuring the MCP server, restart Cursor to load the new MCP configuration.
That's it! Now you can simply ask Cursor:
- "Speak this: Hello, world!"
- "Say something about artificial intelligence"
- "Read this text aloud: [your text]"
- "Say hi to me"
Cursor will automatically generate the audio using ElevenLabs MCP and play it using VLC in the background.
🎯 Quickstart with Claude Desktop (Windows)
- Get your API key from ElevenLabs.
- Install
uv(Python package manager). For Windows, see theuvrepo for installation methods. - Enable Developer Mode in Claude Desktop: Click "Help" in the hamburger menu at the top left and select "Enable Developer Mode".
- Go to Claude > Settings > Developer > Edit Config >
claude_desktop_config.jsonto include the following:
{
"mcpServers": {
"ElevenLabs": {
"command": "uvx",
"args": ["elevenlabs-mcp"],
"env": {
"ELEVENLABS_API_KEY": "<insert-your-api-key-here>"
}
}
}
}
📋 Alternative: Using Published Package (Other MCP Clients)
If you prefer to use the published package instead of running from source (for other clients like Windsurf):
- Install the package:
pip install elevenlabs-mcp - Run:
python -m elevenlabs_mcp --api-key={{PUT_YOUR_API_KEY_HERE}} --printto get the configuration - Paste it into the appropriate configuration directory specified by your MCP client
Note: For Cursor on Windows, we recommend using the local server setup (see Quickstart above) for better control and customization.
💬 Example Usage
⚠️ Warning: ElevenLabs credits are needed to use these tools.
Try asking your AI assistant:
- "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"
- "Speak this text: [your text here]" (Cursor will automatically use ElevenLabs + VLC)
🔧 Optional Features
File Output Configuration
✅ Windows-Compatible File Handling: Unlike the original MCP, this fork properly handles all file operations on Windows. All file paths, directory creation, and file saving work correctly on Windows systems.
You can configure how the MCP server handles file outputs using these environment variables in your configuration:
ELEVENLABS_MCP_BASE_PATH: Specify the base path for file operations with relative paths (default:~/Desktop). Works correctly on Windows with proper path handling.ELEVENLABS_MCP_OUTPUT_MODE: Control how generated files are returned (default:files). All modes work reliably on Windows.
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:
python -m venv venv
.\venv\Scripts\activate
pip install -e ".[dev]"
- Copy
.env.exampleto.envand add your ElevenLabs API key:
copy .env.example .env
# Edit .env and add your API key
- Run the tests to make sure everything is working:
pytest tests/
-
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
🎧 VLC Setup (For Audio Playback)
The .cursorrules file automatically uses VLC for background audio playback. To ensure it works:
- Install VLC Media Player from videolan.org
- The rules will automatically detect VLC in these locations:
C:\Program Files\VideoLAN\VLC\vlc.exeC:\Program Files (x86)\VideoLAN\VLC\vlc.exe- Or if VLC is in your system PATH
If VLC is installed in a different location, the AI will ask you for the path when needed.
🔍 Why This Fork Exists
Windows File Path Issues - SOLVED
The original ElevenLabs MCP server had critical file path handling issues on Windows that made it unusable:
- ❌ Original MCP: File paths using Unix-style separators (
/) that failed on Windows - ❌ Original MCP: Directory creation and file saving errors on Windows
- ❌ Original MCP: Inability to properly manage audio files for documentation
- ❌ Original MCP: Path resolution issues causing file operations to fail silently
✅ This Fork Fixes All Of That:
- ✅ Proper Windows path handling with correct separators (
\) - ✅ Reliable file saving and directory management
- ✅ Correct path resolution for all Windows file operations
- ✅ Proper handling of audio files for future documentation and archiving
- ✅ Full compatibility with Windows file system operations
This is why this fork is essential for Windows users - the original simply doesn't work correctly with files on Windows systems.
🐛 Troubleshooting
Windows-Specific Issues
Logs when running with Claude Desktop:
- Windows:
%APPDATA%\Claude\logs\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 or Cursor.
MCP ElevenLabs: spawn uvx ENOENT
If you encounter the error "MCP ElevenLabs: spawn uvx ENOENT", confirm its absolute path by running this command in PowerShell:
Get-Command uvx
Once you obtain the absolute path (e.g., C:\Users\YourName\AppData\Local\Programs\uv\uvx.exe), update your configuration to use that path (e.g., "command": "C:\\Users\\YourName\\AppData\\Local\\Programs\\uv\\uvx.exe"). This ensures that the correct executable is referenced.
VLC Not Found
If the AI cannot find VLC:
- Make sure VLC is installed
- If installed in a custom location, provide the path to
vlc.exewhen prompted - Alternatively, add VLC to your system PATH for automatic detection
📄 License
See LICENSE file for details.
🙏 Acknowledgments
This is a Windows-optimized fork of the official ElevenLabs MCP Server. Special thanks to the ElevenLabs team for creating this amazing MCP server.
Make your IDE speak. Make Cursor speak. Experience the future of AI-powered development.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。