CDP MCP Serverのロゴ

CDP MCP Server

コミュニティ
DavidPiazza

MCP server for the Composers' Desktop Project

公開者DavidPiazza
リポジトリCDP_MCP
言語Python
フォーク
3
スター
13
利用可能なツール
0
通信方式stdio
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    CDP MCP Serverは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには13件のスターと3件のフォークがあります。

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

CDP MCP ServerのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度CDP MCP Serverに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

CDP MCP Serverをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. CDP MCP ServerのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "cdp-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてCDP MCP ServerのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. CDP MCP ServerのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
CDP MCP Serverを使ってこのタスクを手伝ってもらえますか?
CDP MCP Server
はい、読みました。
CDP MCP Serverで調べた結果をお伝えします。

よくある質問

CDP MCP Server MCPサーバーは何に使いますか?

CDP MCP Serverは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでCDP MCP Server MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでCDP MCP Serverを利用できます。

TypingMindでCDP MCP Server MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。CDP MCP Serverを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

CDP MCP Server MCPをTypingMindに接続するにはどうすればよいですか?

CDP MCP ServerはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでCDP MCP Server MCPのどのようなツールを利用できますか?

CDP MCP ServerはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

CDP MCP Server MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。CDP MCP Serverで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇