Skip to main content
Glama

RetellAI MCP Server

by abhaybabbar
voice.ts859 B
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import Retell from "retell-sdk"; import { GetVoiceInputSchema } from "../schemas/index.js"; import { transformVoiceOutput } from "../transformers/index.js"; import { createToolHandler } from "./utils.js"; export const registerVoiceTools = (server: McpServer, retellClient: Retell) => { server.tool( "list_voices", "Lists all available Retell voices", {}, createToolHandler(async () => { const voices = await retellClient.voice.list(); return voices.map(transformVoiceOutput); }) ); server.tool( "get_voice", "Gets details of a specific voice", GetVoiceInputSchema.shape, createToolHandler(async (data) => { const voice = await retellClient.voice.retrieve(data.voiceId); return transformVoiceOutput(voice); }) ); };

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/abhaybabbar/retellai-mcp-server'

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