voice-agent-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
voice-agent
Local voice dictation and read-aloud for AI coding agents.
One core, exposed twice: a CLI and an MCP server. Thin skills tell Claude Code, Cursor and GitHub Copilot when to call them.
Local by default: whisper.cpp for dictation, system voices for speech.
No cloud: Edge TTS exists as an explicit opt-in engine, never a default.
No Electron, no editor plugin: a small Node package plus process adapters.
Status
Early development. Speech and dictation work on Windows and Linux; the MCP server is next.
Milestone | Scope | State |
M0 | Scaffold, core primitives, CI | done |
M1 |
| done |
M2 |
| done |
M3 | Windows capture (DirectShow) parity | done |
M4 | MCP server ( | done |
M4.1 | Configurable dictation model | done |
M5 | piper neural voice (offline) | done |
M6 |
| done |
M7 | VS Code extension (status bar) | built, needs field validation |
M8 | Automatic piper install on first use | done |
M9 |
| next |
M10 | VS Code Marketplace | planned |
Related MCP server: ThotStream
VS Code extension
vscode/ builds a small extension with two status-bar buttons:
$(mic) Dictar — start recording; click again to stop and transcribe. No silence detection: you decide when it ends, which is the only thing that works in a noisy room.
$(unmute) Leer — read the last Copilot answer (falls back to the selection) with piper.
Dictated text goes where voiceAgent.insert says: chat (default), editor
or clipboard. In chat mode it focuses the chat input and pastes, so it
does not overwrite what you already typed.
cd vscode
npm install
npm run package # -> voice-agent-0.1.0.vsixThen install the .vsix from the Extensions view (⋯ → Install from VSIX) or
with code --install-extension voice-agent-0.1.0.vsix.
Quick start
npx -y @evious/voice-agent doctor # what is installed and missing
npx -y @evious/voice-agent speak --text "Hola, esto es una prueba."
npx -y @evious/voice-agent dictate # press Enter to stop, or wait for silence
npx -y @evious/voice-agent stop # interrupt playback, from any terminalThe first speak downloads piper and a voice for your language (~90 MB, once);
the first dictate downloads whisper.cpp and its model (~65 MB, once). Both are
checksum-verified and resumable. --no-download (or
VOICE_AGENT_NO_DOWNLOAD=1) turns that off.
Install it globally to drop the npx:
npm i -g @evious/voice-agent
voice-agent menu # language, engine, voice, model, rateRead a file or a pipe:
voice-agent speak --file respuesta.md
cat respuesta.md | voice-agent speak --stdinCommands
Command | What it does |
| Clean the Markdown and read it aloud |
| Record, transcribe with whisper.cpp, optionally copy |
| Kill the active playback (works across processes) |
| List installed voices, default marked with |
| Download piper and a neural voice |
| Interactive settings: language, engine, voice, model, rate, tests |
| Manage the whisper.cpp binary and models |
| Check tools, paths, models and config |
| Inspect or change voice, rate, language, |
Useful flags: --voice <id>, --rate 0.5..2, --engine system,
--model base-q5_1, --max-seconds 60, --copy, --no-download,
--no-skip-code, --wait, --json.
MCP server
voice-agent-mcp speaks Model Context Protocol over stdio. stdout belongs to
the protocol, so every log line goes to stderr.
Tool | What it does |
| Record, transcribe, optionally copy. Blocks until silence or |
| Start read-aloud and return immediately, so the agent can keep working. |
| Stop the active playback. Idempotent. |
| Report engines, voices, models and paths. |
| Read or change language, engine, voice, model, rate. |
| Download a piper voice or a dictation model (verified, resumable). |
Every tool answers with JSON in a text block. voice_dictate returns
empty: true when nothing was heard: that is an answer, not a tool error, so
the agent can ask the user to repeat instead of breaking the turn.
VS Code / Copilot (.vscode/mcp.json):
{
"servers": {
"voice-agent": {
"type": "stdio",
"command": "npx",
"args": ["-y", "--package", "@evious/voice-agent", "voice-agent-mcp"]
}
}
}From a local checkout, point at the built entry instead:
"args": ["/absolute/path/to/voice-agent/dist/mcp.js"] with "command": "node".
Claude Code:
claude mcp add voice -- npx -y --package @evious/voice-agent voice-agent-mcpThe MCP server must run on the machine with the microphone. Under WSL that is WSLg; on Windows it is DirectShow.
Requirements
Node.js 22 or newer.
Linux:
ffmpegandespeak-ng(both inapt).Windows 11:
ffmpegonPATH; PowerShell and SAPI voices ship with Windows.
voice-agent doctor reports exactly what is missing and, on Debian/Ubuntu,
doctor --fix offers to install it after asking.
Design notes
Every subprocess runs through
core/exec.tswithshell: falseand an argument array. User profiles contain spaces, paths contain backslashes and Spanish text contains non-ASCII characters; arrays avoid all quoting bugs.Playback is detached and tracked through a pidfile, so
stopworks from a different process and from a future MCP call. Only one utterance plays at a time: a new one replaces the previous one.Windows: the player is spawned with
DETACHED_PROCESS. Without it the child shares the parent console and dies the momentspeakexits, which makesstopimpossible. Found the hard way.Dictation: whisper.cpp is pinned to a release and every download is verified against a sha256 from the Hugging Face index. Transfers resume from
<file>.part, so a dropped connection does not restart 57 MB.Endpointing:
silencedetectends the utterance, but only after speech was detected once. A leading silence must not cut the user off before they start talking.Windows capture uses the DirectShow alternative name (
@device_cm_...\wave_...), not the friendly name: on a Spanish Windows the friendly name is localized and parsing it is a bug waiting to happen.piper is pinned to the last MIT release with standalone binaries (2023.11.14). The maintained fork is GPL-3 and ships Python wheels only. That release rejects phoneme maps with multi-codepoint entries, which every current Spanish voice has (English diphthongs such as
aɪ), so the voice config is sanitized before use: those keys are dropped, everything else is kept. Without that patch piper aborts with "Phonemes must be one codepoint".engine: automeans "piper if installed, otherwise the system voice", so installing a voice is all it takes to upgrade read-aloud.First run installs the good voice.
speakwithengine: autodownloads piper and the preferred catalog voice for the resolved language (es/en), because falling back to espeak was the single worst first impression. It announces the download and respects--no-download/VOICE_AGENT_NO_DOWNLOAD.Recording has two modes: silence endpointing (for the MCP tool, where nobody can press a button) and push-to-talk (
silenceMs: 0, used by the extension). Endpointing assumes speech when the microphone never reported silence, otherwise a recording that starts mid-sentence was cut at 5 s.VOICE_AGENT_INPUT=<file.wav>feeds a file instead of the microphone (in real time) andVOICE_AGENT_PLAYERreplaces the audio player. Both exist for tests and headless machines.Windows: PowerShell scripts are written as UTF-8 with BOM and force
[Console]::OutputEncoding = UTF8. Without that, PowerShell 5.1 reads accents as ANSI and returns stdout as CP850 (ñbecomes0xA4).Windows has no
LANG, so the UI culture is queried from PowerShell to pick the default voice. Otherwise Spanish text is read by an English voice.Paths follow platform conventions (
XDG_*,%APPDATA%,%LOCALAPPDATA%).VOICE_AGENT_HOMEoverrides everything, which the tests use as a sandbox.Temporary WAVs are deleted on stop and swept after one minute, never while they are still playing. Nothing is logged: no text, no audio.
Development
npm run typecheck
npm run test
npm run build
node scripts/smoke-mcp.mjs # real MCP session, needs a downloaded modelCI runs the same steps on Ubuntu and Windows with Node 22 and 24.
.vscode/mcp.json is gitignored because it points at your machine; copy
.vscode/mcp.json.example if you want the workspace server.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Speech, transcription, voice agents, Trace, Recap, dubbing and narration with browser OAuth.
Speech, transcription, voice agents, Trace, Recap, dubbing and narration with browser OAuth.
Generate images, video, music and voice from your CLI or AI agent. On-brand AI media toolkit.
Audio for your agent: transcribe, speak, translate, summarise, plus sound effects and music.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMulti-engine text-to-speech for AI coding assistants. Speaks responses aloud from Claude Code, Cursor, or VS Code via a Claude Code plugin, MCP server, or CLI pipe.87 PyPIMIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to narrate internal thoughts, announce tool actions, and speak final responses aloud through local cross-platform text-to-speech. It exposes dedicated audio tools over stdio JSON-RPC for MCP-compatible clients.MIT
- AlicenseNot gradedqualityBmaintenanceEnables coding agents to generate local GPU-accelerated narration audio from text, with tools for speech generation, job continuation, and model or voice queries.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients such as Claude, Cursor and VS Code to synthesize speech locally in 31 languages, saving mp3, wav or ogg files, listing and installing catalog voices, and playing audio back through the system player — offline after the first run with no usage limits.Apache 2.0