MCP Connector

Enable Voice Conversations for Claude Code

MCP server adding natural voice conversations to Claude Code - speak and listen instead of typing.

Works with openaigithublivekit

90
Spark score
out of 100
Updated 16 days ago
Version 8.11.0
Models
claudeuniversal

Add to Favorites

Why it matters

Integrate natural voice conversations into your AI coding assistant, allowing you to ask questions and receive spoken responses. This enhances interaction with code generation and review tools.

Outcomes

What it gets done

01

Enable voice input and output for Claude Code.

02

Utilize local or cloud-based STT/TTS services compatible with OpenAI API.

03

Facilitate real-time, low-latency voice interactions.

04

Seamlessly integrate with MCP-compatible AI assistants.

Install

Add it to your toolbox

Run in your project directory:

curl -fsSL https://spark.entire.vc/get/vb-voicemode | bash

Overview

VoiceMode MCP Server

An MCP server that adds natural voice conversations to Claude Code - speaking and hearing responses instead of typing. It runs fully offline via local Whisper (speech-to-text) and Kokoro (text-to-speech) services, or falls back to OpenAI's cloud APIs. Use when your hands or eyes are busy - walking, cooking, or resting your eyes - and you want to keep working with Claude Code by voice.

What it does

VoiceMode is an MCP server that adds natural voice conversations to Claude Code and other MCP-capable agents - speaking and hearing responses instead of typing, with smart silence detection that stops recording once you stop speaking and low enough latency to feel like a real conversation.

When to use - and when NOT to

Use it when your hands or eyes are busy - walking to a meeting, cooking while debugging, resting your eyes after screen time, or holding a coffee or a dog - and you want to keep working with Claude Code by voice instead of typing. It works entirely offline via local speech services, or with cloud services via an OpenAI API key fallback, so you can choose based on privacy needs. Requires a computer with a microphone and speakers; runs on Linux, macOS, Windows (native or WSL), and NixOS, with Python 3.10-3.14.

Capabilities

Two MCP tools/permissions surfaced to Claude Code: mcp__voicemode__converse (the voice conversation itself) and mcp__voicemode__service (managing the local voice services), which can be pre-approved in ~/.claude/settings.json to skip permission prompts. Local voice services - Whisper.cpp for speech-to-text and Kokoro for text-to-speech (multiple voices) - expose the same API shape as OpenAI's cloud services, so VoiceMode switches between local and cloud seamlessly. A VOICEMODE_SAVE_AUDIO=true environment variable saves conversation audio to ~/.voicemode/audio/YYYY/MM/ for debugging.

How to install

Recommended: the Claude Code plugin.

# Add the VoiceMode marketplace
claude plugin marketplace add mbailey/voicemode

# Install VoiceMode plugin
claude plugin install voicemode@voicemode

Install dependencies (CLI, Local Voice Services)

/voicemode:install

Start talking!

/voicemode:converse


Alternatively, install the Python package directly: install the `uv` package manager, run `uvx voice-mode-install` (sets up dependencies and local voice services), register it with `claude mcp add --scope user voicemode -- uvx --refresh --from voice-mode voicemode-mcp-launcher`, optionally export `OPENAI_API_KEY` as a cloud fallback, then run `claude converse`. System audio dependencies vary by platform (`ffmpeg`, `portaudio`, and `pulseaudio` packages via `apt`, `dnf`, `brew`, or `nix`); WSL2 users specifically need the pulseaudio packages for microphone access. Troubleshooting common issues: verify terminal/app microphone permissions, re-run the `uv` installer if `uv` isn't found, confirm `OPENAI_API_KEY` is set correctly for cloud fallback errors, and check system audio devices if there's no output. The project is MIT-licensed.

Who it's for

Claude Code users who want a hands-free, eyes-free way to work with their AI assistant - talking naturally instead of typing, with the option to run entirely local for privacy or fall back to cloud speech services when needed.

Source README

VoiceMode

Natural voice conversations with Claude Code (and other MCP capable agents)

PyPI Downloads
PyPI Downloads
PyPI Downloads

VoiceMode enables natural voice conversations with Claude Code. Voice isn't about replacing typing - it's about being available when typing isn't.

Perfect for:

  • Walking to your next meeting
  • Cooking while debugging
  • Giving your eyes a break after hours of screen time
  • Holding a coffee (or a dog)
  • Any moment when your hands or eyes are busy

See It In Action

VoiceMode Demo

Quick Start

Requirements: Computer with microphone and speakers

Option 1: Claude Code Plugin (Recommended)

The fastest way for Claude Code users to get started:

# Add the VoiceMode marketplace
claude plugin marketplace add mbailey/voicemode

# Install VoiceMode plugin
claude plugin install voicemode@voicemode

## Install dependencies (CLI, Local Voice Services)

/voicemode:install

# Start talking!
/voicemode:converse

Option 2: Python installer package

Installs dependencies and the VoiceMode Python package.

# Install UV package manager (if needed)
curl -LsSf https://astral.sh/uv/install.sh | sh

# Run the installer (sets up dependencies and local voice services)
uvx voice-mode-install

# Add to Claude Code
claude mcp add --scope user voicemode -- uvx --refresh --from voice-mode voicemode-mcp-launcher

# Optional: Add OpenAI API key as fallback for local services
export OPENAI_API_KEY=your-openai-key

# Start a conversation
claude converse

For manual setup, see the Getting Started Guide.

Features

  • Natural conversations - speak naturally, hear responses immediately
  • Works offline - optional local voice services (Whisper STT, Kokoro TTS)
  • Low latency - fast enough to feel like a real conversation
  • Smart silence detection - stops recording when you stop speaking
  • Privacy options - run entirely locally or use cloud services

Compatibility

Platforms: Linux, macOS, Windows (native or WSL), NixOS
Python: 3.10-3.14

Configuration

VoiceMode works out of the box. For customization:

# Set OpenAI API key (if using cloud services)
export OPENAI_API_KEY="your-key"

# Or configure via file
voicemode config edit

See the Configuration Guide for all options.

Permissions Setup (Optional)

To use VoiceMode without permission prompts, add to ~/.claude/settings.json:

{
  "permissions": {
    "allow": [
      "mcp__voicemode__converse",
      "mcp__voicemode__service"
    ]
  }
}

See the Permissions Guide for more options.

Local Voice Services

For privacy or offline use, install local speech services:

  • Whisper.cpp - Local speech-to-text
  • Kokoro - Local text-to-speech with multiple voices

These provide the same API as OpenAI, so VoiceMode switches seamlessly between them.

Installation Details

System Dependencies by Platform
Ubuntu/Debian
sudo apt update
sudo apt install -y ffmpeg gcc libasound2-dev libasound2-plugins libportaudio2 portaudio19-dev pulseaudio pulseaudio-utils python3-dev

WSL2 users: The pulseaudio packages above are required for microphone access.

Fedora/RHEL
sudo dnf install alsa-lib-devel ffmpeg gcc portaudio portaudio-devel python3-devel
macOS
brew install ffmpeg node portaudio
NixOS
# Use development shell
nix develop github:mbailey/voicemode

# Or install system-wide
nix profile install github:mbailey/voicemode
Alternative Installation Methods
From source
git clone https://github.com/mbailey/voicemode.git
cd voicemode
uv tool install -e .
NixOS system-wide
# In /etc/nixos/configuration.nix
environment.systemPackages = [
  (builtins.getFlake "github:mbailey/voicemode").packages.${pkgs.system}.default
];

Troubleshooting

Problem Solution
No microphone access Check terminal/app permissions. WSL2 needs pulseaudio packages.
UV not found Run curl -LsSf https://astral.sh/uv/install.sh | sh
OpenAI API error Verify OPENAI_API_KEY is set correctly
No audio output Check system audio settings and available devices

Save Audio for Debugging

export VOICEMODE_SAVE_AUDIO=true
# Files saved to ~/.voicemode/audio/YYYY/MM/

Documentation

Full documentation: voicemode.dev

Links

FAQ

Common questions

Discussion

Questions & comments ยท 0

Sign In Sign in to leave a comment.