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.3.tar.gz (3.3 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.3-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quick_tts_mcp-0.1.3.tar.gz
  • Upload date:
  • Size: 3.3 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.3.tar.gz
Algorithm Hash digest
SHA256 6c139cf6fc71d42d669d3c19299bbfafe1520113d1540801b520115697ce1462
MD5 9424830230ddb7f6c8bacd2d9eda2e01
BLAKE2b-256 90bad4311551d40b8486bcb0316a8e51d1e8c8eba8485afb4c4bd273c1f16cf3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quick_tts_mcp-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.1 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c78968fee9db39c2e41842269828769c5dde025e5d48991c9037514d98d9c884
MD5 06d1512b80f966938a5e76cd46bec81c
BLAKE2b-256 69f480f4f85ed4c2216c64ab76683008206c22a2fdc120f8da4715c6cafb4940

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