Skip to main content

MCP server providing text-to-speech functionality using OpenAI's API

Project description

Quick-TTS MCP Server

MCP server providing text-to-speech functionality using OpenAI's TTS API via the quick-tts package.

Installation

Using uvx (Recommended)

uvx quick-tts-mcp

Using pip

pip install quick-tts-mcp

Using Docker

docker run -e OPENAI_API_KEY=your-key quick-tts-mcp

Configuration

Create a .env file:

OPENAI_API_KEY=sk-your-openai-api-key-here

Usage

Start the server

quick-tts-mcp

Available tools:

  • generate_speech: Convert text to speech
  • list_voices: List available voices
  • list_models: List available models

Example MCP client configuration

{
  "mcpServers": {
    "quick-tts": {
      "command": "uvx",
      "args": ["quick-tts-mcp"],
      "env": {
        "OPENAI_API_KEY": "sk-your-key"
      }
    }
  }
}

Tools

generate_speech

Convert text to speech using OpenAI's TTS API.

Parameters:

  • text (required): Text to convert to speech
  • voice (optional): Voice to use - alloy, echo, fable, onyx, nova, shimmer (default: alloy)
  • model (optional): Model to use - tts-1, tts-1-hd (default: tts-1-hd)
  • output_format (optional): Output format - mp3, wav (default: mp3)

Returns: JSON with file path, size, and metadata

list_voices

List all available TTS voices with descriptions.

Returns: JSON array of available voices

list_models

List all available TTS models with descriptions.

Returns: JSON array of available models

Development

Local installation

pip install -e .

Running locally

python -m quick_tts_mcp.server

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quick_tts_mcp-0.1.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quick_tts_mcp-0.1.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file quick_tts_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: quick_tts_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for quick_tts_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f1dd739218c0682cc490cbba3339d5000e788f9a5f46461c94fadfe161575f94
MD5 eb5f9e8ff6d7decb8fdee52524c62fe9
BLAKE2b-256 d8a6888d32388f94d635e761987986a8056298f5d08a91902e60e4aa8ead76a4

See more details on using hashes here.

File details

Details for the file quick_tts_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: quick_tts_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for quick_tts_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 94a3f49f183c2158101a4cdd310d450f22069f239bf945c0c3c65a1ed9a79be9
MD5 64a5a49e340769892a4be899f54bb21c
BLAKE2b-256 06d576e7e22fe077749bf877d5bc5efad6cd680278322a1a116ae28726d8ca00

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page