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: ElevenLabs MCP Server

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_pricingA

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

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

TDQS

A3.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. The phrase 'look up' implies a read-only operation, which is helpful, but the description does not add further context such as rate limits, caching, or whether it accesses live pricing data. It is adequate but minimal.

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 sentence that directly communicates the tool's purpose. Every word earns its place, and there is no redundant or filler content. It is efficient and front-loaded.

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?

This is a simple lookup tool with no output schema and no annotations. The description clarifies the core purpose, and the schema covers parameters. While it does not describe the return format, that omission is acceptable for such a straightforward operation. It is complete enough for the tool's low complexity, though it could mention that it returns pricing data.

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 the baseline is 3. The description itself does not add parameter details, but the schema fully documents both 'model' and 'action' parameters, their defaults, and allowed values. No additional compensation is needed.

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 function: looking up RunAPI pricing for a specific model line (gemini-tts). The verb 'look up' is specific, the resource (RunAPI pricing) is named, and the scope is defined, distinguishing it from sibling tools like text_to_speech (which generates audio) and get_task (which fetches task status).

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 that the tool is used when pricing information is needed, but it does not explicitly state when to use it versus alternatives or provide exclusion criteria. Sibling tools are not mentioned or contrasted, so guidance is only implicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_taskA

Fetch the current status and latest result payload for a gemini-tts task.

ParametersJSON Schema
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

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations are absent, so the description alone must convey behavior. 'Fetch' indicates a read-only operation, which is accurately reflected in the description. However, it does not disclose behavior for missing tasks, whether it blocks until completion, or any authentication/rate-limit requirements.

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, front-loaded sentence that states the action and resource without extra verbiage. Every word contributes to the meaning.

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?

Given the tool's simplicity (2 parameters, no output schema) and the clear schema, the description provides adequate context for a getter. It lacks explicit usage guidelines or notes about polling, but the minimal scope is acceptable; a small enhancement would be to mention it is for async task retrieval.

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?

Both parameters (action and task_id) are fully described in the JSON schema with 100% coverage. The description adds no additional semantic detail beyond the schema, so the baseline score 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 uses the specific verb 'Fetch' and identifies the resource as 'the current status and latest result payload for a gemini-tts task.' This clearly differentiates it from siblings like text_to_speech (task creation) and login/check_pricing.

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 provides no explicit guidance on when to use this tool versus siblings, such as 'use after starting an asynchronous text_to_speech task' or 'poll this endpoint for completion.' The context implies it is the retrieval counterpart to text_to_speech, but nothing in the description states this.

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.

ParametersJSON Schema
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 full burden and does disclose key behaviors: it opens a browser, uses PKCE, and saves an API key to a specific path. However, it omits the conditional behavior that the browser flow may be skipped unless 'force' is true, which is only revealed in the parameter description. No contradiction exists.

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, front-loaded sentence that states the action, method, and outcome with no unnecessary words. It earns its place entirely.

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?

Given the simplicity (one optional parameter, no output schema), the description is complete enough for most use cases. It explains what, how, and where. The main gap is not stating that this is a prerequisite for other tools, but that is reasonably inferred.

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% because the only parameter 'force' has a clear description. The tool description itself adds no parameter-level detail, so it relies on the schema. Baseline 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: 'Authenticate RunAPI' via a specific method (browser PKCE login) and a specific side effect (saving the API key to a config file). This is a specific verb+resource that clearly distinguishes it from the unrelated sibling tools.

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 (you need to authenticate before using RunAPI tools), but it does not explicitly state when to use it, when not to use it, or mention any alternatives. Since the sibling tools are unrelated, there's no direct competition, but the guidance is implicit rather than explicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

text_to_speechA

Create a Gemini TTS task on RunAPI (text to speech). Returns a task id, status, and output URLs.

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

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description must carry the behavioral transparency burden. It discloses that the tool returns a task id, status, and output URLs, suggesting asynchronous behavior, but does not mention authentication requirements, potential costs, or how to handle task completion. This is moderate but incomplete disclosure.

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 sentence, concise and front-loaded with the core action. It avoids redundancy and every word contributes to understanding the tool's purpose and basic output.

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?

Despite having 10 parameters and a complex schema with required speakers and dialogue_turns, the description gives no overview of the asynchronous task workflow, how to structure a request, or how to associate dialogue turns with speakers. The minimal single-sentence description is insufficient for a tool of this complexity.

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 explains most parameters. The description adds no additional parameter context, such as how to structure speakers or dialogue_turns, beyond what the schema provides. Baseline 3 is appropriate.

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 it creates a Gemini TTS task on RunAPI, using the specific verb 'Create' and naming the resource. This distinguishes it from siblings like get_task and check_pricing, which have different purposes.

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 for creating TTS tasks but provides no explicit guidance on when to use this tool versus alternatives, such as get_task for retrieving results or check_pricing for cost information. It lacks exclusions or direct references to sibling tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

TDQS

A3.9/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: authentication, creating a TTS task, fetching task status, and checking pricing. No overlap or ambiguity between them.

Naming Consistency4/5

Most tools follow a verb_noun pattern (get_task, check_pricing), and login is a simple verb. text_to_speech is a compound noun phrase rather than verb_noun, but all are lowercase with underscores and readable.

Tool Count5/5

With only 4 tools, the server is tightly scoped to the essential operations for RunAPI Gemini TTS. Each tool earns its place and the count is appropriate for the narrow domain.

Completeness4/5

Core lifecycle is covered: auth, create task, poll for results, and check pricing. Missing features like task cancellation or listing historical tasks are minor gaps that don't break the primary workflow.

Maintenance

ActivitySlowing
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

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/runapi-ai/gemini-tts-mcp'

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