Pure Data MCP Server
A Model Context Protocol (MCP) server for Pure Data, an open-source visual programming language and patchable environment for real-time computer music.
nikmaniatis
README
Pure Data MCP Server
This project provides integration between Claude AI and Pure Data through the Model Context Protocol (MCP). With this integration, Claude can dynamically create, modify, and control Pure Data patches through natural language.
Known Issues
The example patch (example patch.pd
) is not working correctly.
Overview
The system consists of three core components:
- MCP Server (
mcp_server.py
): Implements the Model Context Protocol interface for Claude - OSC Daemon (
osc_daemon.py
): Handles OSC communication with Pure Data - Pure Data Patch (
absolute_final_solution.pd
): A dynamic patching solution that receives OSC messages
Features
- Dynamic Object Creation: Create any Pure Data object on demand through Claude
- Connection Management: Connect objects together to build complex signal flows
- DSP Control: Start and stop audio processing remotely
- Parameter Control: Modify parameters of objects in real-time
- Global Object Tracking: Reliable index-based connection system
- Error Handling: Robust error detection and reporting
- Debugging Tools: Comprehensive logging system
Recent Updates
Installation
Prerequisites
- Python 3.7+
- Pure Data (vanilla) 0.51+
- Required Python packages:
python-osc
fastmcp
jsonschema
uv
package manager
Install uv
On macOS and Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
On Windows (PowerShell):
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
Learn more: astral-sh/uv
🛠️ Usage
Clone the repository
git clone https://github.com/nikmaniatis/Pd-MCP-Server.git
Integration with Claude Desktop
- Open:
Claude > Settings > Developer > Edit Config > claude_desktop_config.json
- Add the following block:
{
"mcpServers": {
"Pure Data MCP Server": {
"command": "uv",
"args": [
"--directory",
"PATH_TO_PD_MCP_SERVER",
"run",
"main.py"
],
"env": {
"PD_OSC_HOST": "127.0.0.1",
"PD_OSC_PORT": "5000",
"PD_FEEDBACK_PORT": "5001"
}
}
}
}
Note: If the
uv
command is not found, runwhich uv
(Unix) orGet-Command uv
(PowerShell) and use the full path in the"command"
field.
Architecture
Message Flow
- Claude executes MCP tools based on user requests
- MCP Server processes the tool calls
- OSC messages are formatted and sent to Pure Data
- Pure Data executes the commands via the dynamic patch
- Feedback (if any) is returned via OSC callbacks
Troubleshooting
Common Issues
- Object Creation Fails: Ensure Pure Data is running and the patch is open
- Connection Issues: Verify that object IDs match exactly what was returned from
create_object
- Port Conflicts: Check if port 5000 is already in use
- Message Format Errors: Ensure message formats match the expected format in the Pure Data patch
- Lost Objects: If object tracking gets confused, try restarting both the MCP server and Pure Data
JSON Schema
The pd-schema.json
provides a comprehensive data model for Pure Data patches, supporting validation and serialization of patches. While not directly used in the current MCP tools, it serves as a reference for future development and potential integration with patch serialization/deserialization features.
Next Steps
- Enhanced Error Reporting: Improve feedback from Pure Data for better error messages
- Visualization Tools: Add tools to visualize the current patch state
- Object Library Integration: Support loading external libraries and abstractions
- Patch Persistence: Implement better state management for patches
- Audio File Support: Add tools for working with audio files and samples
- MIDI Integration: Add MIDI input/output capabilities
- GUI Object Support: Add support for GUI objects like sliders and number boxes
- Collaborative Features: Support multiple simultaneous connections
- Documentation Generator: Create automatic documentation from the JSON schema
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgements
- Pure Data - The open source visual programming language
- Model Context Protocol - The protocol enabling AI tools
- Python-OSC - Python implementation of OSC
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
MCP Package Docs Server
Facilitates LLMs to efficiently access and fetch structured documentation for packages in Go, Python, and NPM, enhancing software development with multi-language support and performance optimization.
Claude Code MCP
An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.
@kazuph/mcp-taskmanager
Model Context Protocol server for Task Management. This allows Claude Desktop (or any MCP client) to manage and execute tasks in a queue-based system.
Linear MCP Server
Enables interaction with Linear's API for managing issues, teams, and projects programmatically through the Model Context Protocol.
mermaid-mcp-server
A Model Context Protocol (MCP) server that converts Mermaid diagrams to PNG images.
Jira-Context-MCP
MCP server to provide Jira Tickets information to AI coding agents like Cursor

Linear MCP Server
A Model Context Protocol server that integrates with Linear's issue tracking system, allowing LLMs to create, update, search, and comment on Linear issues through natural language interactions.

Sequential Thinking MCP Server
This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.