polynodes-osc-mcp
This server enables AI assistants to control PolyNodes spatial sonic synthesis parameters via OSC, exposing a set of MCP tools for adjusting playback, mixing, effects, and navigation.
Playback control: Play/stop, set BPM, select preset slots (1-10).
Mixer and layers: Set gain per macro/meso/micro layer (-80 to 20 dB), adjust dry/wet, solo layers.
Timing and envelope: Set playback rate (with per-layer ranges), envelope times, modulation ranges.
Granular synthesis: Toggle granulator, set duration and modulation range.
Filters: Enable/disable bandpass and comb filters, set frequencies/delays and modulation.
DSP interactables: Toggle and set force for Black Hole, White Hole, Ring Mod, Bitcrusher, Resonator.
Cuboid FX: Switch cubes (1-3) on/off, set return levels.
IsoMorph modulation: Toggle, set depth, bandpass center.
Navigation and triggers: Random navigation, rearrange trigger, poly gates.
Tuning: Apply tuning scales to playback rate or resonator.
Camera: Zoom and rotate the 3D view.
Raw OSC: Send arbitrary OSC messages, and list available OSC addresses.
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., "@polynodes-osc-mcp Play and set BPM to 120"
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.
polynodes-osc-mcp
MCP (Model Context Protocol) server for controlling PolyNodes by sonicLAB via OSC.
This server enables AI assistants like Claude to control PolyNodes' spatial sonic synthesis parameters through natural language.
Requirements
Python 3.10+
PolyNodes running and receiving OSC (default
127.0.0.1:4799)
Related MCP server: SuperCollider OSC MCP
Setup
Claude Code
Add to your project's MCP servers:
claude mcp add polynodes-osc-mcp -- uv run --directory /path/to/polynodes-osc-mcp python server.pyOr manually add to your Claude Code settings:
{
"mcpServers": {
"polynodes-osc-mcp": {
"type": "stdio",
"command": "uv",
"args": ["run", "--directory", "/path/to/polynodes-osc-mcp", "python", "server.py"]
}
}
}Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"polynodes-osc-mcp": {
"command": "uv",
"args": ["run", "--directory", "/path/to/polynodes-osc-mcp", "python", "server.py"]
}
}
}OSC connection
Override the default host and port with environment variables:
Variable | Default | Description |
|
| PolyNodes OSC host |
|
| PolyNodes OSC port |
API (v0.2)
Two tools and one resource replace the previous per-parameter tool list:
Name | Type | Description |
| tool | Batch-set one or more params in a single OSC burst |
| tool | Send any OSC address/value (escape hatch) |
| resource | JSON catalog of param names, OSC addresses, ranges, and per-layer requirements |
Read polynodes://catalog when unsure of param names or valid ranges. Per-layer params (gain, playback_rate, filter_freq, etc.) require level: macro, meso, or micro. Switches accept 0/1 or bool.
Param categories include transport, gain, envelope, playback rate, granulator, filters, DSP interactables (Black Hole, White Hole, Ring Mod, Crusher, Resonator), Cuboid FX, IsoMorph, navigation, tuning, and camera.
Usage Examples
Once configured, you can control PolyNodes with natural language:
"Play and set BPM to 120"
"Turn on the Black Hole and set macro force to 0.8"
"Enable the granulator with duration 500"
"Set macro playback rate to 0.5 and meso to 2.0 in one batch"
Example polynodes_set batch:
[
{"param": "play", "value": 1},
{"param": "bpm", "value": 120},
{"param": "blackhole", "value": true},
{"param": "blackhole_force", "level": "macro", "value": 0.8}
]Development
uv sync --extra dev
pytestLicense
MIT
Available Tools
45 toolspolynodes_blackhole_forceBIdempotent
Set Black Hole gravitational force per layer (0.0-1.0).
Args: params: level and value.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_blackhole_switchCIdempotent
Turn the Black Hole DSP interactable on or off.
Args: params: state.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_camera_rotateCIdempotent
Rotate the 3D camera (value in radians).
Args: params: value.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_camera_zoomCIdempotent
Zoom the 3D camera (positive=in, negative=out).
Args: params: value.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_comb_switchBIdempotent
Turn comb filter on/off for a layer.
Args: params: level and state.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_crush_bit_levelCIdempotent
Set bitcrusher bit depth level (0.0-1.0).
Args: params: value.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_crush_rangeCIdempotent
Set bitcrusher sampling frequency range (0.0-5.0).
Args: params: value.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_crush_switchBIdempotent
Turn Bitcrusher/Decimater on or off.
Args: params: state.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_cuboid_return_levelCIdempotent
Set cuboid FX return level per layer (1.0-80.0).
Args: params: level and value.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_cuboid_switchAIdempotent
Turn a cuboid (C1/C2/C3) on or off.
Args: cube: 1, 2, or 3. state: 0.0=off, 1.0=on.
Returns: JSON confirmation.
Inputs: cube (required), state (required). Returns: result
polynodes_filter_switchBIdempotent
Turn bandpass filter on/off for a layer.
Args: params: level and state.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_gain_soloAIdempotent
Solo a specific layer (macro/meso/micro).
Args: params: level and state (1.0=solo, 0.0=unsolo).
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_granular_durationCIdempotent
Set granular chunk duration (10-1000).
Args: params: value.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_granular_duration_mod_rangeCIdempotent
Set granular duration modulation range (0.0-0.75).
Args: params: value.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_granular_switchBIdempotent
Turn the granulator on or off.
Args: params: state 1.0=on, 0.0=off.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_isomorph_bp_centerCIdempotent
Set isomorphic bandpass center frequency (0-5000).
Args: params: value.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_isomorph_mod_depthBIdempotent
Set isomorphic modulation depth for freq/amp/res (0.0-2.0).
Args: params: param and value.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_isomorph_mod_switchBIdempotent
Turn on/off a specific isomorphic modulation target (freq/amp/res).
Args: param: 'freq', 'amp', or 'res'. state: 0.0 or 1.0.
Returns: JSON confirmation.
Inputs: param (required), state (required). Returns: result
polynodes_isomorph_switchCIdempotent
Turn IsoMorph modulation on or off.
Args: params: state.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_list_osc_addressesARead-onlyIdempotent
List all available PolyNodes OSC addresses and their parameter ranges.
Returns: JSON with all OSC addresses grouped by category.
Inputs: no named parameters. Returns: result
polynodes_play_stopAIdempotent
Start or stop PolyNodes playback.
Args: params: state=1.0 to play, state=0.0 to stop.
Returns: JSON confirmation of the sent OSC message.
Inputs: params (required). Returns: result
polynodes_poly_gates_switchBIdempotent
Turn Poly Gates on or off (BPM-synced layer gating).
Args: params: state.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_preset_slotBIdempotent
Select a preset slot (1-10) on PolyNodes.
Args: params: slot number 1-10.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_rearrange_triggerCIdempotent
Trigger Re-Arr mode (rearranges input sample chunks).
Args: params: state.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_resonator_balanceBIdempotent
Set resonator wet/dry balance (0.0-0.5).
Args: params: value.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_resonator_freq_distCIdempotent
Set resonator frequency distribution (1.0-3.0).
Args: params: value.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_resonator_switchBIdempotent
Turn Resonator on or off.
Args: params: state.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_ringmod_freqCIdempotent
Set ring modulator center frequency per layer (1.0-3.0).
Args: params: level and value.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_ringmod_switchAIdempotent
Turn Ring Modulator on or off.
Args: params: state.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_send_raw_oscAIdempotent
Send a raw OSC message to PolyNodes. Use this for any OSC address.
Args: address: Full OSC address path. value: Float value.
Returns: JSON confirmation.
Inputs: value (required), address (required). Returns: result
polynodes_set_bpmBIdempotent
Set the sequencer BPM (10-300).
Args: params: value.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_set_comb_delayBIdempotent
Set comb filter delay. Macro: 10-3000, Meso: 10-1000, Micro: 10-300.
Args: params: level and value.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_set_comb_mod_rangeCIdempotent
Set comb filter modulation range (0.0-0.75).
Args: params: level and value.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_set_dry_wetBIdempotent
Set the dry/wet balance (0.0=dry original, 1.0=wet synthesis).
Args: params: value 0.0-1.0.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_set_envelope_timeCIdempotent
Set attack/decay envelope time for macro/meso/micro agents (0.01-0.5).
Args: params: level and value.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_set_filter_freqCIdempotent
Set bandpass filter center frequency (80-8000 Hz).
Args: params: level and value.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_set_filter_mod_rangeBIdempotent
Set bandpass filter modulation range (0.0-0.75).
Args: params: level and value.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_set_gainBIdempotent
Set gain for a macro/meso/micro layer (-80 to 20 dB).
Args: params: level ('macro','meso','micro') and value in dB.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_set_playback_rateBIdempotent
Set playback rate for agents. Macro: 0.3-10, Meso: 0.3-20, Micro: 0.3-30.
Args: params: level and value.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_set_playback_rate_mod_rangeCIdempotent
Set the stochastic modulation range for playback rate (0.0-0.75).
Args: params: level and value.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_tuning_pb_switchCIdempotent
Turn tuning scale application on PB rate on or off.
Args: params: state.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_tuning_res_switchCIdempotent
Turn tuning scale application on resonator filter on or off.
Args: params: state.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_whitehole_forceBIdempotent
Set White Hole reflection force per layer (0.0-1.0).
Args: params: level and value.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
polynodes_whitehole_switchBIdempotent
Turn the White Hole DSP interactable on or off.
Args: params: state.
Returns: JSON confirmation.
Inputs: params (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 45 tools
Most tools target distinct parameters (e.g., set_gain vs set_dry_wet), but the 45-tool set includes many similar switch/set tools that could be confused without careful reading. The presence of send_raw_osc overlaps with every specific tool, creating potential ambiguity.
All tools use snake_case with a polynodes_ prefix, but naming patterns mix verb-first (set_gain) and noun-first (granular_switch, gain_solo) conventions. This inconsistency makes it harder to predict tool names.
45 tools is excessive for a single server; many parameters could be consolidated into generic setters or handled via send_raw_osc. The count falls well above the 25+ threshold for 'too many'.
The surface covers a wide range of synthesis parameters and includes list_osc_addresses and send_raw_osc for full control. Missing read/query tools and preset save operations are minor gaps given the raw OSC escape hatch.
Maintenance
Related MCP Connectors
MCP server for Producer/Riffusion AI music generation
Remote MCP server exposing your Node Command fleet (files, shell, processes, browser) to AI hosts.
MCP server that lets your AI assistant build and deploy apps, hosting each one at a live URL.
MCP server for AI dialogue using various LLM models via AceDataCloud
Related MCP Servers
- AlicenseDqualityDmaintenanceA Model Context Protocol server that allows AI assistants like Claude and Cursor to create music and control Sonic Pi programmatically through OSC messages.220 npm19MIT
- AlicenseBqualityBmaintenanceEnables AI assistants to control SuperCollider audio synthesis via OSC, supporting melody, rhythm, and soundscape generation through MCP tools.1338 PyPI28MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI-powered music generation and control of Sonic Pi through natural language requests using OSC.-
- AlicenseNot gradedqualityCmaintenanceMCP server that enables natural language control of Ableton Live for music production, including track, clip, device, automation, and mixing operations.10MIT