ai
ElevenLabs MCP Integration for OpenAI Agents SDK
Connect ElevenLabs to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect ElevenLabs to OpenAI Agents SDK
Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway.
Start the KosmoKrator MCP gateway locally and point the OpenAI Agents SDK MCP tool at that process or wrapper. The gateway is local, scoped to this integration, and starts with
--write=deny so OpenAI Agents can inspect read-capable tools without receiving write access by default.
ElevenLabs MCP Config for OpenAI Agents SDK
Use headless JSON commands for CI-style execution and MCP for agent tool discovery.
{
"mcpServers": {
"kosmokrator-eleven-labs": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=eleven-labs",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=eleven-labs --write=deny Why Use KosmoKrator Here
Expose only ElevenLabs instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
ElevenLabs Tools Visible to OpenAI Agents
OpenAI Agents sees stable MCP tool names generated from the ElevenLabs integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__eleven_labs__elevenlabs_list_voices | eleven-labs.elevenlabs_list_voices | Read | List available ElevenLabs voices. Returns voice names, IDs, labels, and preview URLs. Use this to discover voices for text-to-speech generation. |
integration__eleven_labs__elevenlabs_get_voice | eleven-labs.elevenlabs_get_voice | Read | Get detailed information about a specific ElevenLabs voice by its ID, including name, labels, description, and preview URL. |
integration__eleven_labs__elevenlabs_generate_speech | eleven-labs.elevenlabs_generate_speech | Write | Generate speech audio from text using an ElevenLabs voice. Returns base64-encoded audio. Specify a voice ID and model, with optional stability and similarity boost settings. |
integration__eleven_labs__elevenlabs_generate_sound | eleven-labs.elevenlabs_generate_sound | Write | Generate a sound effect from a text description using ElevenLabs. Returns base64-encoded audio. Describe the sound you want (e.g., "thunder rumbling in the distance"). |
integration__eleven_labs__elevenlabs_list_models | eleven-labs.elevenlabs_list_models | Read | List available ElevenLabs models. Returns model IDs, names, descriptions, and capabilities. Use this to find the right model for speech or sound generation. |
integration__eleven_labs__elevenlabs_get_current_user | eleven-labs.elevenlabs_get_current_user | Read | Get the current ElevenLabs user profile, subscription tier, and character usage information. |