Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Voice Notificationnotify me when the build is complete"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Voice Notification
An MCP server that provides voice notifications using the Grok Voice API. Perfect for alerting you when Claude Code has finished a task.
Features
Text-to-speech voice notifications via Grok's realtime voice API
Works with Claude Code and other MCP-compatible clients
Two server modes: HTTP (streamable) or stdio (local)
Cross-platform audio playback (macOS, Linux)
Prerequisites
uv (Python package manager)
A Grok API key from x.ai
Audio playback capability (
afplayon macOS,aplay/paplayon Linux)
Installation
Clone the repository:
git clone https://github.com/orishu/mcp-voice-notif.git cd mcp-voice-notifInstall dependencies with uv:
uv syncSet up your environment:
cp env.sample .env # Edit .env and add your GROK_API_KEY
Usage
Option 1: Stdio Server (Recommended for local use)
The stdio server communicates via standard input/output, which is the simplest setup for local MCP clients.
Using the claude mcp add command (Recommended)
The easiest way to add the server is using the Claude Code CLI:
Replace /path/to/mcp-voice-notif with the actual path to this project.
Manual configuration
Alternatively, add to your Claude Code MCP configuration (~/.claude/claude_code_config.json):
Option 2: HTTP Server (For remote/shared use)
The HTTP server runs as a persistent service, useful for remote access or shared setups.
Start the server:
uv run python server.pyThe server will start on
http://127.0.0.1:8000.Add to your Claude Code MCP configuration:
{ "mcpServers": { "voice-notification": { "type": "streamable-http", "url": "http://127.0.0.1:8000/mcp" } } }
Tool Reference
voice_notification
Generates and plays a voice notification.
Parameters:
text(string, optional): The text to speak. Default: "Done!"
Example responses:
"Voice notification played: 'Build complete!'"
"No audio data received from API"
Configuring Claude Code to Use Voice Notifications
To have Claude Code automatically notify you when it's ready for your next prompt, add the following to your project's CLAUDE.md file (or global ~/.claude/CLAUDE.md):
This instructs the agent to call the voice notification with a brief, task-relevant message whenever it finishes working.
Testing
To test the voice API directly:
License
MIT License - see LICENSE for details.