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.0.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.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quick_tts_mcp-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 2444996faba7c41fde0e0ebbb02d4e3d064fdd1935a0c9caca85777becf3caa1
MD5 ff4674d7f470a5a6a806a954c237b283
BLAKE2b-256 ae18a5bd683703d0dc3df478dd3f41c4010e559c051388824d9c3aee2cecc42f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quick_tts_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 31dd98fdcef8a83302c599ce500ee3f61f297791aa545346b3c549bac420ec5c
MD5 c70a79fecbff5b13c98c42599f44c1b0
BLAKE2b-256 c5e18048403a779c43011aa766c09197e52fe6a224ea6ad382ee5c0c4e10eea5

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