Skip to main content
Glama
runapi-ai

RunAPI Gemini TTS MCP Server

by runapi-ai

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-mcp

Use project scope when the server should be shared with a repository:

claude mcp add gemini-tts -s project -- npx -y @runapi.ai/gemini-tts-mcp

Codex, 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

text_to_speech

Yes

Create a Gemini TTS text to speech task and optionally wait for a terminal status. Returns the task id, status, and output URLs.

get_task

Yes

Fetch the current status and latest payload for an existing task.

check_pricing

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

text_to_speech

gemini-2.5-pro-tts, gemini-3.1-flash-tts

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:

  1. RUNAPI_API_KEY environment variable, useful for headless and CI hosts

  2. ~/.config/runapi/config.json, created by the MCP login tool or runapi login

  3. No 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.


Resource

URL

Gemini TTS model page

https://runapi.ai/models/gemini-tts

npm package

@runapi.ai/gemini-tts-mcp

GitHub repository

runapi-ai/gemini-tts-mcp

RunAPI MCP overview

runapi.ai/mcp

RunAPI docs

runapi.ai/docs


License

Licensed under the Apache License, Version 2.0.

Available Tools

4 tools
check_pricingC

Look up RunAPI pricing for the gemini-tts model line.

NameRequiredDescriptionDefault
modelNoModel slug. Defaults to the line's primary model.
actionNoEndpoint name. Defaults to the endpoint that offers the model.

TDQS

C2.9/5.0
Behavior2/5

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.

Conciseness4/5

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.

Completeness3/5

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.

Parameters3/5

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.

Purpose4/5

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.

Usage Guidelines2/5

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.

NameRequiredDescriptionDefault
actionNoAsynchronous endpoint the task was created on. Defaults to the line's only asynchronous endpoint.
task_idYesTask id returned when the task was created.

TDQS

B3.2/5.0
Behavior3/5

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.

Conciseness4/5

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.

Completeness4/5

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.

Parameters3/5

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.

Purpose4/5

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.

Usage Guidelines2/5

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.

NameRequiredDescriptionDefault
forceNoRe-run browser login when the current credential comes from the local config file.

TDQS

A4/5.0
Behavior4/5

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.

Conciseness5/5

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.

Completeness4/5

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.

Parameters3/5

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.

Purpose5/5

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.

Usage Guidelines3/5

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.

NameRequiredDescriptionDefault
waitNoPoll until the task reaches a terminal status.
modelNoRunAPI model slug for this model line.
sceneNoScene and recording environment. Declared type: string.
speakersYesNon-empty speaker configurations with unique Speaker N identifiers. Declared type: array.
timeout_msNo
temperatureNoSampling temperature. Declared type: number.
callback_urlNoWebhook URL for async notifications. Declared type: string.
dialogue_turnsYesNon-empty ordered dialogue turns whose speaker ids reference configured speakers. Declared type: array.
sample_contextNoOverall delivery context and tone. Declared type: string.
poll_interval_msNo

TDQS

B3.2/5.0
Behavior3/5

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.

Conciseness5/5

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.

Completeness2/5

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.

Parameters3/5

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.

Purpose4/5

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.

Usage Guidelines2/5

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.

  1. 3 tool updatesv0.2.1
    • Changedcheck_pricing2 fields changed
      • removedInput schema / additionalProperties
        Removed value: -false
      • removedInput schema / properties / model / enum
        Removed value: -[
        -  "gemini-2.5-pro-tts",
        -  "gemini-3.1-flash-tts"
        -]
    • Changedget_task1 field changed
      • removedInput schema / additionalProperties
        Removed value: -false
    • Changedtext_to_speech31 fields changed
      • changedInput schema / additionalProperties
        Previous value: -falseNew value: +{}
      • changedInput schema / properties / callback_url / description
        Previous value: -"Webhook URL for async notifications."New value: +"Webhook URL for async notifications. Declared type: string."
      • changedInput schema / properties / dialogue_turns / description
        Previous 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."
      • changedInput schema / properties / dialogue_turns / items / additionalProperties
        Previous value: -falseNew value: +true
      • removedInput schema / properties / dialogue_turns / items / properties / speaker_id / description
        Removed value: -"Identifier matching a configured speakers[].speaker_id."
      • removedInput schema / properties / dialogue_turns / items / properties / text / description
        Removed value: -"Spoken text, up to 10,000 characters."
      • removedInput schema / properties / dialogue_turns / items / properties / text / maxLength
        Removed value: -10000
      • removedInput schema / properties / dialogue_turns / minItems
        Removed value: -1
      • removedInput schema / properties / model / enum
        Removed value: -[
        -  "gemini-2.5-pro-tts",
        -  "gemini-3.1-flash-tts"
        -]
      • addedInput schema / properties / poll_interval_ms / maximum
        Added value: +9007199254740991
      • changedInput schema / properties / sample_context / description
        Previous value: -"Overall delivery context and tone."New value: +"Overall delivery context and tone. Declared type: string."
      • changedInput schema / properties / scene / description
        Previous value: -"Scene and recording environment."New value: +"Scene and recording environment. Declared type: string."
      • changedInput schema / properties / speakers / description
        Previous value: -"Non-empty speaker configurations with unique Speaker N identifiers."New value: +"Non-empty speaker configurations with unique Speaker N identifiers. Declared type: array."
      • changedInput schema / properties / speakers / items / additionalProperties
        Previous value: -falseNew value: +true
      • removedInput schema / properties / speakers / items / properties / accent / description
        Removed value: -"Speaker accent."
      • removedInput schema / properties / speakers / items / properties / accent / enum
        Removed value: -[
        -  "Neutral",
        -  "American (Gen)",
        -  "American (Valley)",
        -  "American (South)",
        -  "British (RP)",
        -  "British (Brixton)",
        -  "Transatlantic",
        -  "Australian"
        -]
      • removedInput schema / properties / speakers / items / properties / audio_profile / description
        Removed value: -"Optional voice character guidance."
      • removedInput schema / properties / speakers / items / properties / pace / description
        Removed value: -"Speaker pace."
      • removedInput schema / properties / speakers / items / properties / pace / enum
        Removed value: -[
        -  "Natural",
        -  "Rapid Fire",
        -  "The Drift",
        -  "Staccato"
        -]
      • removedInput schema / properties / speakers / items / properties / speaker_id / description
        Removed value: -"Unique identifier in Speaker N format."
      • removedInput schema / properties / speakers / items / properties / speaker_id / pattern
        Removed value: -"^Speaker [1-9][0-9]*$"
      • removedInput schema / properties / speakers / items / properties / style / description
        Removed value: -"Speaker delivery style."
      • removedInput schema / properties / speakers / items / properties / style / enum
        Removed value: -[
        -  "Vocal Smile",
        -  "Newscaster",
        -  "Whisper",
        -  "Empathetic",
        -  "Promo/Hype",
        -  "Deadpan"
        -]
      • removedInput schema / properties / speakers / items / properties / voice_name / description
        Removed value: -"Preset voice name."
      • removedInput schema / properties / speakers / items / properties / voice_name / enum
        Removed 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"
        -]
      • changedInput schema / properties / speakers / items / required
        Previous value: -[
        -  "pace",
        -  "style",
        -  "accent",
        -  "speaker_id",
        -  "voice_name"
        -]New value: +[
        +  "speaker_id",
        +  "voice_name"
        +]
      • removedInput schema / properties / speakers / minItems
        Removed value: -1
      • changedInput schema / properties / temperature / description
        Previous value: -"Sampling temperature."New value: +"Sampling temperature. Declared type: number."
      • removedInput schema / properties / temperature / maximum
        Removed value: -2
      • removedInput schema / properties / temperature / minimum
        Removed value: -0
      • addedInput schema / properties / timeout_ms / maximum
        Added value: +9007199254740991
  2. 4 tool updatesv0.1.1
    • First observedcheck_pricing
    • First observedget_task
    • First observedlogin
    • First observedtext_to_speech

TDQS

A3.5/5.0

Scored across 4 tools

Disambiguation5/5

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.

Naming Consistency4/5

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.

Tool Count5/5

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.

Completeness4/5

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

ActivityMaintained
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers