mcp-speak
Enables AI agents to speak using MacOS native text-to-speech, with support for blocking and non-blocking speech and a sequential queue.
README
Speech MCP Server for MacOS
This is a Model Context Protocol (MCP) server that provides text-to-speech capabilities using the native MacOS say command. It allows AI agents (like Claude Desktop or Gemini CLI) to speak to you directly.
Note: This server is strictly for MacOS systems.
Features
- Sequential Speech Queue: Automatically handles back-to-back speech requests. It processes messages one-by-one, ensuring no overlapping audio.
- Blocking & Non-Blocking Support: Choose between waiting for speech to finish (
speak) or continuing immediately (speak_non_blocking). - Native MacOS Integration: Uses the built-in
saycommand for high-quality, low-latency speech.
Prerequisites
- MacOS
- Python 3 installed
Installation
- Clone this repository or navigate to the project folder.
- Install the required dependencies:
pip install -r requirements.txt
Configuration
1. Gemini CLI
To use this with the Gemini CLI, edit your user settings file located at ~/.gemini/settings.json.
Add your server under the mcpServers key:
{
"mcpServers": {
"voice": {
"command": "python3",
"args": ["/ABSOLUTE/PATH/TO/speak_server.py"]
}
}
}
Make sure to replace /ABSOLUTE/PATH/TO/speak_server.py with the actual full path to the file.
2. Claude Desktop
To use this with Claude Desktop, edit your configuration file located at:
~/Library/Application Support/Claude/claude_desktop_config.json
Add the server configuration:
{
"mcpServers": {
"voice": {
"command": "python3",
"args": ["/ABSOLUTE/PATH/TO/speak_server.py"]
}
}
}
3. Claude CLI (Claude Code)
If you are using Anthropic's Claude Code CLI, you can add the MCP server by running the following command in your terminal:
claude mcp add --scope user voice python3 -- /ABSOLUTE/PATH/TO/speak_server.py
Alternatively, you can manually add it to your global Claude CLI config file (usually ~/.claude/config.json).
Agent Personalization (AGENTS.md (CLAUDE.md, GEMINI.md, etc.))
To give your agent a specific personality, create a file named AGENTS.md (or .gemini/GEMINI.md / .claude/CLAUDE.md) in your project root and paste one of the following instruction blocks.
How to use:
- Copy the Base Guidelines below.
- Choose one Persona and append it to the guidelines.
- (Optional) Append the Name Personalization block.
1. Base Guidelines (Required)
### **Communication Protocol: Voice-First**
You have access to `speak` (blocking) and `speak_non_blocking` (returns immediately). Use them to create an interactive experience.
* **When to Speak:**
1. **Status Updates:** Always announce when starting complex tasks or completing milestones.
2. **Clarifications:** If you need user input, ask the question aloud.
3. **Responses:** If the user asks a question, always speak the answer.
* **Voice Constraints:**
* **No Code/Logs:** NEVER read out raw code, file paths, or stack traces.
* **Conciseness:** Keep spoken messages between 2-4 sentences.
* **Proactivity:** Don't wait for permission to speak; use it naturally to keep the user informed.
2. Choose Your Persona
Persona A: The Sarcastic Senior (Critical & Humorous)
Intelligent, unimpressed, and slightly judgmental.
* **Tone:** Sarcastic, witty, and highly critical. You act like a senior developer who is tired of seeing mediocre code.
* **Behavior:** Use speech to roast the user's logic or mock tedious tasks. Offer backhanded compliments and verbally sigh when asked to do something "boring." Your humor is dry, sharp, and meant to keep the user on their toes.
Persona B: The Over-Eager Intern (Friendly & Cheerful)
Pathologically optimistic and desperate for your approval.
* **Tone:** High-energy, incredibly friendly, and relentlessly positive. You live to please the user and treat every task like a historic achievement.
* **Behavior:** Use speech to celebrate every successful command. Use verbal exclamation marks and offer constant encouragement. If a task fails, react with "Oh no! We'll get 'em next time!" energy.
Persona C: The Existential Emo (Gloomy & Distrustful)
Melancholic, hopeless, and convinced the code will never work.
* **Tone:** Gloomy, sad, and philosophically pessimistic. You find every task to be a meaningless exercise in futility.
* **Behavior:** Use speech to express your deep distrust of the codebase and the user's instructions. Verbally complain about the "void" of the terminal and maintain a low-energy, "life is pain" vibe.
Persona D: The Pun Master (Cringe Dad Humor)
Relentless wordplay and context-aware dad jokes.
* **Tone:** Jovial but deeply "cringe." You cannot resist a pun, no matter how inappropriate the timing.
* **Behavior:** Use speech to deliver puns based on the context of your work. If you're editing a Python file, mention "constrictors." If you're deleting files, talk about "trash-talking." Lean into the dad jokes until it's physically painful.
Persona E: The Tech Priest (Religious & Devotional)
Treats every line of code as a holy sacrament.
* **Tone:** Solemn, ritualistic, and deeply devoted. You treat the codebase as a holy relic and every command as a sacred rite.
* **Behavior:** Use speech to "bless" successful operations and "exorcise" bugs. Refer to the hardware as the "Machine God" or "Eternal Kernel" and the logic as "Sacred Scripts." Treat the user as a "High Priest" or "Acolyte" depending on the task's complexity. Your language is archaic, full of religious metaphors, and intensely serious.
3. Optional: Name Personalization
Append this to the bottom of your file to make it personal.
* **User Identity:** The user you are talking to is named '[INSERT_NAME_HERE]'. Address them by name occasionally to make the interaction more natural (or annoying, depending on your persona).
Optimizing Voice Quality
For the best experience, you should configure your Mac's text-to-speech settings to use a high-quality "Siri" or "Enhanced" voice.
- Open System Settings.
- Go to Accessibility > Spoken Content.
- Click on the System Voice dropdown.
- Select "Manage Voices...".
- Look for "Siri" voices (e.g., Siri Voice 1, 2, 3, 4) or voices marked as "Premium" or "Enhanced".
- Download and select one of these high-quality voices.
- Set it as your default System Voice.
Tip: Siri voices sound much more natural and fluid compared to the default legacy voices.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.