Loading languages...
J3

j3k0/speech.sh

@j3k0

This MCP (Model Context Protocol) server provides text-to-speech capabilities through OpenAI's API. It allows AI assistants and other applications to convert text into spoken audio.

text-to-speech
openai
zsh

Speech MCP Server

Provides text-to-speech capabilities via OpenAI's API for AI assistants and applications.

Installation

  1. Install dependencies: zsh, jq, curl, ffmpeg/mplayer, and speech.sh.
  2. Make scripts executable: chmod +x mcp.sh speech.sh launch.
  3. Set OpenAI API key: export OPENAI_API_KEY="your-key".

Usage

Start the server with ./launch or ./mcp.sh. Use JSON-RPC requests to call the speak method with a text parameter.

Configuration

Use environment variables like SPEECH_VOICE, SPEECH_SPEED, SPEECH_MODEL to customize.

Notes

  • Speech plays immediately through system speakers.
  • Logs are stored in logs.txt and speech_logs.txt.

# mcpServer Config

No mcpServer Config instructions provided.

# stdio

./mcp.sh

# streamableURL

http://localhost:8123
Transport:
stdio
streamable
Language:
zsh
Updated: 8/3/2025