Установка
uv venvОписание
 <div class="title-block" style="text-align: center;" align="center"> [](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) </div> <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 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": "<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: 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 shar
Отзывы (0)
Пока нет отзывов. Будьте первым!
Статистика
Информация
Технологии
Похожие серверы
GitHub MCP
Полная интеграция с GitHub API: репозитории, issues, pull requests, actions и многое другое.
Filesystem MCP
Безопасный доступ к файловой системе для чтения, записи и управления файлами с настраиваемыми разрешениями.
Context7 MCP
Доступ к актуальной документации библиотек и фреймворков.
Serena MCP
Мощный MCP сервер для семантической навигации по коду и рефакторинга.