Skip to main content

Audacity4MCP

AI-powered audio editing in Audacity 4 through the Model Context Protocol

Python 3.10+ License MCP Compatible Early alpha

StatusQuick StartArchitectureTool ReferenceKnown Gaps


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-Dev fork 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

  1. Build and run the companion fork, Audacity4-Dev — see its own build instructions. Its mcp module starts a TCP JSON-RPC server on 127.0.0.1:2212 as soon as Audacity launches.

  2. Install this server:

    git clone https://github.com/xDarkzx/Audacity4-MCP.git
    cd Audacity4-MCP
    pip install -e .
    
  3. Point your MCP client at it. For Claude Desktop / Claude Code, add to your MCP config:

    {
      "mcpServers": {
        "audacity4": {
          "command": "audacity4-mcp"
        }
      }
    }
    
  4. 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 (130+ tools as of this writing, across transport, track, edit, selection, effects, realtime/VST3 effects, generators, labels, project lifecycle, analysis, transcription, and cleanup pipelines).

Known Gaps

  • VST3 realtime discrete parameters don't stick. Continuous parameters (frequency, gain, Q, threshold, ratio, attack/release, mix) on realtime VST3 effects (tested against FabFilter Pro-Q 3 / Pro-C 2, Valhalla VintageVerb) can be read and set correctly, verified via independent re-reads. But discrete/list-type parameters (e.g. Pro-Q 3's per-band "Shape" selector: Bell/Low Shelf/High Shelf/etc.) do not persist — root-caused to VST3Wrapper::FlushParameters in Audacity's own VST3 host code being a no-op for any realtime effect instance (which stays mActive == true for its whole life), confirmed live by testing with actual audio playback running. Fix would need to live in Audacity 4's core VST3 wrapper, not this server. Parked for now.
  • VST3 factory presets are usually empty. list_effect_presets genuinely 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_edit_metadata, project_import_midi, project_export_labels.
  • 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

Apache 2.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

audacity4_mcp-0.1.0.tar.gz (74.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

audacity4_mcp-0.1.0-py3-none-any.whl (52.6 kB view details)

Uploaded Python 3

File details

Details for the file audacity4_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: audacity4_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 74.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for audacity4_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5284599aa620f4052f5b8a88984b25308a504deecf783fb6e49fa3dd312a8904
MD5 e551e636a79e0927be9183b5bf755587
BLAKE2b-256 f4c19196741f2d07a222e6646641dd763d61362270d965f48f00a6d799561027

See more details on using hashes here.

Provenance

The following attestation bundles were made for audacity4_mcp-0.1.0.tar.gz:

Publisher: publish.yml on xDarkzx/Audacity4-MCP

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file audacity4_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: audacity4_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 52.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for audacity4_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 158bca59b61b9d92350733b7214fab357c81cc51b042b88274ca26e0c501177d
MD5 6c2ca193eb00bd01f0d88febdf12a2cc
BLAKE2b-256 7e1a6ff69556892c96d8810eb1d0b02292d36d122f17b384285d5501707b10eb

See more details on using hashes here.

Provenance

The following attestation bundles were made for audacity4_mcp-0.1.0-py3-none-any.whl:

Publisher: publish.yml on xDarkzx/Audacity4-MCP

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page