CDP MCP Server logo

CDP MCP Server

Community
DavidPiazza

MCP server for the Composers' Desktop Project

PublisherDavidPiazza
RepositoryCDP_MCP
LanguagePython
Forks
3
Stars
13
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    CDP MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    13 stars and 3 forks from the linked repository.

CDP MCP Server

A Model Context Protocol (MCP) server that provides direct access to the Composers' Desktop Project (CDP) sound transformation programs. This server offers an ultra-rigid workflow with zero interpretation, exposing CDP's raw functionality through simple, reliable tools.

Overview

CDP MCP Server v7 implements a minimalist approach to CDP integration:

  • Direct execution - No command parsing or interpretation
  • Raw usage text - See exactly what CDP shows
  • Simple tools - Just 6 core functions
  • Data file support - Create parameter files for complex operations

Features

  • 🎵 Full CDP Access - Execute any CDP program with complete control
  • 📚 Program Discovery - List all available CDP programs by category
  • 📖 Usage Information - Get raw usage text directly from CDP
  • 📄 Data File Creation - Create parameter files required by CDP programs
  • 🎛️ Spectral Preparation - Helper for PVOC analysis
  • 📊 Sound Analysis - Get basic properties of audio files

Requirements

System Requirements

  • macOS, Linux, or Windows
  • Python 3.8 or higher
  • CDP (Composers' Desktop Project) installed

Python Dependencies

mcp
soundfile
numpy

CDP Installation

  1. Download CDP from the official website
  2. Install CDP following the platform-specific instructions
  3. Set the CDP_PATH environment variable to your CDP programs directory:
    bash
    export CDP_PATH="/path/to/cdp/programs"

Installation

1. Clone the Repository

bash
git clone https://github.com/DavidPiazza/CDP_MCP.git
cd CDP_MCP

2. Install Dependencies

bash
pip install -r requirements.txt

Or install individually:

bash
pip install mcp soundfile numpy

3. Configure CDP Path

Set your CDP installation path:

bash
export CDP_PATH="/Users/yourname/cdpr8/_cdp/_cdprogs"  # macOS example

4. Run the Server

bash
python CDP_MCP_v7.py

MCP Client Configuration

To use this server with an MCP client (like Claude Desktop), add to your configuration:

json
{
  "mcpServers": {
    "cdp": {
      "command": "python",
      "args": ["/path/to/CDP_MCP_v7.py"],
      "env": {
        "CDP_PATH": "/path/to/cdp/programs"
      }
    }
  }
}

Usage

Basic Workflow

  1. List Available Programs

    python
    list_cdp_programs()
    # Returns categorized list of all CDP programs
  2. Get Program Usage

    python
    get_cdp_usage('blur')
    # Returns exact CDP usage text
  3. Execute Commands

    python
    execute_cdp(['blur', 'blur', 'input.ana', 'output.ana', '50'])
    # Direct execution with no interpretation

Example Operations

Time Stretch

python
# Check usage
get_cdp_usage('stretch')

# Execute
execute_cdp(['stretch', 'time', '1', 'input.ana', 'output.ana', '2.0'])

Spectral Blur

python
# Note the double syntax for blur
execute_cdp(['blur', 'blur', 'input.ana', 'output.ana', '50'])

Granular Synthesis

python
execute_cdp(['modify', 'brassage', '4', 'input.wav', 'output.wav', '0.02', '-0.5', '-r200'])

Using Data Files

python
# Create data file for tesselate
create_data_file('tess_data.txt', '5 5 5 5\n0.0 0.1 0.2 0.3')

# Execute with data file
execute_cdp(['tesselate', 'tesselate', '1', 'in1.wav', 'in2.wav', 'in3.wav', 'in4.wav', 'output.wav', '0.5', 'tess_data.txt'])

Tools Reference

list_cdp_programs()

Lists all available CDP programs organized by category (Spectral Processing, Time Domain, Synthesis, etc.)

get_cdp_usage(program, subprogram=None)

Returns raw usage information for a CDP program by running it without arguments.

execute_cdp(command)

Executes a CDP command given as an array of strings. No parsing or interpretation.

create_data_file(filepath, content)

Creates text data files required by certain CDP programs.

prepare_spectral(input_file, output_file, window_size=2048)

Helper function to perform PVOC analysis for spectral processing.

analyze_sound(filepath)

Returns basic properties of a sound file (duration, sample rate, channels, etc.)

Architecture

The server follows an ultra-rigid design philosophy:

  • No command parsing - Commands are arrays, not strings
  • No parameter validation - CDP handles all validation
  • No output interpretation - Raw CDP output is returned
  • Minimal abstraction - Direct CDP access only

Tips

  • Always check usage with get_cdp_usage() before executing
  • CDP may return non-zero exit codes even on success
  • Check if output files exist to verify successful execution
  • Use exact command arrays - the server does no interpretation
  • Create data files when CDP usage mentions DATAFILE requirements

Troubleshooting

CDP Not Found

Ensure CDP_PATH environment variable points to your CDP programs directory.

Apple Silicon Issues

The server automatically handles x86_64 emulation on Apple Silicon Macs using arch -x86_64.

Command Failures

  1. Check the exact usage with get_cdp_usage()
  2. Verify all file paths exist
  3. Ensure proper command array format
  4. Check CDP's stderr output for specific errors

License

MIT License - See LICENSE file for details

Acknowledgments

Use CDP MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once CDP MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add CDP MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the CDP MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "cdp-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the CDP MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the CDP MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use CDP MCP Server to help me with this task?
CDP MCP Server
Sure. I read it.
Here is what I found using CDP MCP Server.

Frequently asked questions

What is the CDP MCP Server MCP server used for?

CDP MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use CDP MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use CDP MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use CDP MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With CDP MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect CDP MCP Server MCP to TypingMind?

CDP MCP Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does CDP MCP Server MCP provide in TypingMind?

CDP MCP Server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use CDP MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If CDP MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇