Skip to main content
Glama
elevenlabs

ElevenLabs MCP Server

Official
by elevenlabs

list_models

Retrieve available text-to-speech models from ElevenLabs to select the appropriate voice for speech generation tasks.

Instructions

List all available models

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler function for the 'list_models' tool. Fetches available models from ElevenLabs client and maps them to McpModel instances with embedded McpLanguage objects.
    @mcp.tool(description="List all available models") def list_models() -> list[McpModel]: response = client.models.list() return [ McpModel( id=model.model_id, name=model.name, languages=[ McpLanguage(language_id=lang.language_id, name=lang.name) for lang in model.languages ], ) for model in response ]
  • Pydantic schema for McpModel, used as the return type structure for list_models tool output.
    class McpModel(BaseModel): id: str name: str languages: list[McpLanguage]
  • Pydantic schema for McpLanguage, nested within McpModel for model languages.
    class McpLanguage(BaseModel): language_id: str name: str
  • The @mcp.tool decorator registers the list_models function as an MCP tool.
    @mcp.tool(description="List all available models")

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