Skip to main content
Glama
elevenlabs

ElevenLabs MCP Server

Official
by elevenlabs

search_voices

Find voices in your ElevenLabs library by searching across names, descriptions, labels, and categories to locate specific voice profiles.

Instructions

Search for existing voices, a voice that has already been added to the user's ElevenLabs voice library.
Searches in name, description, labels and category.

Args:
    search: Search term to filter voices by. Searches in name, description, labels and category.
    sort: Which field to sort by. `created_at_unix` might not be available for older voices.
    sort_direction: Sort order, either ascending or descending.

Returns:
    List of voices that match the search criteria.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
searchNo
sortNoname
sort_directionNodesc

Implementation Reference

  • The handler function for the 'search_voices' tool, decorated with @mcp.tool for registration. It performs the search using the ElevenLabs client API and maps results to McpVoice models.
    @mcp.tool(
        description="""
        Search for existing voices, a voice that has already been added to the user's ElevenLabs voice library.
        Searches in name, description, labels and category.
    
        Args:
            search: Search term to filter voices by. Searches in name, description, labels and category.
            sort: Which field to sort by. `created_at_unix` might not be available for older voices.
            sort_direction: Sort order, either ascending or descending.
    
        Returns:
            List of voices that match the search criteria.
        """
    )
    def search_voices(
        search: str | None = None,
        sort: Literal["created_at_unix", "name"] = "name",
        sort_direction: Literal["asc", "desc"] = "desc",
    ) -> list[McpVoice]:
        response = client.voices.search(
            search=search, sort=sort, sort_direction=sort_direction
        )
        return [
            McpVoice(id=voice.voice_id, name=voice.name, category=voice.category)
            for voice in response.voices
        ]
  • Pydantic BaseModel defining the structure of voice objects returned by the search_voices tool.
    class McpVoice(BaseModel):
        id: str
        name: str
        category: str
        fine_tuning_status: Optional[Dict] = None

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