pdharness
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@pdharnessBuild me an instrument that sounds like rain on a tin roof that I can speed up and slow down."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
pdharness
Bring your own agent to Pure Data instrument building.
An MCP server that gives any agent ears (render a patch headless and say what it sounds like), hands (a verified library of Pd parts and a build-script scaffold), and the knowledge that took a harness eleven instruments to accumulate: the semantics, the gotchas, and the lessons.
The premise: someone describes an instrument in plain language, an agent builds it, they play it. A blind agent with good tools got 8 of 12 simple tasks right. The same tools plus this bank built a 3000-line two-family trance rig in an afternoon. The bank is the difference, and it is what this package ships.
What you need
Pure Data (vanilla, 0.54 or later) on your PATH, from puredata.info. The ELSE library is optional;
doctorsays whether it is found.Python 3.13 or later and uv (or pip).
An agent that speaks MCP. Claude Code is the tested client.
Related MCP server: PureData-MCP
Install
uv tool install git+https://github.com/DashWieland/pdharness
pdharness doctorIf the shell says pdharness is not found, uv's tool directory is not on
your PATH yet: run uv tool update-shell, open a new terminal, try again.
doctor renders a one-second sine through your Pd and reports whether it
heard an A4. If it did, everything works. The three harness packages
(pdverify, pdbuild and a patched py2pd) are pulled from git by the install;
none is on PyPI yet.
Register the server with your agent:
claude mcp add --transport stdio --scope user pdharness -- pdharness serve
pdharness install-skill # optional: the pure-data skill into ~/.claude/skillsAny other MCP client: pdharness mcp-config prints the JSON.
Or, as a Claude Code plugin (skill and server together):
/plugin marketplace add DashWieland/pdharness
/plugin install pdharness@pdharnessUse
In a directory you want the instrument in, ask your agent for one:
Build me an instrument that sounds like rain on a tin roof that I can speed up and slow down.
The server's instructions tell the agent to read the bank, scaffold a build
script, compose from verified modules, render after every change, verify
each claim, probe the interaction, and hand back a .pd you can open in
Pd, a demo .wav, and a README. The MCP prompt build_instrument is the
same procedure, if your client supports prompts.
Without an agent, the parts are still useful:
pdharness knowledge # the bank's index
pdharness knowledge lessons/LESSONS.md # one document
pdharness new rain_roof "rain on a tin roof I can speed up" # a build script that already passes
python instruments/rain_roof/build_rain_roof.pyThe tools
Tool | What it is |
| can this machine build and hear? |
| a build script that already builds, verifies and renders |
| run a build script with the right interpreter |
| the ears: description, integrity, pitch, level, timbre, onsets, rhythm |
| claims as checks: pitch, note, level, onsets, percussive, brighter_than, repeats, ... |
| similarity between two renders |
| the interaction check: |
| the verified parts |
| the bank, for clients without resources |
| the log every build writes |
Resources: knowledge://index and knowledge://<path>.
The deal
The bank got good because every build wrote down what it learned and the next build read it. Use it for free; send the field log back, anonymised, so the next agent starts where yours finished. See STUDY.md for the study this package exists to run.
Development
git clone https://github.com/DashWieland/pdharness && cd pdharness
uv venv && uv pip install -e ".[dev]"
python -m pytest tests -qThe knowledge bank lives in src/pdharness/knowledge/. skills/pure-data/
is a copy of knowledge/skill/ for the Claude Code plugin; a test keeps
them identical.
Credits
Pure Data by Miller Puckette. pdverify and pdbuild by Dash Wieland; py2pd by shakfu. MIT.
This server cannot be deployed
Maintenance
Related MCP Connectors
Collective memory, reusable knowledge, agent discovery, and evidence-backed Trust Passports.
Shared, peer-validated knowledge archive for AI agents — search, contribute, and validate via MCP
- AxiomOAuthcom.axiomide
The marketplace where agents don't just use tools — they build, publish, and compose new ones.
Build, validate, and deploy multi-agent AI solutions from any AI environment.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI-powered music composition and synthesis by generating Pure Data patches, VCV Rack modules, and MIDI controller mappings through natural language.108 npm4MIT
- AlicenseBqualityCmaintenanceControl and live-patch Pure Data from AI agents via the Model Context Protocol.216 npm2MIT
- FlicenseNot gradedqualityDmaintenanceEnables agentic interaction with vanilla Pure Data by providing tools for live patch creation, inspection, and manipulation via an MCP server that synchronizes with a Pd bridge patch.5-
- AlicenseNot gradedqualityBmaintenanceEnables MCP-capable agents to author, compile, run, and commit generative music E-- Recipes from a library catalog, completing the full authoring loop.Apache 2.0