ElevenLabs MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add -e "ELEVENLABS_API_KEY=${ELEVENLABS_API_KEY}" elevenlabs-mcp-9588 -- docker build -t elevenlabs-mcp-server .
Required:ELEVENLABS_API_KEY+ 2 optional
README.md

Integration with ElevenLabs Conversational AI for agents, tools, and knowledge.

ElevenLabs MCP Server

A complete Model Context Protocol (MCP) server for ElevenLabs Conversational AI, providing seamless integration with agents, tools, and knowledge base management.

Features

  • Agent Management: Create, update, delete, and list ElevenLabs conversational AI agents
  • Tools Integration: Manage webhook and client-side tools for agent functionality
  • Knowledge Base: Handle document upload, URL scraping, and text-based knowledge sources
  • RAG Support: Compute and manage Retrieval-Augmented Generation indices
  • Real-time Updates: Subscribe to resource changes and notifications
  • Claude Desktop Integration: Easy setup for Claude Desktop users
  • Cloud Deployment: Docker container ready for remote deployment

Installation

Local Development

  1. Clone the repository:
git clone https://github.com/anthropics/elevenlabs-mcp-server.git
cd elevenlabs-mcp-server
  1. Install dependencies:
pip install -r requirements.txt
  1. Set up environment variables:
cp .env.example .env
# Edit .env with your ElevenLabs API key
  1. Install the package:
pip install -e .

Production Installation

pip install elevenlabs-mcp-server

Configuration

Environment Variables

Create a .env file with the following variables:

ELEVENLABS_API_KEY=your-elevenlabs-api-key-here
ELEVENLABS_BASE_URL=https://api.elevenlabs.io/v1
MCP_SERVER_NAME=elevenlabs-mcp-server
MCP_SERVER_VERSION=1.0.0
REQUEST_TIMEOUT=30
MAX_RETRIES=3
LOG_LEVEL=INFO

Claude Desktop Integration

Add the following to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "elevenlabs": {
      "command": "python",
      "args": ["-m", "elevenlabs_mcp.server"],
      "env": {
        "ELEVENLABS_API_KEY": "your-elevenlabs-api-key-here"
      }
    }
  }
}

Usage

Starting the Server

# Using the installed command
elevenlabs-mcp-server

# Or using Python module
python -m elevenlabs_mcp.server

Available Tools

Agent Management
  • create_agent: Create a new conversational AI agent
  • get_agent: Retrieve agent configuration by ID
  • list_agents: List all agents with pagination
  • update_agent: Update existing agent configuration
  • delete_agent: Delete an agent
Tool Management
  • create_tool: Create webhook or client-side tools
  • get_tool: Retrieve tool configuration by ID
  • list_tools: List all tools with optional filtering
  • update_tool: Update existing tool configuration
  • delete_tool: Delete a tool
Knowledge Base Management
  • create_knowledge_base_from_text: Create knowledge base from text content
  • create_knowledge_base_from_url: Create knowledge base from URL scraping
  • get_knowledge_base_document: Retrieve document details
  • list_knowledge_base_documents: List all knowledge base documents
  • update_knowledge_base_document: Update document metadata
  • delete_knowledge_base_document: Delete a document
  • compute_rag_index: Compute RAG index for enhanced retrieval
  • get_document_content: Get full document content and chunks

Example Usage

Creating an Agent
{
  "conversation_config": {
    "agent": {
      "language": "en",
      "prompt": {
        "prompt": "You are a helpful customer service agent.",
        "built_in_tools": ["language_detection", "end_call"]
      },
      "first_message": "Hello! How can I help you today?"
    },
    "asr": {
      "quality": "high",
      "provider": "elevenlabs"
    },
    "tts": {
      "model_id": "eleven_turbo_v2",
      "voice_id": "21m00Tcm4TlvDq8ikWAM"
    }
  },
  "name": "Customer Service Agent"
}
Creating a Webhook Tool
{
  "tool_type": "webhook",
  "name": "weather_lookup",
  "description": "Get current weather information",
  "url": "https://api.weather.com/v1/current",
  "method": "GET",
  "parameters": [
    {
      "name": "location",
      "type": "string",
      "description": "City name for weather lookup",
      "required": true
    }
  ]
}
Creating Knowledge Base from Text
{
  "text": "This is important company information about our products...",
  "name": "Company Product Guide",
  "description": "Comprehensive guide to our product offerings"
}

Resources

The server exposes the following MCP resources:

  • elevenlabs://agents: List all agents
  • elevenlabs://tools: List all tools
  • elevenlabs://knowledge-base: List all knowledge base documents

Cloud Deployment

Docker

  1. Build the Docker image:
docker build -t elevenlabs-mcp-server .
  1. Run the container:
docker run -e ELEVENLABS_API_KEY=your-api-key elevenlabs-mcp-server

Docker Compose

version: '3.8'
services:
  elevenlabs-mcp:
    build: .
    environment:
      - ELEVENLABS_API_KEY=your-api-

Tools (5)

create_agentCreate a new conversational AI agent
list_agentsList all agents with pagination
create_toolCreate webhook or client-side tools
create_knowledge_base_from_textCreate knowledge base from text content
compute_rag_indexCompute RAG index for enhanced retrieval

Environment Variables

ELEVENLABS_API_KEYrequiredYour ElevenLabs API key
ELEVENLABS_BASE_URLBase URL for ElevenLabs API
LOG_LEVELLogging level for the server

Configuration

claude_desktop_config.json
{"mcpServers": {"elevenlabs": {"command": "python", "args": ["-m", "elevenlabs_mcp.server"], "env": {"ELEVENLABS_API_KEY": "your-elevenlabs-api-key-here"}}}}

Try it

Create a new customer service agent with a friendly persona and high-quality voice settings.
List all my existing ElevenLabs agents and show me their current configurations.
Create a new knowledge base document from this text: [paste company policy text].
Set up a new webhook tool named 'weather_lookup' that hits the weather API.
Compute the RAG index for my 'Product Guide' knowledge base to improve retrieval accuracy.

Frequently Asked Questions

What are the key features of ElevenLabs MCP Server?

Full lifecycle management for conversational AI agents. Webhook and client-side tool integration for agent functionality. Knowledge base management via text and URL scraping. Retrieval-Augmented Generation (RAG) index computation. Real-time resource monitoring and notifications.

What can I use ElevenLabs MCP Server for?

Automating the deployment of voice-enabled customer support agents. Syncing internal company documentation into voice-accessible knowledge bases. Building custom webhook tools to connect voice agents to external APIs. Managing agent configurations programmatically via Claude Desktop.

How do I install ElevenLabs MCP Server?

Install ElevenLabs MCP Server by running: pip install elevenlabs-mcp-server

What MCP clients work with ElevenLabs MCP Server?

ElevenLabs MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep ElevenLabs MCP Server docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare