Summarize MCP
About
Converts text summaries to speech using OpenAI's Text-to-Speech API and plays them in the background.
Details
- Author
- fiveohhwon
- Categories
- Productivity, Other, AI
- Tags
- #openai, #text-to-speech, #audio
Jump to
"OPENAI_API_KEY environment variable is not set"
Set your OpenAI API key in the Claude Desktop configuration.
Linux users: Install one of the supported audio players:
# Ubuntu/Debian sudo apt-get install mpg123 # or sudo apt-get install sox # or sudo apt-get install ffmpeg # or sudo apt-get install vlc # Fedora/RHEL sudo dnf install mpg123 # or similar for other players # Arch sudo pacman -S mpg123 # or similar for other players
Windows/macOS: Audio playback should work out of the box.
- Check system volume
- Ensure no other audio issues on your system
- Enable debug logging withDEBUG=true
- Check the logs for any errors
- π Complete rewrite in Python for better cross-platform support
- π§ Improved async handling with Python's asyncio
- π¦ Simplified installation with pip
- π‘οΈ Enhanced type safety with Pydantic
- π Better performance and reliability
- πΎ Added persistent state management for voice and tone preferences
- π― Addedset_voicetool to set default voice
- π― Addedset_tonetool to set default speaking instructions
- π Added support for new OpenAI voices: ash, ballad, and sage
- πplay_summarynow uses saved preferences unless overridden
- π State saved to~/.summarize-mcp-state.json
- π Added Windows support using PowerShell/Windows Media Player
- π§ Added Linux support with auto-detection of audio players
- π Added fallback to system default audio player
- π Updated documentation for multi-platform usage
- π Initial release
- β¨ Core TTS functionality with OpenAI integration
- β¨ Support for 7 different voices
- β¨ Custom speaking instructions
- β¨ Background audio playback on macOS
- β¨ Automatic file cleanup
- β¨ TypeScript implementation
- β¨ Comprehensive error handling
This tool uses OpenAI'sgpt-4o-mini-ttsmodel for text-to-speech conversion. Here's the pricing breakdown:
- 100-word summary(~30 seconds): ~$0.0075
- 500-word summary(~2.5 minutes): ~$0.0375
- 1000-word summary(~5 minutes): ~$0.075
- Length of your summaries
- Speaking speed (instructions can affect this)
- How frequently you use the tool
For current pricing details, seeOpenAI's pricing page.
- Cross-platform audio playback (Windows, Linux)
- Python implementation for better cross-platform support
- Additional TTS providers (ElevenLabs, Amazon Polly)
- Audio format options (WAV, OGG)
- Playback control (pause, resume, stop)
- Queue management for multiple summaries
- Audio file caching
- Speed and pitch controls
- SSML support for advanced speech control
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
- Fork the repository
- Create your feature branch (git checkout -b feature/amazing-feature)
- Commit your changes (git commit -m 'Add some amazing feature')
- Push to the branch (git push origin feature/amazing-feature)
- Open a Pull Request
This project is licensed under the MIT License - see theLICENSEfile for details.
- Built on theModel Context Protocolspecification by Anthropic
- Powered byOpenAI's TTS API
- Special thanks to the MCP community for inspiration and support
AI-powered text-to-speech MCP server with instant voice cloning. Generate speech from Claude Desktop, Claude Code, or n8n using 5 built-in voices (English, German, French, Spanish) or clone any voice from a short audio sample. Runs fully local, no API keys, no cloud. Supports stdio, SSE, and HTTP transports.
Enables voice interactions with Claude and other LLMs using an OpenAI API key for STT/TTS services.
A wrapper for OpenAI's built-in tools, enabling functionalities like web search and code execution. Requires an OpenAI API key.
A server implementing Chain of Draft reasoning for enhanced problem-solving capabilities using OpenAI.
An AI voice toolkit with TTS, voice cloning, and video translation, now available as an MCP server for smarter agent integration.
AI traffic control plane (chaos governor): Redis prompt replay, compliant web ingest, SSO org ledger, Agent Shell. BYOK OpenAI-compatible ingress. Cursor optional; MCP is a compatibility client.
Access GPT-5, Claude, Gemini and other models through a single MCP connection. Save development time and money on subscriptions.
Universal tool adapter β @tool decorator exports Python functions to OpenAI, Claude, Gemini, MCP, JSON Schema. Audit token costs.
Standing review layer for coding agents: Claude, GPT and Gemini debate each answer and return one recommendation plus the strongest dissent.
614 million contacts, live SMTP-verified. Invalid emails cost you $0. Connect Argorant with any Agent through CLI, MCP or API and build verified lists in Claude, GPT or Hermes.
π€Co-authored withClaude Code- Making AI summaries audible since 2025! π
A Model Context Protocol (MCP) server that converts text summaries to speech using OpenAI's TTS API and plays them in the background across all major platforms (macOS, Windows, Linux).
summarize-mcp enables LLMs to convert any text summary into natural-sounding speech using OpenAI's state-of-the-art text-to-speech models. Perfect for creating audio summaries of documents, articles, or any content that benefits from an auditory presentation.
- π― Simple & Focused: One tool that does one thing exceptionally well
- π€ Multiple Voices: Choose from 10 distinct OpenAI voices (alloy, ash, ballad, coral, echo, fable, nova, onyx, sage, shimmer)
- π¨ Custom Instructions: Control how the text should be spoken
- π§ Background Playback: Audio plays in the background without blocking
- π Cross-Platform: Works on macOS, Windows, and Linux
- πΎ Persistent Preferences: Save your favorite voice and tone settings
- π― Multiple Tools: Set voice, set tone, and play summaries
- π§Ή Automatic Cleanup: Temporary files are cleaned up automatically
- π‘οΈ Type-Safe: Full Python type hints with Pydantic validation
- π Comprehensive Logging: Debug mode for troubleshooting
- β‘ Performance Optimized: Efficient file handling and cleanup
- Python3.8 or higher
- OpenAI API Keywith access to TTS models
- Audio Player(automatically detected):
- macOS: Built-inafplay(no installation needed)
- Windows: Built-in Windows Media Player (no installation needed)
- Linux: One of:mpg123,sox(play),ffmpeg(ffplay),vlc(cvlc), oralsa-utils(aplay)
git clone https://github.com/FiveOhhWon/summarize-mcp.git cd summarize-mcp pip install -e .
Add this configuration to your Claude Desktop config file:
macOS:~/Library/Application Support/Claude/claude_desktop_config.json
Windows:%APPDATA%\Claude\claude_desktop_config.json
Linux:~/.config/Claude/claude_desktop_config.json
{ "mcpServers": { "summarize": { "command": "python", "args": ["/absolute/path/to/summarize-mcp/src/summarize_mcp/server.py"], "env": { "OPENAI_API_KEY": "your-openai-api-key" } } } }
- OPENAI_API_KEY(required): Your OpenAI API key
- DEBUG(optional): Set to"true"for verbose logging
Converts text to speech and plays it in the background. Uses saved voice and tone preferences unless overridden.
- summary(required): The text to convert to speech
- voice(optional): Voice to use -alloy,ash,ballad,coral,echo,fable,nova,onyx,sage, orshimmer(uses saved preference if not specified)
- instructions(optional): Instructions for how the text should be spoken (uses saved tone if not specified)
{ "summary": "The quick brown fox jumps over the lazy dog. This pangram contains all letters of the alphabet.", "voice": "nova", "instructions": "Speak slowly and clearly, emphasizing each word." }
Set the default voice for all future text-to-speech conversions.
- voice(required): The voice to use -alloy,ash,ballad,coral,echo,fable,nova,onyx,sage, orshimmer
Set the default tone/instructions for how text should be spoken in all future TTS requests.
- tone(required): The tone/instructions to use (e.g., "Speak slowly and calmly", "Be enthusiastic and energetic")
{ "tone": "Speak in a warm, friendly manner with moderate pacing" }
"Please summarize this article and play it as audio"
- Generate a summary of the content
- Use theplay_summarytool to convert it to speech
- The audio will play in the background with saved preferences
"Set the default voice to nova"
This will save "nova" as your preferred voice for all future summaries.
"Set the tone to be warm and conversational with a slower pace"
This will save your tone preference for all future summaries.
"Summarize this document and play it using the 'sage' voice"
This will use "sage" for this summary only, without changing your default.
"Create an audio summary of this text. Make it sound enthusiastic and energetic."
This will use custom instructions for this summary only.
# Install dependencies pip install -r requirements.txt # Install in development mode pip install -e . # Run the server python -m summarize_mcp # Run tests python test.py # Run with debug logging DEBUG=true python -m summarize_mcp
summarize-mcp/ βββ src/ β βββ summarize_mcp/ β βββ __init__.py # Package initialization β βββ __main__.py # Entry point for python -m β βββ server.py # Main MCP server implementation βββ pyproject.toml # Python project metadata βββ requirements.txt # Python dependencies βββ test.py # Test script βββ README.md # This file
- Audio Format: MP3 (OpenAI TTS output format)
- Temporary Files: Stored in system temp directory
- File Cleanup: Automatic cleanup after 10 seconds (configurable)
- Old File Purge: Files older than 1 hour are cleaned on startup
- Platform Support:
- macOS: Uses built-inafplay
- Windows: Uses PowerShell with Windows Media Player
- Linux: Auto-detects available player (mpg123, sox, ffmpeg, vlc, alsa)
- Fallback: Opens with system default audio application
- Preferences saved to~/.summarize-mcp-state.json
- Persists voice and tone settings between sessions
- Automatic loading on startup
"OPENAI_API_KEY environment variable is not set"
Set your OpenAI API key in the Claude Desktop configuration.
Linux users: Install one of the supported audio players:
# Ubuntu/Debian sudo apt-get install mpg123 # or sudo apt-get install sox # or sudo apt-get install ffmpeg # or sudo apt-get install vlc # Fedora/RHEL sudo dnf install mpg123 # or similar for other players # Arch sudo pacman -S mpg123 # or similar for other players
Windows/macOS: Audio playback should work out of the box.
- Check system volume
- Ensure no other audio issues on your system
- Enable debug logging withDEBUG=true
- Check the logs for any errors
- π Complete rewrite in Python for better cross-platform support
- π§ Improved async handling with Python's asyncio
- π¦ Simplified installation with pip
- π‘οΈ Enhanced type safety with Pydantic
- π Better performance and reliability
- πΎ Added persistent state management for voice and tone preferences
- π― Addedset_voicetool to set default voice
- π― Addedset_tonetool to set default speaking instructions
- π Added support for new OpenAI voices: ash, ballad, and sage
- πplay_summarynow uses saved preferences unless overridden
- π State saved to~/.summarize-mcp-state.json
- π Added Windows support using PowerShell/Windows Media Player
- π§ Added Linux support with auto-detection of audio players
- π Added fallback to system default audio player
- π Updated documentation for multi-platform usage
- π Initial release
- β¨ Core TTS functionality with OpenAI integration
- β¨ Support for 7 different voices
- β¨ Custom speaking instructions
- β¨ Background audio playback on macOS
- β¨ Automatic file cleanup
- β¨ TypeScript implementation
- β¨ Comprehensive error handling
This tool uses OpenAI'sgpt-4o-mini-ttsmodel for text-to-speech conversion. Here's the pricing breakdown:
- 100-word summary(~30 seconds): ~$0.0075
- 500-word summary(~2.5 minutes): ~$0.0375
- 1000-word summary(~5 minutes): ~$0.075
- Length of your summaries
- Speaking speed (instructions can affect this)
- How frequently you use the tool
For current pricing details, seeOpenAI's pricing page.
- Cross-platform audio playback (Windows, Linux)
- Python implementation for better cross-platform support
- Additional TTS providers (ElevenLabs, Amazon Polly)
- Audio format options (WAV, OGG)
- Playback control (pause, resume, stop)
- Queue management for multiple summaries
- Audio file caching
- Speed and pitch controls
- SSML support for advanced speech control
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
- Fork the repository
- Create your feature branch (git checkout -b feature/amazing-feature)
- Commit your changes (git commit -m 'Add some amazing feature')
- Push to the branch (git push origin feature/amazing-feature)
- Open a Pull Request
This project is licensed under the MIT License - see theLICENSEfile for details.
- Built on theModel Context Protocolspecification by Anthropic
- Powered byOpenAI's TTS API
- Special thanks to the MCP community for inspiration and support
AI-powered text-to-speech MCP server with instant voice cloning. Generate speech from Claude Desktop, Claude Code, or n8n using 5 built-in voices (English, German, French, Spanish) or clone any voice from a short audio sample. Runs fully local, no API keys, no cloud. Supports stdio, SSE, and HTTP transports.
Enables voice interactions with Claude and other LLMs using an OpenAI API key for STT/TTS services.
A wrapper for OpenAI's built-in tools, enabling functionalities like web search and code execution. Requires an OpenAI API key.
A server implementing Chain of Draft reasoning for enhanced problem-solving capabilities using OpenAI.
An AI voice toolkit with TTS, voice cloning, and video translation, now available as an MCP server for smarter agent integration.
AI traffic control plane (chaos governor): Redis prompt replay, compliant web ingest, SSO org ledger, Agent Shell. BYOK OpenAI-compatible ingress. Cursor optional; MCP is a compatibility client.
Access GPT-5, Claude, Gemini and other models through a single MCP connection. Save development time and money on subscriptions.
Universal tool adapter β @tool decorator exports Python functions to OpenAI, Claude, Gemini, MCP, JSON Schema. Audit token costs.
Standing review layer for coding agents: Claude, GPT and Gemini debate each answer and return one recommendation plus the strongest dissent.
614 million contacts, live SMTP-verified. Invalid emails cost you $0. Connect Argorant with any Agent through CLI, MCP or API and build verified lists in Claude, GPT or Hermes.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





