Speech.sh logo

Speech.sh

by j3k0

Converts agent text to speech through Groq, with configurable voices, speed, caching, retries, and audio playback.

Install Speech.sh

Pick your client, then add it in one click or paste the config.

Streamable HTTP (Remote)
Server URL
https://api.groq.com/openai/v1/audio/speech

Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.

Claude Code command
claude mcp add --transport http j3k0-speech-sh https://api.groq.com/openai/v1/audio/speech

Run in your terminal, then run /mcp in Claude Code to sign in if the server asks.

Overview

The j3k0/speech.sh MCP server connects AI assistants to Groq's OpenAI-compatible text-to-speech API. It exposes one `speak` tool that accepts text plus optional voice and speed settings, then generates and plays audio using a local player. A Python FastMCP implementation is recommended, while a legacy shell implementation is also available. Use it when an agent needs to read responses, announce completion, or provide spoken status updates.

Use cases

  • Read agent responses aloud
  • Announce completed tasks
  • Speak generated summaries
  • Adjust voice and speed per request

Key features

  • Groq OpenAI-compatible TTS
  • Single MCP speak tool
  • Four selectable voices
  • Adjustable speech speed
  • Hash-based audio caching
  • Retry and local playback support

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 112d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars9Stargazers on the source repository.
Last commit8mo agoMost recent push to the default branch.
Directory activity6 viewsConfig copies, upvotes, and views on AllMCPs.

How Speech.sh works

What j3k0/speech.sh does

The j3k0/speech.sh MCP server adds spoken output to an MCP-compatible assistant. It sends text to the Groq TTS API and provides the resulting audio for local playback. The project supports four documented voices—troy, austin, hannah, and autumn—as well as an adjustable speech rate.

The MCP interface contains one tool, speak. Its required text argument supplies the content to vocalize. Optional voice and speed arguments override the configured defaults for an individual call. This makes the server suitable for reading short responses, announcing that work has finished, or speaking a generated summary.

How it works

The recommended implementation is server.py, built with the Python FastMCP SDK. It calls the Groq endpoint using an OpenAI-compatible audio-speech interface. The default model is canopylabs/orpheus-v1-english, and the default endpoint is https://api.groq.com/openai/v1/audio/speech.

The repository also includes speech.sh, a command-line TTS implementation, and mcp.sh, a shell-based MCP wrapper that communicates over JSON-RPC 2.0 on standard input and output. The Python server is described as a self-contained replacement for those two scripts.

The shell TTS path caches generated audio using a hash of the request, helping avoid repeated API calls. Cached entries are cleaned up after 24 hours. Requests can also be retried with exponential backoff. Playback uses the first available supported program, including ffplay, mplayer, or VLC.

Setup and configuration

To run the Python version, use Python 3.10 or newer and uv. Create a virtual environment, install mcp[cli] and httpx, then start server.py with OPENAI_API_KEY set to a Groq API key. The API key can also be supplied to the shell CLI with --api_key, or loaded from an API_KEY file in the script directory.

For an MCP client configuration, set the command to the Python executable inside the virtual environment and pass the path to server.py as its argument. The documented configuration includes OPENAI_API_KEY, SPEECH_VOICE, SPEECH_SPEED, and SPEECH_MODEL under the server's env settings.

The shell CLI additionally requires curl, jq, and one supported audio player. Its options include output-file selection, model selection, retry count, timeout, player choice, and verbose logging.

Tools and capabilities

The j3k0/speech.sh MCP server exposes:

  • Voice selection with troy, austin, hannah, or autumn.
  • Per-request speech-speed control, with 1.0 as the default.
  • Configurable default voice, speed, model, and API URL through environment variables.
  • Local playback through ffplay, mplayer, or VLC when using the shell implementation.
  • Duplicate-request caching and retry handling in the shell TTS engine.

Limitations and notes

The Groq API key is required for operation. Audio playback depends on a compatible player being installed locally. The legacy shell MCP implementation may encounter macOS sandboxing problems when used with Claude Desktop; the Python implementation is the recommended alternative. The provided MCP interface documents only the speak tool, so it does not expose separate tools for listing voices, managing cache entries, or controlling playback after a request begins.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Speech.sh

j3k0/speech.sh is an MCP server that connects AI assistants to Groq's OpenAI-compatible text-to-speech API. The recommended Python implementation uses FastMCP; a legacy shell-based MCP implementation is also included.

Install it by cloning the repository, creating a Python 3.10+ virtual environment with `uv`, and installing `mcp[cli]` plus `httpx`. Start `server.py` with `OPENAI_API_KEY` set to a Groq API key. The shell implementation instead requires `curl`, `jq`, and an audio player.

Configure Claude Desktop with the virtual environment's Python executable as the command and `server.py` as its argument. Add `OPENAI_API_KEY` and any desired `SPEECH_VOICE`, `SPEECH_SPEED`, and `SPEECH_MODEL` values under the server's `env` object.

Yes, Claude Code is one of the clients named in the documentation. Run the recommended Python MCP server and provide the server command, script path, and Groq API key through the client configuration.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSpeech.sh AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/j3k0-speech-sh?style=directory)](https://allmcps.com/mcp/j3k0-speech-sh)
HTML Embed
<a href="https://allmcps.com/mcp/j3k0-speech-sh"><img src="https://allmcps.com/api/badge/j3k0-speech-sh?style=directory" alt="Speech.sh on AllMCPs" /></a>