MCP server for text-to-speech

MCP server for text-to-speech

mcp-say•byblacktop

An MCP server that adds text-to-speech tools to MCP clients such as Claude Desktop and Cursor IDE.

License: MIT•Runtime: Awaiting documentation review•Category: media design

WHAT IT DOES

  • •Registers several TTS tools, including `say_tts`, `elevenlabs_tts`, `google_tts`, and `openai_tts`, with `voice_tts` when `voice-say` is available.
  • •`say_tts` uses the macOS `say` binary to speak text with built-in system voices.
  • •`elevenlabs_tts`, `google_tts`, and `openai_tts` use cloud provider APIs for speech synthesis.
  • •Enforces sequential speech by default so only one TTS request plays audio at a time, with an option to allow concurrent playback.

BEST FOR

  • •Adding spoken announcements or summaries to agent workflows in MCP-capable clients.
  • •Producing audio files from text rather than only playing speech.
  • •Keeping speech local on macOS using built-in system voices.

ABOUT MCP-SAY

MCP server for text-to-speech is cataloged as an MCP server attributed to blacktop. An MCP server that adds text-to-speech tools to MCP clients such as Claude Desktop and Cursor IDE. It is categorized under media design. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP server for text-to-speech are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Can speech output be saved to disk instead of played?

Yes, audio output can be saved to a directory, and playback can optionally be skipped.

What does the OpenAI TTS tool offer?

It uses OpenAI's Text-to-Speech API with 10 natural-sounding voices, supports three quality models including gpt-4o-mini-tts by default, speed control from 0.25x to 4.0x, and custom voice instructions.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 445070568559 · 采集于 2026-11-13 09:01:42 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

mcp-tts Logo

mcp-tts

MCP Server for TTS (Text-to-Speech)


What? 🤔

Adds Text-to-Speech to things like Claude Desktop and Cursor IDE.

It registers the existing TTS tools, plus voice_tts when voice-say is available on PATH:

  • say_tts
  • voice_tts (when available)
  • elevenlabs_tts
  • google_tts
  • openai_tts

say_tts

Uses the macOS say binary to speak the text with built-in system voices

voice_tts

Uses the local voice-say CLI from Voice to run Qwen3-TTS through MLX. Voice needs no API key and keeps text and audio on the Mac. The model reloads for every invocation, so startup typically takes several seconds; prefer it for summaries and announcements rather than time-critical alerts.

The tool is registered only when voice-say is resolvable on PATH. Optional parameters are:

  • voice: preset voice Ryan or Aiden
  • tier: small for faster 0.6B synthesis or large for higher-quality 1.7B synthesis
  • style: free-text delivery guidance
  • describe: free-text voice design; forces the 1.7B model and cannot be combined with voice

Voice plays audio directly and does not support --output-dir; with --no-play, calls fail without launching voice-say.

[!WARNING] The Voice repository is currently private and will be released publicly soon, so the link requires access for now.

elevenlabs_tts

Uses the ElevenLabs text-to-speech API to speak the text with premium AI voices

google_tts

Uses Google's Gemini TTS models to speak the text with 30 high-quality voices. Available voices include:

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

openai_tts

Uses OpenAI's Text-to-Speech API to speak the text with 10 natural-sounding voices:

  • alloy (Warm, conversational, modern)
  • ash (Confident, assertive, slightly textured)
  • ballad (Gentle, melodious, slightly lyrical)
  • coral (Cheerful, fresh, upbeat)
  • echo (Neutral, calm, balanced)
  • fable (Storyteller-like, expressive)
  • nova (Clear, precise, slightly formal)
  • onyx (Deep, authoritative, resonant)
  • sage (Soothing, empathetic, reassuring)
  • shimmer (Bright, animated, playful)
  • verse (Versatile, expressive)

Supports three quality models:

  • gpt-4o-mini-tts - Default, optimized quality and speed
  • tts-1 - Standard quality, faster generation
  • tts-1-hd - High definition audio, premium quality

Additional features:

  • Speed control from 0.25x to 4.0x (default: 1.0x)
  • Custom voice instructions (e.g., "Speak in a cheerful and positive tone") via parameter or OPENAI_TTS_INSTRUCTIONS environment variable

Configuration

Rex speaking indicator

When an agent starts mcp-tts inside a Rex terminal, playback reports an independent working record titled 🔊 Speaking using Rex's program-status protocol. Each playback clears its own record when it finishes, including failures and cancellation. Voice's record also covers model startup because voice-say handles synthesis and playback together.

Rex controls how records appear. Its documented tab behavior is a generic working indication on unfocused tabs; a second working record may be indistinguishable from Codex's existing activity. Receiving the record does not guarantee a separate Speaking label or speaker icon. Check the unfocused tab and Activity view in the installed Rex client before relying on either presentation.

For a visible tab-label marker, opt in with mcp-tts --rex-tab-label. This requires the rex CLI, a local Unix Rex server, and full inherited Rex session/block IDs. The server resolves the pane's exact window, temporarily prefixes its explicit label with 🔊, and restores the original after the last overlapping playback. For an automatically named window, it uses the speaking terminal's title and then restores automatic naming; if no usable terminal title is available, it leaves the automatic label alone. Other mcp-tts processes and panes sharing that tab coordinate through private, per-user files in /tmp. Long labels are shortened only while marked. A detected manual rename relinquishes ownership until the overlapping playback finishes.

The existing independent OSC records remain enabled by default. A process crash or failed cleanup can leave the marker until the next opted-in playback in that tab; that playback recovers abandoned leases and preserves the saved original label. If the saved state is lost or corrupt, correct the label manually. Rex has no compare-and-set operation, so a manual rename made between the integration's final label read and write can still be overwritten.

Before using the new automatic-title behavior, stop or quiesce all older mcp-tts processes sharing a Rex tab, then start the upgraded instances. A rolling restart with v0.1.48 does not preserve overlap coordination for automatic titles.

The MCP server must inherit REX_SESSION, REX_BLOCK, and its controlling terminal. A detached or shared MCP server without that terminal cannot identify the caller's pane, so status reporting is disabled there. Speech still works normally.

For Codex, append "REX_SESSION", "REX_BLOCK", and "REX_SERVER" to the existing env_vars list under your [mcp_servers.<name>] entry in config.toml. Keep any provider variables already listed there. Launch Codex with --no-daemon inside Rex so its MCP child retains that terminal, then restart the MCP connection after changing the configuration. Rexurrect's Codex launcher already supplies --no-daemon.

Sequential vs Concurrent TTS

By default, the TTS server enforces sequential speech operations - only one TTS request can play audio at a time. This prevents multiple agents from speaking simultaneously and creating an unintelligible cacophony. Subsequent requests will wait in a queue until the current speech completes.

Multi-Instance Protection: The mutex works both within a single MCP server process and across multiple Claude Desktop instances. When running multiple Claude Desktop terminals, they coordinate via a system-wide file lock to prevent overlapping speech.

To allow concurrent TTS operations (multiple speeches playing simultaneously):

Environment Variable:

export MCP_TTS_ALLOW_CONCURRENT=true

Command Line Flag:

mcp-tts --sequential-tts=false

Note: Concurrent TTS may result in overlapping audio that's difficult to understand. Use this option only when you explicitly want multiple TTS operations to run simultaneously.

Suppressing "Speaking:" Output

By default, TTS tools return a message like "Speaking: [text]" when speech completes. This can interfere with LLM responses. To suppress this output:

Environment Variable:

export MCP_TTS_SUPPRESS_SPEAKING_OUTPUT=true

Command Line Flag:

mcp-tts --suppress-speaking-output

When enabled, tools return "Speech completed" instead of echoing the spoken text.

Saving Audio to Disk

Save TTS audio output to files instead of (or in addition to) playing them:

Environment Variables:

export MCP_TTS_OUTPUT_DIR=/path/to/audio    # Save audio files to this directory
export MCP_TTS_NO_PLAY=true                  # Skip playback, only save (optional)

Command Line Flags:

mcp-tts --output-dir /path/to/audio          # Save and play
mcp-tts --output-dir /path/to/audio --no-play  # Save only, no playback

Files are saved with unique names: tts_{timestamp}_{hash}.{ext}

ProviderFormat
macOS sayAIFF
VoicePlayback only
ElevenLabsMP3
Google TTSWAV
OpenAI TTSMP3

Getting Started

Install

go install github.com/blacktop/mcp-tts@latest
❱ mcp-tts --help

TTS (text-to-speech) MCP Server.

Provides multiple text-to-speech services via MCP protocol:

• say_tts - Uses macOS built-in 'say' command (macOS only)
• voice_tts - Uses local Qwen3-TTS through voice-say (when available on PATH)
• elevenlabs_tts - Uses ElevenLabs API for high-quality speech synthesis
• google_tts - Uses Google's Gemini TTS models for natural speech
• openai_tts - Uses OpenAI's TTS API with various voice options

Each tool supports different voices, rates, and configuration options.
Requires appropriate API keys for cloud-based services.

Designed to be used with the MCP (Model Context Protocol).

Usage:
  mcp-tts [flags]

Flags:
  -h, --help                       help for mcp-tts
      --no-play                    Skip playback, only save (requires --output-dir)
      --output-dir string          Save audio files to directory (env: MCP_TTS_OUTPUT_DIR)
      --rex-tab-label              Temporarily prefix the exact Rex tab label with 🔊 during playback
      --sequential-tts             Enforce sequential TTS (prevent concurrent speech) (default true)
      --suppress-speaking-output   Suppress 'Speaking:' text output
  -v, --verbose                    Enable verbose debug logging

Configuration

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "say": {
      "command": "mcp-tts",
      "env": {
        "ELEVENLABS_API_KEY": "********",
        "ELEVENLABS_VOICE_ID": "EXAVITQu4vr4xnSDxMaL",
        "GOOGLE_AI_API_KEY": "********",
        "OPENAI_API_KEY": "********",
        "OPENAI_TTS_INSTRUCTIONS": "Speak in a cheerful and positive tone",
        "MCP_TTS_SUPPRESS_SPEAKING_OUTPUT": "true",
        "MCP_TTS_ALLOW_CONCURRENT": "false"
      }
    }
  }
}

Claude Code

claude mcp add say \
  -e GOOGLE_AI_API_KEY=your_key \
  -e ELEVENLABS_API_KEY=your_key \
  -e OPENAI_API_KEY=your_key \
  -- mcp-tts

Codex CLI

codex mcp add say \
  --env GOOGLE_AI_API_KEY=your_key \
  --env ELEVENLABS_API_KEY=your_key \
  --env OPENAI_API_KEY=your_key \
  -- mcp-tts

Gemini CLI

gemini mcp add say mcp-tts \
  -e GOOGLE_AI_API_KEY=your_key \
  -e ELEVENLABS_API_KEY=your_key \
  -e OPENAI_API_KEY=your_key

Or manually add to ~/.gemini/settings.json (or .gemini/settings.json in project root):

{
  "mcpServers": {
    "say": {
      "command": ["mcp-tts"],
      "env": {
        "GOOGLE_AI_API_KEY": "..."
      }
    }
  }
}

Environment Variables

  • ELEVENLABS_API_KEY: Your ElevenLabs API key (required for elevenlabs_tts)
  • ELEVENLABS_VOICE_ID: ElevenLabs voice ID (optional, defaults to the premade "Sarah" voice EXAVITQu4vr4xnSDxMaL). Free-tier API keys can only use premade voices — Voice Library (community/professional) voices return 402 paid_plan_required.
  • GOOGLE_AI_API_KEY or GEMINI_API_KEY: Your Google AI API key (required for google_tts)
  • OPENAI_API_KEY: Your OpenAI API key (required for openai_tts)
  • OPENAI_TTS_INSTRUCTIONS: Custom voice instructions for OpenAI TTS (optional, e.g., "Speak in a cheerful and positive tone")
  • MCP_TTS_SUPPRESS_SPEAKING_OUTPUT: Set to "true" to suppress "Speaking:" output (optional)
  • MCP_TTS_ALLOW_CONCURRENT: Set to "true" to allow concurrent TTS operations (optional, defaults to sequential)
  • MCP_TTS_OUTPUT_DIR: Directory to save audio files (optional)
  • MCP_TTS_NO_PLAY: Set to "true" to skip playback when saving (optional, requires MCP_TTS_OUTPUT_DIR)
  • MCP_TTS_ELICIT: Set to "true" to enable interactive elicitation prompts (also --elicit; optional, default off). When off, tools use explicit arguments/defaults without prompting — recommended for agent use.

Test

Test macOS TTS

❱ cat test/say.json | go run main.go --verbose

2025/03/23 22:41:49 INFO Starting MCP server name="Say TTS Service" version=1.0.0
2025/03/23 22:41:49 DEBU Say tool called request="{Request:{Method:tools/call Params:{Meta:<nil>}} Params:{Name:say_tts Arguments:map[text:Hello, world!] Meta:<nil>}}"
2025/03/23 22:41:49 DEBU Executing say command args="[--rate 200 Hello, world!]"
2025/03/23 22:41:49 INFO Speaking text text="Hello, world!"
{"jsonrpc":"2.0","id":3,"result":{"content":[{"type":"text","text":"Speaking: Hello, world!"}]}}

Test Google TTS

❱ cat test/google_tts.json | go run main.go --verbose

2025/05/23 18:26:45 INFO Starting MCP server name="Say TTS Service" version=""
2025/05/23 18:26:45 DEBU Google TTS tool called request="{...}"
2025/05/23 18:26:45 DEBU Generating TTS audio model=gemini-3.8-flash-tts voice=Kore text="Hello! This is a test of Google's TTS API. How does it sound?"
2025/05/23 18:26:49 INFO Playing TTS audio via beep speaker bytes=181006
2025/05/23 18:26:53 INFO Speaking via Google TTS text="Hello! This is a test of Google's TTS API. How does it sound?" voice=Kore
{"jsonrpc":"2.0","id":4,"result":{"content":[{"type":"text","text":"Speaking: Hello! This is a test of Google's TTS API. How does it sound? (via Google TTS with voice Kore)"}]}}

Test OpenAI TTS

❱ cat test/openai_tts.json | go run main.go --verbose

2025/05/23 19:15:32 INFO Starting MCP server name="Say TTS Service" version=""
2025/05/23 19:15:32 DEBU OpenAI TTS tool called request="{...}"
2025/05/23 19:15:32 DEBU Generating OpenAI TTS audio model=tts-1 voice=nova speed=1.2 text="Hello! This is a test of OpenAI's text-to-speech API. I'm using the nova voice at 1.2x speed."
2025/05/23 19:15:34 DEBU Decoding MP3 stream from OpenAI
2025/05/23 19:15:34 DEBU Initializing speaker for OpenAI TTS sampleRate=22050
2025/05/23 19:15:36 INFO Speaking text via OpenAI TTS text="Hello! This is a test of OpenAI's text-to-speech API. I'm using the nova voice at 1.2x speed." voice=nova model=tts-1 speed=1.2
{"jsonrpc":"2.0","id":5,"result":{"content":[{"type":"text","text":"Speaking: Hello! This is a test of OpenAI's text-to-speech API. I'm using the nova voice at 1.2x speed. (via OpenAI TTS with voice nova)"}]}}

Test the mutex behavior with multiple TTS requests

# Sequential mode (default) - speeches play one after another
cat test/sequential.json | go run main.go --verbose

# Concurrent mode - allows overlapping speech  
cat test/sequential.json | go run main.go --verbose --sequential-tts=false

Skill: speak

This repo includes a speak skill that automatically announces plans, issues, and summaries aloud using TTS. It defaults to the host's macOS say voice, and can optionally assign distinct voices per project or message type so you can identify what is speaking from another room.

Skills follow the Agent Skills open standard and work across Claude Code, Codex CLI, and Gemini CLI.

Install Skill

skills.sh

npx skills add https://github.com/blacktop/mcp-tts --skill speak

Claude Code

Via Plugin Marketplace (recommended):

claude plugin marketplace add blacktop/mcp-tts
claude plugin install speak@mcp-tts

Or manually:

mkdir -p ~/.claude/skills
git clone https://github.com/blacktop/mcp-tts.git /tmp/mcp-tts
cp -r /tmp/mcp-tts/skill ~/.claude/skills/speak

The skill is now available. Claude will use it automatically when relevant, or invoke directly with /speak.

Codex CLI

Using the skill-installer (within a Codex session):

$skill-installer install the speak skill from https://github.com/blacktop/mcp-tts --path skill

Or manually:

mkdir -p ~/.codex/skills
git clone https://github.com/blacktop/mcp-tts.git /tmp/mcp-tts
cp -r /tmp/mcp-tts/skill ~/.codex/skills/speak

Restart Codex after installing.

Gemini CLI

Gemini CLI uses extensions to bundle skills. Install this repo as an extension:

gemini extensions install https://github.com/blacktop/mcp-tts.git

This installs the speak skill.

Or manually (skill only):

mkdir -p ~/.gemini/skills
git clone https://github.com/blacktop/mcp-tts.git /tmp/mcp-tts
cp -r /tmp/mcp-tts/skill ~/.gemini/skills/speak

Note: Gemini CLI skills are experimental. Enable via /settings → search "Skills" → toggle on.

Shared Skills Directory (Optional)

To maintain one copy across all agents, run the install script:

git clone https://github.com/blacktop/mcp-tts.git
cd mcp-tts
./install-skill.sh

This copies the skill to ~/.agents/skills/speak and creates symlinks for Claude Code, Codex CLI, and Gemini CLI.

Verify Installation

AgentCommand
Claude CodeAsk "What skills are available?" or type /speak
Codex CLISkills load automatically on restart
Gemini CLIgemini extensions list or check /settings for skills

How It Works

The skill should be selected after:

  • Planning complete - When a plan/todo list is finalized
  • Issue resolved - When a bug fix or error is resolved
  • Summary generated - When completing a major task
  • Long operation changes state - When a build, test, deployment, release, research, or monitoring phase completes or fails
  • Human intervention needed - When approval, authentication, manual action, or an exhausted retry budget blocks progress

The skill defaults to local-only speech without probing credentials. When both are registered, it alternates voice_tts and say_tts roughly equally; urgent alerts may use fast say_tts first, with Voice preferred for the next eligible announcement. Both avoid cloud API quotas and keep spoken content on the Mac. A stated user preference overrides balancing and updates the project TTS configuration unless the request is explicitly one-off. Cloud TTS is used only after an explicit user choice or saved configuration. If that cloud provider hits a quota, token, authentication, or configuration failure, automatic cloud TTS is disabled for the session and the skill uses local speech—or remains text-only when no local tool is available. It never tries the other cloud providers automatically. For local say identity, leave voice unset to use the host System Voice unless the user intentionally selected an exact installed voice.

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP server for text-to-speech from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-say)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related media design MCP Servers

Alternative and complementary servers in the same category

View all in media design →

A Rust CAD application with an MCP server for creating, inspecting and rendering drawings, either headlessly or through a connection to the desktop app.

8K
Media & Design
Liquid Composer
liquid-composer•frontedu

Liquid Composer is a browser-based Liquid Glass icon design tool that offers a local MCP server for agent-driven icon workflows.

69
Media & Design

agent-media makes short drama series and other short vertical videos from Claude, ChatGPT or Codex through one MCP connection, with OAuth sign-in and no API keys.

1
Media & Design