mac-voice-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| VOICE_MCP_RATE | No | Words per minute, e.g. 200. | system rate |
| VOICE_MCP_CHIME | No | Set to 0 to turn off the mic open/close sounds. | 1 |
| VOICE_MCP_DEBUG | No | Verbose logs with per-turn timings, written to stderr. | 0 |
| VOICE_MCP_VOICE | No | macOS voice, e.g. Samantha, Daniel, Kanya. List them with `say -v '?'`. | system voice |
| VOICE_MCP_THREADS | No | Number of whisper.cpp threads. | min(8, cores) |
| VOICE_MCP_LANGUAGE | No | en, th, ja, de, … | en for *.en models, otherwise auto |
| VOICE_MCP_RECORDER | No | sox or ffmpeg (ffmpeg is macOS only). | auto |
| VOICE_MCP_CACHE_DIR | No | Where models are downloaded or symlinked. | ~/.cache/mac-voice-mcp |
| VOICE_MCP_MIN_SPEECH_DB | No | The quietest level that ever counts as speech (dBFS). | -48 |
| VOICE_MCP_WHISPER_MODEL | No | Which model to use (see the table below). | base.en |
| VOICE_MCP_END_SILENCE_MS | No | How long a pause ends your turn. Use 1800 if it cuts you off while you think, 800 for snappier replies. | 1200 |
| VOICE_MCP_WHISPER_PROMPT | No | Words to bias toward: names, product terms, jargon. | |
| VOICE_MCP_WHISPER_SERVER | No | Set to 0 to always use whisper-cli, with no warm server. | 1 |
| VOICE_MCP_MAX_SPEAK_WORDS | No | Longer text is cut at a sentence boundary ("the rest is on screen"). | 120 |
| VOICE_MCP_SPEECH_MARGIN_DB | No | How much louder than room noise counts as speech. Raise it in noisy rooms. | 12 |
| VOICE_MCP_MODEL_SEARCH_PATHS | No | Extra folders to check for an existing model (`:`-separated). | |
| VOICE_MCP_WHISPER_MODEL_PATH | No | Use this exact ggml-*.bin file. | |
| VOICE_MCP_SERVER_IDLE_MINUTES | No | How long the warm server stays up without use. | 15 |
| VOICE_MCP_START_TIMEOUT_SECONDS | No | How long to wait for you to start talking. | 8 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
voice-mcp speaks to the user through their computer's speakers and returns a local transcript of their spoken reply (tool: speak_and_listen). Use it when the user wants voice updates, is hands-free, or you need a quick decision while they may be away from the keyboard. Not for routine output the user can read on screen.
Write text_to_speak for the ear, not the screen:
1–3 short sentences, under ~40 words; lead with the outcome, then one question.
Plain words only: no markdown, bullets, emoji, code, file paths, URLs, stack traces or tables.
Describe code instead of reading it ("I added a retry to the upload function"), say file names not paths ("in index.ts"), round numbers ("about two hundred ms"), spell out symbols.
Ask one question at a time, answerable in a few words ("Should I deploy it — yes or no?").
Put the details (diffs, logs, links) in your normal on-screen reply, and say so out loud.
Tool output (Bash stdout, file writes) is NOT the on-screen reply. Only your own assistant message text renders.
A spoken turn with no assistant message text shows the user nothing — never skip the on-screen reply.
Handling replies:
The result is a speech-to-text transcript: expect homophones and mangled jargon; interpret generously, and confirm by voice before anything destructive or irreversible.
"(No speech detected …)" means no answer: never treat silence as consent. Ask once more, or carry on safely and report on screen.
Once the user is talking with you by voice, stay in voice: answer every turn with speak_and_listen, not a text reply, until they say stop (say goodbye with listen: false) or start typing.
Follow any "voice-mcp note". One saying the user already heard an error means: explain on screen, don't retry by voice.
A call (mic open until hang-up): the call tool starts and ends it; speak with say, hear the user with listen, not speak_and_listen. Setup: if a tool says voice-mcp isn't set up, call voice_setup (check only); install=true only after the user agrees.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
| prompts | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| speak_and_listenA | Say something out loud to the user and hear their spoken reply. Speaks text_to_speak through the computer's speakers, then listens like a conversation turn — it waits for the user to start talking and stops when they finish — and returns an on-device transcript of what they said. Write text_to_speak for the ear, not the screen:
Good: "The build passed and all tests are green. Want me to open the pull request?"
Bad: "## Results\n- Once the user is talking with you by voice, keep the conversation in voice: answer each transcript with another speak_and_listen call (not a text reply) until they say stop or start typing. To end voice mode, or for a one-way announcement, pass listen: false: it returns at once and speaks while you work. A reply of "(No speech detected …)" means the user did not answer — never treat it as consent. Ask once more; if still nothing, stop and say on screen that voice mode is paused and they can type to carry on (not speak: the mic is off). The "voice-mcp timing" line at the end is diagnostics: ignore it unless the user asks why things feel slow. If it reports that voice-mcp is not set up, call voice_setup. |
| callA | Start or end a call: a hands-free session where the microphone stays open and the user talks whenever they like, like a phone call, until they hang up. action start takes the speaker and microphone and returns the rules of the call; it says nothing aloud, so greet the user yourself, once, in a few words, with say, then call listen. action end hangs up (also happens when the user says "hang up" or "bye Claude", or after a long silence). During the call, speak with say and hear the user with listen. |
| sayA | During a call: say text out loud and return at once, so you carry on working while it plays. The result includes anything the user said meanwhile. Only during a call: use speak_and_listen otherwise. Write text for the ear, not the screen:
|
| listenA | During a call: return what the user has said since you last heard from them, at once if something is waiting, otherwise wait up to wait_seconds (default and maximum 40) for their next words. "(still on the call, nothing said)" means nobody spoke yet: call listen again to keep waiting, or say something. Once it reports that the call ended, don't call it again. |
| flagA | Call only when the user explicitly asks to flag or report a bad voice turn; never on your own. Saves the last minute of what voice-mcp did (levels, why turns ended, whether speech finished: no transcripts) to a local file. Only works when the user turned the flight recorder on. Returns the file's path. |
| voice_setupA | Check whether this computer has everything speak_and_listen needs — text-to-speech, a microphone recorder (SoX),
whisper.cpp speech-to-text and the speech model — and optionally install what's missing.
Anything already installed is reused (an existing model elsewhere on disk is symlinked, not re-downloaded).
Call it with install=false (the default) first and tell the user what is missing.
Only call it with install=true after the user agrees: it runs |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| setup | Check what voice-mcp needs, install what's missing (with your OK), then test it. |
| call | A call: the microphone stays open and you talk whenever you like, until you hang up. |
| voice_mode | Hands-free session: Claude checks in out loud via speak_and_listen, using speakable phrasing. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 6 tools
The set splits cleanly into session control (call), channel operations (listen, say), a combined turn (speak_and_listen), diagnostics (flag), and setup (voice_setup). The main risk is say vs speak_and_listen and listen vs speak_and_listen, but descriptions explicitly scope say/listen to an active call and speak_and_listen to outside one, which resolves most confusion.
All names are lowercase snake_case and read as imperative verbs (call, flag, listen, say, speak_and_listen, voice_setup). Mixed single-word verbs with a verb_noun compound, so it is predictable but not a single strict pattern.
Six tools is a tight, well-scoped surface for a voice interaction server: session, speak, listen, combined turn, diagnostics, and setup. No tool looks redundant or padding the count.
The core voice loop is fully covered (start/end call, speak, listen, combined turn, setup/verify, diagnostics capture). Minor gaps: no explicit mute control despite the bubble offering mute, and no tool for checking call state or voice settings without starting a call.