loading…
Search for a command to run...
loading…
Adds text-to-speech capabilities to Cursor IDE, allowing your AI assistant to speak responses, summaries, and explanations out loud using OpenAI or ElevenLabs.
Adds text-to-speech capabilities to Cursor IDE, allowing your AI assistant to speak responses, summaries, and explanations out loud using OpenAI or ElevenLabs.
Add text-to-speech capabilities to Cursor IDE. Let your AI assistant speak responses, summaries, and explanations out loud.
Prerequisites: Cursor IDE and either an OpenAI API key or an ElevenLabs API key
Setup: Add one of these to your Cursor MCP settings (~/.cursor/mcp.json):
{
"mcpServers": {
"mcp_tts_server": {
"command": "uvx",
"args": ["--from", "mcp-tts", "mcp-tts-server-stdio"],
"env": {
"OPENAI_API_KEY": "your-openai-api-key-here",
"ELEVENLABS_API_KEY": "your-elevenlabs-api-key-here",
"MCP_TTS_PROVIDER": "openai",
"MCP_TTS_VOICE": "ballad",
"MCP_TTS_VOICE_PRESET": "default",
"MCP_TTS_CUSTOM_INSTRUCTIONS": "",
"MCP_TTS_SPEED": "1.0",
"MCP_TTS_VOLUME": "0.8",
"MCP_TTS_DEVICE_NAME": "",
"MCP_TTS_DEVICE_INDEX": "",
"PYTHONIOENCODING": "utf-8"
}
}
}
}
OpenAI (voices/presets/speed apply):
{
"mcpServers": {
"mcp_tts_server": {
"command": "uvx",
"args": ["--from", "mcp-tts", "mcp-tts-server-stdio"],
"env": {
"MCP_TTS_PROVIDER": "openai",
"OPENAI_API_KEY": "sk-...",
"MCP_TTS_VOICE": "alloy",
"MCP_TTS_VOICE_PRESET": "professional",
"MCP_TTS_CUSTOM_INSTRUCTIONS": "",
"MCP_TTS_SPEED": "1.0",
"MCP_TTS_VOLUME": "0.9",
"PYTHONIOENCODING": "utf-8"
}
}
}
}
ElevenLabs (use voice_id or exact name; presets/speed are ignored):
{
"mcpServers": {
"mcp_tts_server": {
"command": "uvx",
"args": ["--from", "mcp-tts", "mcp-tts-server-stdio"],
"env": {
"MCP_TTS_PROVIDER": "elevenlabs",
"ELEVENLABS_API_KEY": "eleven-...",
"MCP_TTS_VOICE": "Adam",
"MCP_TTS_VOLUME": "0.8",
"PYTHONIOENCODING": "utf-8"
}
}
}
}
That's it! Restart Cursor and try asking: "Can you read me a summary using text-to-speech?"
You can control the TTS system using these environment variables in your MCP config:
| Variable | Description | Example Values | Default |
|---|---|---|---|
OPENAI_API_KEY |
Your OpenAI API key (required if using OpenAI) | sk-proj-abc123... |
- |
ELEVENLABS_API_KEY |
Your ElevenLabs API key (required if using ElevenLabs) | eleven-xxx... |
- |
MCP_TTS_PROVIDER |
TTS provider to use | openai, elevenlabs |
openai |
MCP_TTS_VOICE |
Voice selection | OpenAI: alloy, echo, ... • ElevenLabs: voice_id or exact name (case-insensitive) |
ballad |
MCP_TTS_VOICE_PRESET |
Voice style preset | default, professional, calm, nyc_cabbie, chill_surfer, cheerleader, emo_teenager, eternal_optimist, dramatic |
default |
MCP_TTS_CUSTOM_INSTRUCTIONS |
Custom voice instructions (overrides preset) | "Speak like a pirate" |
- |
MCP_TTS_SPEED |
Speech speed | OpenAI: 0.25 to 4.0 • ElevenLabs: ignored |
1.0 |
MCP_TTS_VOLUME |
Playback volume | 0.0 to 1.0 |
0.8 |
MCP_TTS_DEVICE_NAME |
Audio device name (partial match) | "Speakers", "Headphones" |
- |
MCP_TTS_DEVICE_INDEX |
Audio device index | 0, 1, 2, etc. |
- |
Tips:
voice_id.voice_id or exact voice name. Presets/instructions/speed are ignored by ElevenLabs.You can use these built-in voice style presets:
default - Clear, friendly, and conversationalprofessional - Authoritative business voicecalm - Composed, reassuring with quiet authoritynyc_cabbie - Fast-talking New Yorker with edgechill_surfer - Laid-back, mellow, effortlessly coolcheerleader - High-energy, enthusiastic, motivationalemo_teenager - Sarcastic, disinterested, melancholiceternal_optimist - Positive, solution-orienteddramatic - Low, hushed, suspenseful with theatrical flairFor advanced configuration, voice presets, troubleshooting, and development setup, see SETUP_GUIDE.md.
Status: ✅ Working with Cursor IDE • 🎵 7 TTS tools available • 🔊 Cross-platform audio • 🧩 Providers: OpenAI, ElevenLabs
This MCP server provides the following tools in Cursor:
Выполни в терминале:
claude mcp add mcp-tts -- npx Web content fetching and conversion for efficient LLM usage.
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolProvides auto-configuration for setting up an MCP server in Spring Boot applications.
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzНе уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai