voice-coding-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-coding-mcp
A small remote MCP server that lets you drive Claude Code hands-free from the voice mode of the Claude apps. You add it to Claude as a custom connector (a remote MCP server you add yourself); when you ask for something in one of your projects, the server runs headless Claude Code (claude -p) inside that project and returns a short answer meant to be read aloud. Longer tasks run in the background and you ask for the result later.
Not affiliated with Anthropic. "Claude" and "Claude Code" are used only to describe what this project works with.
It runs in one of two modes:
Mac mode (main): the server runs on your own Mac, next to your own Claude Code sessions, and is published through Tailscale Funnel only while you switch it on (
deploy/mac/vcm-mac onandoff). Besides running tasks, it can list your live Claude Code sessions, answer questions about them and pass messages into them.VPS mode (alternative): the server runs on a Linux VPS behind Caddy, with its own copies of your projects. Your own computer is not exposed, but the server cannot reach your local sessions, and work that needs macOS is not possible there.
Risks in short. Whoever holds a valid token for the connector can run Claude Code on that machine with the server user's rights. In Mac mode that is your own macOS user, and your Mac is reachable from the internet while the Funnel is on. Your Claude account holds those tokens, so it becomes a key to your machine. Prompt injection in files Claude Code reads can make a task act against you. Read Security before you deploy.
Requirements
Both modes:
uv and Python 3.12. On the Mac uv installs Python 3.12 itself on first use; on the VPS
deploy/setup.shuses Ubuntu's.Claude Code installed for the user the server runs as.
A Claude plan that supports custom connectors.
Mac mode:
macOS with the Tailscale app, signed in, with MagicDNS, HTTPS certificates and Funnel enabled for the tailnet.
curl and jq. jq ships with macOS 15 and later; otherwise
brew install jq.Claude Code signed in as your user, as you use it anyway.
VPS mode:
A Linux server with a public IP and a DNS name. The runbook targets Oracle Cloud Always Free (Ampere A1, 2 OCPU, 12 GB, Ubuntu 24.04 aarch64); any Ubuntu 24.04 host works.
deploy/setup.shinstalls a pinned uv release and uses Ubuntu's Python 3.12.A Claude subscription token from
claude setup-tokenfor the service user.Caddy (or another TLS reverse proxy) in front of the server.
Related MCP server: Raz
Quick start
Full steps for both modes are in docs/DEPLOY.md.
Mac mode (main)
git clone https://github.com/HonzaPavel/voice-coding-mcp.git && cd voice-coding-mcp
mkdir -p ~/.config/voice-coding-mcp
cp config.example.json ~/.config/voice-coding-mcp/config.json && chmod 600 ~/.config/voice-coding-mcp/config.json
# edit it: stateDir and projectRoots under your home directory, claude.bin (or set VCM_CONFIG to use another path)
# publicUrl does not matter here: vcm-mac on sets it to your ts.net address
deploy/mac/vcm-mac on # starts the server, opens the Funnel, prints the connector URL and the pair command
uv run voice-coding-mcp pair --config ~/.config/voice-coding-mcp/config.json
# Claude: Settings, Connectors, Add custom connector, URL https://<machine>.<tailnet>.ts.net/mcp
deploy/mac/vcm-mac off # when you are doneThen, once:
In the connector's settings in Claude, set every tool to "Always allow". Otherwise voice mode stops to ask for confirmation.
Open
claudeonce in each project folder and accept the trust prompt. Headless runs do not ask, but reopening a task withresume_task_in_remote_controlneeds a trusted folder.
Enter the pairing code only on a consent page that your own Claude app opened right after you ran pair. A page that asks for a code you did not just create, or that you reached from a link, is not yours: close it.
VPS mode (alternative)
sudo git clone https://github.com/HonzaPavel/voice-coding-mcp.git /opt/voice-coding-mcp
sudo /opt/voice-coding-mcp/deploy/setup.sh vcm.example.com
# install Claude Code as vcm, run `claude setup-token`, put the token into /etc/voice-coding-mcp/env
sudo systemctl enable --now voice-coding-mcp
sudo voice-coding-mcp pair
# Claude: Settings, Connectors, Add custom connector, URL https://vcm.example.com/mcpThe full runbook, including deploy keys and the Claude side of pairing, is Part B of DEPLOY.md.
Turning it off and revoking access
Mac:
deploy/mac/vcm-mac offcloses the Funnel and stops the server. Tokens stay valid, sovcm-mac onworks again without pairing.VPS:
sudo systemctl stop voice-coding-mcp(anddisableto keep it off after a reboot).voice-coding-mcp unpaircloses an open pairing window early.voice-coding-mcp revoke-all --yesremoves every client and token; the connector has to be paired again.voice-coding-mcp statuslists the connected clients. On the Mac add--config <path>, on the VPS usesudo voice-coding-mcp ....
If something is compromised
If you suspect that someone else used the connector, that a task was manipulated, or that your Claude account was accessed:
Remove the connector in Claude (Settings, Connectors).
Run
voice-coding-mcp revoke-all --yes.Stop the server:
deploy/mac/vcm-mac offon the Mac,sudo systemctl stop voice-coding-mcpon the VPS.Look for persistence as the user Claude Code runs as: shell profiles (
~/.zshrc,~/.bashrc,~/.profileand similar),~/Library/LaunchAgentson the Mac or user systemd units on Linux,crontab -l,~/.claude/settings.json(hooks and allow rules), and git hooks (.git/hooks) in every project.On a VPS, replace the
claude setup-tokentoken in/etc/voice-coding-mcp/envwith a new one.Pair again only after that.
Security
This server lets whoever holds a valid OAuth token run Claude Code on the machine it runs on. The details and known limits are in DESIGN.md, Security model; to report a vulnerability see SECURITY.md.
Only the owner can pair. A client can only be added during a short pairing window (10 minutes by default) opened on the machine itself with
voice-coding-mcp pair, using a one-time code. An IP is locked out after 5 wrong codes, and the window closes after 50 wrong codes in total. Outside the window/authorizeand/registerare closed. No static bearer tokens. Pair, then let the window close.Mac mode exposes your Mac. While the Funnel is on, everything the server answers on its port (MCP, OAuth, health check) is reachable at a public
https://<machine>.<tailnet>.ts.netaddress. Every MCP call needs a token, but a bug in this server or its dependencies would be reachable from anywhere. Keep the Funnel off when you are not using it.Tasks run with the server user's rights. In Mac mode that is your own macOS user: Claude Code can read and change everything you can, within its permission mode (
autoby default, never bypassed). Nothing in this project sandboxes it further. Headless runs cannot ask, so anything that would need your approval is denied unless a rule you configured allows it: withclaude.settingSources["user"]your own~/.claude/settings.jsonapplies, including its allow rules and hooks. On the VPS only the root-owned managed settings count.VPS mode isolates your own computer. Claude Code runs as a dedicated user without sudo, the server code is owned by root and the systemd unit is hardened, so a compromise reaches that server and what you put there, not your Mac. Give that user only per-repository deploy keys.
Untrusted input. Voice input and everything Claude Code reads are treated as data, never as approval; nothing is approved by voice. By default (
claude.accessisolated) Claude Code runs with--strict-mcp-config, without claude.ai connectors and without project or local settings from the repository (hooks from cloned repositories do not run). Projects can only be picked from configured roots.claude.accessdesktopgives voice tasks everything your desktop Claude Code has. All your claude.ai connectors (mail, calendar, issue trackers and so on), your user, plugin and approved project MCP servers, and in folders you trusted in Claude Code also the project and local settings (including their hooks). Only the voice server itself is excluded. A prompt injection in something a task reads then meets all of these. Turn it on only if you want that;ask_session_readonlyand message relays stay isolated either way. See REFERENCE.md.Live sessions are reachable (Mac mode). The server can list your recent Claude Code sessions, answer questions from a read-only copy and send messages into running ones, but only for sessions whose working directory is inside
projectRoots. A relayed message is marked as coming from another session, not from you. Treat access to the connector like access to your terminal.Your Claude account is a key. The connector's tokens are stored in your Claude account, so anyone with access to that account can run tasks on your machine.
The address will be found. The HTTPS certificate puts the host name into public Certificate Transparency logs, and scanners probe it within minutes. In VPS mode Caddy can optionally limit everything except
/authorizeto Claude's egress range160.79.104.0/21; Mac mode has no such restriction.Known limit: tasks can reach the server state. Claude Code runs as the same user as the server, so a task that gets code execution (for example through prompt injection) could rewrite
oauth.jsonorpairing.jsoninstateDirand keep access, or persist in other ways. On the Mac nothing in this project prevents it; on the VPS root-owned managed settings and denied cron/at reduce it. If in doubt, follow If something is compromised.Secrets and logs. Tokens, codes and secrets are stored only as SHA-256 hashes, and logs show tokens only as a short fingerprint. Prompts and Claude's stderr are logged only when
logPromptsis on. Notifications send the project name, and withnotify.includeResultthe result text, to the third party innotify.url.Accepted trade-offs. A refresh repeated within 60 s of a rotation gets the same answer (Claude may refresh twice at once); later reuse revokes the grant. Anyone can tell whether a pairing window is open, and while it is open a stranger who knows the URL can disrupt pairing (availability only, never access): keep windows short and run
pairagain.
How it works
Mac mode: phone, Claude app (voice) -> Anthropic -> Tailscale Funnel (HTTPS, *.ts.net)
-> voice-coding-mcp on 127.0.0.1:8787 on your Mac -> `claude -p` per task in <projectRoot>/<project>
VPS mode: phone, Claude app (voice) -> Anthropic -> HTTPS (Caddy, Let's Encrypt)
-> voice-coding-mcp on 127.0.0.1:8787 on the VPS -> `claude -p` per task in <projectRoot>/<project>The Claude app talks to the server over MCP Streamable HTTP, authenticated with OAuth 2.1. Claude can register through CIMD or DCR; both work.
Each task is one
claude -pprocess in the project directory. The prompt goes in through stdin, the spoken answer comes back from Claude Code's stream-json output.Voice mode gives up on a tool call after roughly 30 to 40 seconds, so
run_taskwaits up to 25 s (tasks.syncWaitSeconds). If Claude Code is still working, it returns a task number and the model asks for the result withget_task_result. An optional push notification (for example ntfy) tells you when a long task is done.Follow-up requests in the same project continue the same Claude Code session if it was active within the last 12 hours (
tasks.resumeWithinHours).Single owner, single process, state in JSON files. The full contract is in docs/DESIGN.md.
Tools
list_projects: project names.run_task,run_tasks_parallel: run Claude Code in a project (up to 3 at once); short tasks answer directly, longer ones return a task number.get_task_result,list_tasks,cancel_task: follow and cancel tasks.list_sessions,ask_session_readonly,send_message_to_session: your own Claude Code sessions on the same machine (Mac mode): list them, ask a read-only copy, or pass a message into a running one.resume_task_in_remote_control: reopen a finished task with Remote Control, so you can continue it by typing in the Claude app.run_taskwithremote_control: start a task as a new Remote Control session you can watch, approve and continue in the Claude app (ask for it by voice, for example "run it so I can follow it on the phone").
Push notifications on the phone
Claude Code's own push notifications reach the phone only for Remote Control sessions (run_task with remote_control, or a task reopened with resume_task_in_remote_control), not for headless tasks. Turn them on once on the machine: run claude in a terminal, type /config, and turn on "Push when Claude decides" and "Push when actions required". On the phone, allow notifications for the Claude app, signed in to the same account.
Remote Control sessions start only in folders Claude Code trusts: run claude once in each project folder on the machine and confirm the trust question.
Sessions are named <title> (voice <task number>), where the title is a short label the voice model makes up from your request (<project> (voice <task number>) without one). Voice sessions stay open until you cancel their task. To have idle ones stopped, set remoteControl.idleCloseMinutes (off by default, for example 60). It is meant to pair with remoteControl.handoffToDesktop: true on a Mac, which opens each stopped voice session in the Claude desktop app, so it stays in the app's session list.
Details, the configuration keys, the CLI and the HTTP endpoints are in docs/REFERENCE.md.
Development
uv sync --locked # Python 3.12 venv in .venv, exact versions from uv.lock
uv run pytest
uv run ruff check
uv run ruff format --check
uv run mypy --strict src testsLayout: the package is in src/voice_coding_mcp, tests in tests, deployment files in deploy, the design contract in docs/DESIGN.md. Tests need no network and use a fake claude executable. CI runs the same commands (uv sync --locked fails if uv.lock is out of date) on Linux (x86_64 and arm64) and macOS, and checks the deploy scripts with shellcheck. Dependencies resolve only to releases at least 14 days old; for an urgent security fix see Dependency updates.
Status
Prototype. Several behaviors of the Claude voice mode still need to be verified with the real app (see To verify with the real app).
Security issues: please report them privately, see SECURITY.md.
License
MIT, see LICENSE.
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
Your AI apps as one team: hand work to Codex or Claude Code on your Mac, with a shared logbook.
Share context and questions between Claude instances — VS Code, claude.ai web, and mobile.
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Create projects, nodes, and tasks in UluP Spaces by conversation with Claude.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables bidirectional voice interaction for Claude Code using local speech-to-text and text-to-speech models optimized for Apple Silicon. It provides tools to listen to user speech via microphone and speak responses aloud through system speakers.16Apache 2.0
- AlicenseNot gradedqualityDmaintenanceVoice interface for Claude Code enabling hands-free, conversational interaction entirely on-device for Apple Silicon Macs. It provides push-to-talk transcription and automatic spoken responses via local AI models.MIT
- AlicenseNot gradedqualityBmaintenanceEnables voice-driven control of coding agents via Claude on your phone, allowing status checks, stand-ups, sending prompts, and receiving push notifications when agents finish or need decisions.MIT
- AlicenseNot gradedqualityBmaintenanceEnables the Claude mobile app's voice mode to send spoken requests to Claude Code running headless on a Mac and receive concise, read-aloud answers, while preserving access to the Mac's files, CLIs, notes, and other tools through a secure remote MCP connection.2MIT