Skip to main content
Glama
elevenlabs

ElevenLabs MCP Server

Official
by elevenlabs

create_voice_from_preview

Save a generated voice preview to your ElevenLabs voice library by providing a voice ID, name, and description for future use.

Instructions

Add a generated voice to the voice library. Uses the voice ID from the text_to_voice tool.

⚠️ COST WARNING: This tool makes an API call to ElevenLabs which may incur costs. Only use when explicitly requested by the user.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
generated_voice_idYes
voice_nameYes
voice_descriptionYes

Implementation Reference

  • The main handler function that executes the tool logic: calls the ElevenLabs client to create a voice from a preview and returns a success message.
    def create_voice_from_preview( generated_voice_id: str, voice_name: str, voice_description: str, ) -> TextContent: voice = client.text_to_voice.create_voice_from_preview( voice_name=voice_name, voice_description=voice_description, generated_voice_id=generated_voice_id, ) return TextContent( type="text", text=f"Success. Voice created: {voice.name} with ID:{voice.voice_id}", )
  • Registers the create_voice_from_preview tool with the MCP server using the @mcp.tool decorator.
    @mcp.tool( description="""Add a generated voice to the voice library. Uses the voice ID from the `text_to_voice` tool. ⚠️ COST WARNING: This tool makes an API call to ElevenLabs which may incur costs. Only use when explicitly requested by the user. """ )

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/elevenlabs/elevenlabs-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server