Gemini TTS MCP Server
Provides text-to-speech generation using Google Gemini 2.5 Flash/Pro TTS models, with selectable prebuilt voices and optional saving of generated audio to a local .wav file.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Gemini TTS MCP Server Say 'Hello world' cheerfully using voice Zephyr and save it to hello.wav"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Gemini TTS MCP Server
An MCP (Model Context Protocol) server that brings high-quality Text-to-Speech (TTS) capabilities to your AI assistants using Google's Gemini 2.5 TTS models.
Features
High-Fidelity Audio: Generate natural-sounding speech using Gemini 2.5 Flash and Pro TTS preview models.
Natural Language Control: Guide the voice style using natural language (e.g., "Say cheerfully", "Whisper softly").
Multiple Voices: Choose from 30+ prebuilt voices (Aoede, Zephyr, Puck, Charon, and more).
Direct Local Saving: Optionally save the generated audio directly to a
.wavfile on your machine.Base64 Output: Returns raw audio data for flexible handling by the AI client.
Related MCP server: yuppie-mcp-tts
Setup
Prerequisites
Gemini API Key: Obtain an API key from the Google AI Studio.
Node.js: Ensure you have Node.js 18+ installed.
Installation as Gemini CLI Extension
You can install this directly into Gemini CLI:
gemini extensions install https://github.com/notsointresting/gemini-tts-mcpThe CLI will prompt you for your GEMINI_API_KEY during installation and store it securely in your system keychain.
Manual Installation (Development)
Clone this repository:
git clone https://github.com/notsointresting/gemini-tts-mcp.git cd gemini-tts-mcpInstall dependencies:
npm installBuild the project:
npm run buildInstall locally:
gemini extensions install .
Configuration (Standalone MCP)
The server requires the GEMINI_API_KEY environment variable to be set.
For Claude Desktop
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"gemini-tts": {
"command": "node",
"args": ["/path/to/gemini-tts-mcp/build/index.js"],
"env": {
"GEMINI_API_KEY": "your_api_key_here"
}
}
}
}Rate Limits
Gemini TTS models are currently in Preview, and rate limits are more restrictive than standard text models.
Gemini API (Google AI Studio)
Limits vary by usage tier. Below are typical preview limits:
Tier | Requests Per Minute (RPM) | Tokens Per Minute (TPM) | Requests Per Day (RPD) |
Free | 2 RPM | 32,000 TPM | 50 RPD |
Tier 1 | 5 RPM | 100,000 TPM | 2,000 RPD |
Tier 2 | 10 RPM | 200,000 TPM | 5,000 RPD |
Tier 3 | 15 RPM | 500,000 TPM | 10,000 RPD |
Check your active limits in Google AI Studio Settings.
Vertex AI (Google Cloud)
Vertex AI generally provides higher base quotas:
Requests: 60 RPM (per project).
Input Size: Max 4,000 bytes per text field.
Output Duration: Max 655 seconds (~10.9 minutes) of audio per request.
Tools
1. generate_speech
Generates speech from the provided text.
Parameters:
text(required): The text to convert to speech.voice(optional): The prebuilt voice name (default:Aoede).model(optional): The Gemini model to use (gemini-2.5-flash-preview-ttsorgemini-2.5-pro-preview-tts).outputPath(optional): Local path to save the.wavfile (e.g.,./output.wav).
Example Usage: "Generate speech for 'Hello world' using the voice Zephyr and save it to hello.wav"
2. list_voices
Lists all available prebuilt voices supported by the server.
Supported Voices
Aoede, Zephyr, Puck, Charon, Kore, Fenrir, Leda, Orus, Callirhoe, Autonoe, Enceladus, Iapetus, Umbriel, Algieba, Despina, Erinome, Algenib, Rasalgethi, Laomedeia, Achernar, Alnilam, Schedar, Gacrux, Pulcherrima, Achird, Zubenelgenubi, Vindemiatrix, Sadachbia, Sadaltager, Sulafar.
License
MIT
Available Tools
2 toolsgenerate_speechB
Generate high-quality speech from text using Gemini 2.5 Flash/Pro TTS models.
Inputs: text (required), model, voice, outputPath.
list_voicesB
List all available prebuilt voices for Gemini TTS.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: one synthesizes speech from text, the other enumerates available voices. An agent can easily choose between them based on whether it needs audio output or voice metadata.
Both names follow a consistent snake_case verb_noun pattern: generate_speech and list_voices. The convention is predictable and readable.
The server is narrowly scoped to TTS, and both tools earn their place. Two tools is slightly thin under the general rubric, but it fits this focused purpose without redundancy.
The core workflow is covered: list voices to choose a voice, then generate speech. Minor gaps exist, such as no model listing or voice preview/sample operation, but agents can work around these.
Maintenance
Related MCP Connectors
Turn text into speech, browse voices, and get MP3 audio with optional SRT or WebVTT captions.
1Turn text into natural speech with AI voices in many languages
Text to speech and transcription for any AI model: MP3 voiceovers, audio and YouTube to text.
Text to speech in 149 languages: MP3 links from any assistant. Free without an account.
Related MCP Servers
AlicenseNot gradedqualityDmaintenanceEnables text-to-speech generation, voice cloning, dialogue creation, and other TTS operations through natural language in MCP-compatible AI assistants.10 npmMIT- AlicenseAqualityDmaintenanceProvides text-to-speech synthesis using Microsoft Edge's free TTS engine, supporting multiple voices, languages, and audio output options (base64 or file).3MIT
- AlicenseAqualityBmaintenanceEnables AI agents to generate speech using Gemini TTS models, with tools for text-to-speech, task polling, and pricing checks.4225 npmApache 2.0
- AlicenseAqualityCmaintenanceLets AI assistants query available voices from an OpenAI-compatible TTS service and synthesize text into audio with a chosen voice, tone, and speed, returning a public audio URL instead of Base64 data.2MIT