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 speechlist_voices: List available voiceslist_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 speechvoice(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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file quick_tts_mcp-0.1.4.tar.gz.
File metadata
- Download URL: quick_tts_mcp-0.1.4.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7bac9a1573975c23875106a4b2a5c2a6abfeae6541d08893a68bc521a5fdb0d
|
|
| MD5 |
fbdfa058a4be240a243bfb8f74459f63
|
|
| BLAKE2b-256 |
a659f3736b85a03623f80498f9053ed7305b452d14a467aefb9ac199ad5e1157
|
File details
Details for the file quick_tts_mcp-0.1.4-py3-none-any.whl.
File metadata
- Download URL: quick_tts_mcp-0.1.4-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40093fea9df3d8d8a679ad81510810634636ac71bad55b77ccedd14eb6de0be0
|
|
| MD5 |
aa0092c64671b4f1336a5fec10f2d373
|
|
| BLAKE2b-256 |
800aa1a47964b53ed271733e1ed14952893c9367023190e27dd4805c28c83862
|