Audacity4MCP
Audacity4MCP connects any MCP-compatible AI assistant to Audacity 4, giving it control over audio editing, effects, VST3 plugins, and cleanup pipelines through a locally-running TCP bridge. This is the sibling project to AudacityMCP, which does the same thing for Audacity 3.x.
No cloud. No API keys for audio processing. Everything runs locally through a TCP JSON-RPC bridge built into a custom Audacity 4 fork (Audacity4-Dev), since Audacity 4 shipped without any scripting/automation surface at all.
Status
This is early alpha, under active daily development. Expect gaps, and expect things to change.
Unlike the v3 project (mature, 144 tools, used in production podcast/mastering workflows), Audacity4MCP exists because Audacity 4.0 removed scripting entirely (no more mod-script-pipe) and shipped no replacement. This project pairs with a custom Audacity 4 fork that adds one back in from scratch, command by command, verified live against a real running instance as each piece is built.
What that means in practice:
Every command exposed here has been implemented against Audacity 4's actual current internals (not ported blindly from v3 — v4 renamed and restructured a lot) and live-tested against a running Audacity 4 instance, not just unit-tested against mocks.
Some things genuinely don't work yet or have known limitations — see Known Gaps below rather than assuming full v3 parity.
There is no packaged installer yet. You need to build the companion
Audacity4-Devfork yourself (Windows/MSVC currently the only tested toolchain).
If you want the stable, production-ready version for Audacity 3.x, use AudacityMCP instead.
Quick Start
Build and run the companion fork,
Audacity4-Dev— see its own build instructions. Itsmcpmodule starts a TCP JSON-RPC server on127.0.0.1:2212as soon as Audacity launches.Install this server:
git clone https://github.com/xDarkzx/Audacity4-MCP.git cd Audacity4-MCP pip install -e .Point your MCP client at it. For Claude Desktop / Claude Code, add to your MCP config:
{ "mcpServers": { "audacity4": { "command": "audacity4-mcp" } } }Launch Audacity4-Dev, open or create a project, and start talking to it through your AI assistant.
Full setup details: docs/INSTALLATION.md.
Architecture
AI assistant (Claude, etc.)
│ MCP (stdio)
▼
Audacity4MCP (this repo — Python, FastMCP)
│ TCP JSON-RPC, 127.0.0.1:2212
▼
Audacity4-Dev (C++ fork — src/mcp/ module)
│ dispatcher / interface calls
▼
Audacity 4 engine (tracks, effects, VST3 hosting, ...)Audacity 4 has no scripting surface of its own, so the bridge is built directly into a fork: src/mcp/internal/audacitycommandscontroller.cpp registers each command against Audacity 4's real internal interfaces (ITrackeditProject, ISelectionController, IEffectsProvider, IRealtimeEffectService, IEffectParametersProvider, etc.), and bridge_client.py on this side is a plain asyncio TCP client — no WebSocket library involved despite what the fork's module name might suggest.
Tool count is real, not aspirational — every tool below maps to a command that has been implemented and registered on the C++ side; see docs/TOOLS.md for the full, current list (156 tools as of this writing, across transport, track, edit, selection, effects, realtime/VST3 effects, generators, labels, project lifecycle, analysis, transcription, and cleanup pipelines).
Don't need all 156 in one session? Set AUDACITY4_MCP_PROFILE (e.g. cleanup, editing, mastering, transcription, minimal) in your MCP client config to load only the tools for one workflow — see Tool Profiles.
Known Gaps
VST3 realtime parameters don't reliably persist — broader than earlier believed. Originally documented as a discrete/list-parameter-only issue (e.g. Pro-Q 3's per-band "Shape" selector not sticking, with continuous params on single-band plugins like Pro-C 2/VintageVerb "verified working"). A live session against FabFilter Pro-Q 3's per-band controls (real
recent-commandslog, 2026-09-05) showed this is wrong:set_effect_parametercalls on continuous params (Band N Frequency/Gain) reported success with the exact intended value, but reading back minutes later showed them reverted toward the parameter's minimum — independent of whether that band's "Used" toggle happened to stick. Root cause is still believed to be the sameVST3Wrapper::FlushParametersno-op for active realtime effect instances (confirmed live with actual audio playback running previously), but it's not discrete-parameter-specific. Separately, also found:list_effect_parametersmisreports Pro-Q 3's per-band Frequency as"type": "Dropdown"(it's continuous) with"units": "Band N"(not "Hz") — a distinct, concrete lead in Audacity4-Dev's own VST3 parameter-metadata extraction, not yet root-caused. Fix would need to live in Audacity 4's core VST3 wrapper, not this server. Parked for now, revisit later.VST3 factory presets are usually empty.
list_effect_presetsgenuinely returns an empty list for plugins (FabFilter, Valhalla) that keep their presets inside their own custom in-plugin browser rather than the standard VST3 host-preset-list API — this matches their behavior in other DAWs too, not an Audacity-specific bug.Several v3-parity tools have no v4 engine support yet and are deliberately not implemented rather than shipped broken:
track_mix_and_render,track_stereo_to_mono,track_align_end_to_end,project_import_midi.The TCP bridge has no authentication. It's bound to
127.0.0.1only (confirmed inAudacity4-Dev'stcptransport.cpp) — not reachable over a network, and not reachable from browser JS (it's a bespoke line-delimited JSON-RPC socket, not WebSocket/HTTP, so no DNS-rebinding vector). But Windows doesn't wall off loopback TCP sockets per user session, so on a shared/multi-user machine another logged-in account (no malware needed) could talk to your already-running Audacity4-Dev instance and use it as a confused deputy to read/write files under your account. Also: the C++ handlers forproject-open/import/export/save-asdo zero path validation of their own — the absolute-path/system-directory/overwrite checks only exist in this Python layer, so anything bypassing it entirely skips those checks too. Low real risk for a single-user machine today (an attacker with code-exec as your user already has your file access directly, more easily, without going through Audacity at all); TODO before this is more widely distributed: a random shared-secret token generated on first launch and required on every request, plus duplicating the path checks server-side.A handful of v3 effects (Echo, Phaser, Wahwah, Distortion, Repeat, ChangeTempo, ChangeSpeed, Equalization, AutoDuck) have source present in the v4 fork's tree but are confirmed, via the real runtime plugin registry, to never actually compile/link into this build — they are not wrapped here since wrapping a non-existent effect is worse than not having it.
See CHANGELOG.md for the full history of what's been found and fixed.
Works With
Any MCP-compatible client: Claude Desktop, Claude Code, and any other assistant that speaks the Model Context Protocol.
License
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/xDarkzx/Audacity4-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server