RunAPI Gemini TTS MCP Server
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., "@RunAPI Gemini TTS MCP ServerRun a TTS task for 'Welcome to the future'"
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.
Why This Package?
@runapi.ai/gemini-tts-mcp is a focused Model Context Protocol server for the Gemini TTS model line on RunAPI.
It gives MCP-compatible assistants direct access to 1 endpoint and 2 model variants without loading the full RunAPI catalog.
Use this per-model server when an agent should stay scoped to Gemini TTS. Use @runapi.ai/mcp when one assistant should discover every RunAPI model line.
Related MCP server: mcp-ai-voice
Install
Add it to Claude Code:
claude mcp add gemini-tts -s user -- npx -y @runapi.ai/gemini-tts-mcpUse project scope when the server should be shared with a repository:
claude mcp add gemini-tts -s project -- npx -y @runapi.ai/gemini-tts-mcpCodex, Cursor, Windsurf, VS Code, Roo Code, and other MCP hosts can use the same stdio command:
{
"mcpServers": {
"gemini-tts": {
"command": "npx",
"args": ["-y", "@runapi.ai/gemini-tts-mcp"]
}
}
}check_pricing works before sign-in. For task creation and status polling, ask your assistant to call the login tool. It opens a browser login and saves credentials to ~/.config/runapi/config.json, the same file used by runapi login.
Headless and CI hosts can still set RUNAPI_API_KEY before starting the MCP host.
Ready-made examples are in examples/ for Claude, Cursor, Windsurf, VS Code, and Roo Code.
Tools
Tool | Auth | Purpose |
| Yes | Create a Gemini TTS text to speech task and optionally wait for a terminal status. Returns the task id, status, and output URLs. |
| Yes | Fetch the current status and latest payload for an existing task. |
| No | Look up current pricing for a Gemini TTS model and endpoint. |
Models
Gemini TTS covers 2 model variants across 1 endpoint. Each tool accepts the models listed for it:
Tool | Models |
|
|
Model availability can change between releases. Use check_pricing or the Gemini TTS model page for the current catalog view.
Agent Prompts
Ask your assistant in natural language; it can inspect pricing, create the task, and return the task id plus output URLs.
Create a task
Run a Gemini TTS text to speech task with RunAPI.The assistant can call check_pricing, then text_to_speech, and return the task id, status, and output URLs.
Submit without waiting
Create the task but don't wait for it to finish.The assistant calls the create tool with wait: false and returns the task id. Check on it later with get_task.
Check pricing before creating
Check current Gemini TTS pricing, then create the task if it matches my request.The assistant calls check_pricing and can link to the Gemini TTS model page for the canonical catalog entry.
Configuration
The server resolves auth in this order:
RUNAPI_API_KEYenvironment variable, useful for headless and CI hosts~/.config/runapi/config.json, created by the MCPlogintool orrunapi loginNo key, which still allows
check_pricing
The config file is normally managed by login. A pre-provisioned headless config can use:
{
"apiKey": "your_runapi_key"
}Do not commit real API keys.
Links
Resource | URL |
Gemini TTS model page | |
npm package | |
GitHub repository | |
RunAPI MCP overview | |
RunAPI docs |
License
Licensed under the Apache License, Version 2.0.
Available Tools
4 toolscheck_pricingC
Look up RunAPI pricing for the gemini-tts model line.
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model slug. Defaults to the line's primary model. | |
| action | No | Endpoint name. Defaults to the endpoint that offers the model. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full disclosure burden, and it says nothing about this being a read-only operation, whether pricing is live or cached, what currency or billing units apply, or whether authentication/rate limits matter. For a simple lookup the risk is low, but the disclosure gap is real.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single front-loaded sentence with no filler; the scope constraint comes first. It is efficient rather than padded, though it omits useful context rather than wasting words.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a 2-optional-parameter lookup with no output schema, the description should indicate what the return value contains (e.g., per-unit rates, currency). It states the subject but leaves the response shape and pricing units unaddressed.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, so both `model` and `action` are already documented in the schema. The description adds no format details (slug syntax, what other values are valid, what 'primary model' means) beyond the schema, so baseline 3 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb ('Look up') and resource ('RunAPI pricing'), scoped to the gemini-tts model line, which is enough to separate it from login, text_to_speech, and get_task. It does not, however, reconcile the fixed 'gemini-tts model line' scope with the schema's free-form `model` parameter.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description gives no explicit when-to-use, when-not, or alternative-tool guidance. Any inference (e.g., call this before text_to_speech to estimate cost) is left entirely to the agent.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_taskB
Fetch the current status and latest result payload for a gemini-tts task.
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | Asynchronous endpoint the task was created on. Defaults to the line's only asynchronous endpoint. | |
| task_id | Yes | Task id returned when the task was created. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description bears the full burden. It does convey that this is a non-blocking snapshot read ('current status', 'latest result payload'), implying partial results before completion, but omits failure/error states, task retention, and whether repeated calls are idempotent.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single front-loaded sentence with no filler or repetition. It is efficient, though its brevity comes partly from omitting usage and behavioral detail rather than from tight editing of included content.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple two-parameter read tool with full schema coverage and no output schema, the description says enough: what it returns (status plus latest result payload) and for which task. Only the pending/failed-state behavior is left unstated, a minor gap.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so both task_id and action are already documented, including the enum and its default behavior. The description adds no syntax, format, or cross-parameter guidance beyond the schema, so the baseline 3 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Specific verb ('Fetch') plus resource ('current status and latest result payload') scoped to a named service ('gemini-tts task'). An agent can tell this apart from text_to_speech (which creates tasks) without opening the schema, though the description never names that sibling explicitly.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No statement of when to call this versus alternatives, no polling cadence, no indication of what to do if the task is still running versus failed. The usage (poll after creating a task via text_to_speech) is only inferable from the tool name and sibling list, not stated.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
loginA
Authenticate RunAPI by opening a browser PKCE login flow and saving the API key to ~/.config/runapi/config.json.
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Re-run browser login when the current credential comes from the local config file. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the behavioral burden. It discloses the interactive browser flow and the file write side effect (config.json). However, it does not mention that it may overwrite existing credentials or that it could block waiting for user input, though these are implied.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, well-structured sentence that front-loads the action ('Authenticate RunAPI') and provides necessary details without extraneous information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple login tool with one optional parameter and no output schema, the description covers the core purpose and side effect. It lacks an explicit statement that this is a prerequisite for other tools, but that is implied.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100% (the only parameter 'force' has a description). The tool description adds no additional meaning about parameters beyond the schema, so the baseline of 3 applies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose with a specific verb ('Authenticate'), target resource ('RunAPI'), method ('browser PKCE login flow'), and side effect (saving to config.json). It is distinct from sibling tools, none of which relate to authentication.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage (to authenticate RunAPI) but does not explicitly say when to run it (e.g., before other RunAPI tools) or when to use the 'force' parameter. Since there are no alternative auth tools among siblings, 'vs alternatives' is not applicable.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
text_to_speechB
Create a Gemini TTS task on RunAPI (text to speech). Returns a task id, status, and output URLs.
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Poll until the task reaches a terminal status. | |
| model | No | RunAPI model slug for this model line. | |
| scene | No | Scene and recording environment. Declared type: string. | |
| speakers | Yes | Non-empty speaker configurations with unique Speaker N identifiers. Declared type: array. | |
| timeout_ms | No | ||
| temperature | No | Sampling temperature. Declared type: number. | |
| callback_url | No | Webhook URL for async notifications. Declared type: string. | |
| dialogue_turns | Yes | Non-empty ordered dialogue turns whose speaker ids reference configured speakers. Declared type: array. | |
| sample_context | No | Overall delivery context and tone. Declared type: string. | |
| poll_interval_ms | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden, but it does disclose the async task model ('Returns a task id, status, and output URLs'), which helps the agent understand that results may not be immediate. It omits authentication requirements, cost implications (check_pricing is a sibling), rate limits, and what happens when wait=true blocks.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two short sentences, front-loaded with the action and followed by the return shape. No redundant restatement of the name or filler of any kind.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a 10-parameter tool with nested speaker and dialogue-turn objects, no annotations, and no output schema, the description is far too thin. It never explains the multi-speaker dialogue model, what wait defaulting to true implies for latency, or how callback_url and poll_interval_ms interact, leaving meaningful risk of misuse.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 80%, so the schema already documents most fields, including the required speakers and dialogue_turns arrays. The description adds nothing beyond that, so the baseline of 3 applies; the two required parameters and their relationship (turn speaker_ids referencing configured speakers) are only explained in the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb and resource: 'Create a Gemini TTS task on RunAPI (text to speech).' That clearly distinguishes it from siblings like get_task, login, and check_pricing. It falls short of 5 only because it doesn't name a sibling as the alternative path for retrieving results.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No when-to-use or when-not-to-use guidance is given. The description never mentions that get_task exists for retrieving results later, nor how wait=true versus callback_url changes the calling pattern. Usage must be inferred entirely from the tool name.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
3 tool updates
v0.2.1- Changed
check_pricing2 fields changed- removed
Input schema / additionalPropertiesRemoved value: -false - removed
Input schema / properties / model / enumRemoved value: -[ - "gemini-2.5-pro-tts", - "gemini-3.1-flash-tts" -]
- Changed
get_task1 field changed- removed
Input schema / additionalPropertiesRemoved value: -false
- Changed
text_to_speech31 fields changed- changed
Input schema / additionalPropertiesPrevious value: -falseNew value: +{} - changed
Input schema / properties / callback_url / descriptionPrevious value: -"Webhook URL for async notifications."New value: +"Webhook URL for async notifications. Declared type: string." - changed
Input schema / properties / dialogue_turns / descriptionPrevious value: -"Non-empty ordered dialogue turns whose speaker ids reference configured speakers."New value: +"Non-empty ordered dialogue turns whose speaker ids reference configured speakers. Declared type: array." - changed
Input schema / properties / dialogue_turns / items / additionalPropertiesPrevious value: -falseNew value: +true - removed
Input schema / properties / dialogue_turns / items / properties / speaker_id / descriptionRemoved value: -"Identifier matching a configured speakers[].speaker_id." - removed
Input schema / properties / dialogue_turns / items / properties / text / descriptionRemoved value: -"Spoken text, up to 10,000 characters." - removed
Input schema / properties / dialogue_turns / items / properties / text / maxLengthRemoved value: -10000 - removed
Input schema / properties / dialogue_turns / minItemsRemoved value: -1 - removed
Input schema / properties / model / enumRemoved value: -[ - "gemini-2.5-pro-tts", - "gemini-3.1-flash-tts" -] - added
Input schema / properties / poll_interval_ms / maximumAdded value: +9007199254740991 - changed
Input schema / properties / sample_context / descriptionPrevious value: -"Overall delivery context and tone."New value: +"Overall delivery context and tone. Declared type: string." - changed
Input schema / properties / scene / descriptionPrevious value: -"Scene and recording environment."New value: +"Scene and recording environment. Declared type: string." - changed
Input schema / properties / speakers / descriptionPrevious value: -"Non-empty speaker configurations with unique Speaker N identifiers."New value: +"Non-empty speaker configurations with unique Speaker N identifiers. Declared type: array." - changed
Input schema / properties / speakers / items / additionalPropertiesPrevious value: -falseNew value: +true - removed
Input schema / properties / speakers / items / properties / accent / descriptionRemoved value: -"Speaker accent." - removed
Input schema / properties / speakers / items / properties / accent / enumRemoved value: -[ - "Neutral", - "American (Gen)", - "American (Valley)", - "American (South)", - "British (RP)", - "British (Brixton)", - "Transatlantic", - "Australian" -] - removed
Input schema / properties / speakers / items / properties / audio_profile / descriptionRemoved value: -"Optional voice character guidance." - removed
Input schema / properties / speakers / items / properties / pace / descriptionRemoved value: -"Speaker pace." - removed
Input schema / properties / speakers / items / properties / pace / enumRemoved value: -[ - "Natural", - "Rapid Fire", - "The Drift", - "Staccato" -] - removed
Input schema / properties / speakers / items / properties / speaker_id / descriptionRemoved value: -"Unique identifier in Speaker N format." - removed
Input schema / properties / speakers / items / properties / speaker_id / patternRemoved value: -"^Speaker [1-9][0-9]*$" - removed
Input schema / properties / speakers / items / properties / style / descriptionRemoved value: -"Speaker delivery style." - removed
Input schema / properties / speakers / items / properties / style / enumRemoved value: -[ - "Vocal Smile", - "Newscaster", - "Whisper", - "Empathetic", - "Promo/Hype", - "Deadpan" -] - removed
Input schema / properties / speakers / items / properties / voice_name / descriptionRemoved value: -"Preset voice name." - removed
Input schema / properties / speakers / items / properties / voice_name / enumRemoved value: -[ - "Achernar", - "Achird", - "Algenib", - "Algieba", - "Alnilam", - "Aoede", - "Autonoe", - "Callirrhoe", - "Charon", - "Despina", - "Enceladus", - "Erinome", - "Fenrir", - "Gacrux", - "Iapetus", - "Kore", - "Laomedeia", - "Leda", - "Orus", - "Puck", - "Pulcherrima", - "Rasalgethi", - "Sadachbia", - "Sadaltager", - "Schedar", - "Sulafat", - "Umbriel", - "Vindemiatrix", - "Zephyr", - "Zubenelgenubi" -] - changed
Input schema / properties / speakers / items / requiredPrevious value: -[ - "pace", - "style", - "accent", - "speaker_id", - "voice_name" -]New value: +[ + "speaker_id", + "voice_name" +] - removed
Input schema / properties / speakers / minItemsRemoved value: -1 - changed
Input schema / properties / temperature / descriptionPrevious value: -"Sampling temperature."New value: +"Sampling temperature. Declared type: number." - removed
Input schema / properties / temperature / maximumRemoved value: -2 - removed
Input schema / properties / temperature / minimumRemoved value: -0 - added
Input schema / properties / timeout_ms / maximumAdded value: +9007199254740991
4 tool updates
v0.1.1- First observed
check_pricing - First observed
get_task - First observed
login - First observed
text_to_speech
TDQS
Scored across 4 tools
Each tool targets a clearly distinct action: authentication, task creation, task status retrieval, and pricing lookup. There is no overlap between text_to_speech (create) and get_task (poll), so an agent can select the right tool without ambiguity.
The set predominantly uses snake_case verb_noun names (text_to_speech, get_task, check_pricing). The lone 'login' is a minor deviation because it omits a noun, but it remains readable and predictable.
Four tools is well-scoped for an API wrapper focused on Gemini TTS. Authentication, task creation, task polling, and pricing lookup each earn their place without unnecessary bloat.
The core workflow of authenticating, creating a TTS task, polling its result, and checking pricing is covered. Minor gaps such as task cancellation, deletion, or listing are absent but can likely be worked around for the stated purpose.
Maintenance
Related MCP Connectors
Manage ElevenLabs voice agents and generate speech, music, sound effects, images, and video.
Giggy speech tools for AI agents: discover voices and generate text-to-speech.
Audio for your agent: transcribe, speak, translate, summarise, plus sound effects and music.
AI Voice Production Agent: picks from 30+ TTS models, fixes pronunciation, validates every line.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to generate and play high-quality text-to-speech audio using the Kokoro model, with support for multiple voices, adjustable speaking speed, and audio caching.-
- AlicenseAqualityDmaintenanceEnables AI agents to synthesize natural speech using either platform system voices or premium OpenAI TTS, with automatic engine selection and graceful fallback.112 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to generate high-quality speech with 54+ voices in multiple languages via MCP tools.19Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to synthesize speech via the unlimitedtts API, handling x402 micropayments, spend policy enforcement, and storage of private MP3 results.MIT