MCP Voice Notification

MCP Voice Notification

Provides voice notifications using Grok's text-to-speech API to alert users when Claude Code completes tasks, with support for both local and remote server configurations.

Category
Visit Server

README

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 (afplay on macOS, aplay/paplay on Linux)

Installation

  1. Clone the repository:

    git clone https://github.com/orishu/mcp-voice-notif.git
    cd mcp-voice-notif
    
  2. Install dependencies with uv:

    uv sync
    
  3. Set 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:

claude mcp add voice-notification -e GROK_API_KEY=your_api_key_here -- \
  uv run --directory /path/to/mcp-voice-notif python stdio_server.py

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):

{
  "mcpServers": {
    "voice-notification": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/mcp-voice-notif", "python", "stdio_server.py"],
      "env": {
        "GROK_API_KEY": "your_api_key_here"
      }
    }
  }
}

Option 2: HTTP Server (For remote/shared use)

The HTTP server runs as a persistent service, useful for remote access or shared setups.

  1. Start the server:

    uv run python server.py
    

    The server will start on http://127.0.0.1:8000.

  2. 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):

When you complete a task, use the voice_notification tool to alert the user.
Keep the message short and contextual (e.g., "Build done!", "Tests passed!", "Ready!").

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:

uv run python test_voice_api.py

License

MIT License - see LICENSE for details.

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

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.

Official
Featured
Python
graphlit-mcp-server

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.

Official
Featured
TypeScript
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured