Skip to main content
Glama

FluidSynth MCP Server

by kimjune01

以下是基于 FluidSynth 创建有效 MIDI 合成系统所需的内容:MCP 服务器的核心 MIDI 功能

  1. FluidSynth 集成函数

initialize_fluidsynth() - 使用适当的配置设置 FluidSynth load_soundfont(soundfont_path) - 为乐器声音加载 SoundFont 文件 (.sf2) set_gain(gain_value) - 控制合成器的整体音量 set_reverb(room_size,damping,width,level) - 配置混响效果 set_chorus(nr,level,speed,depth,type) - 配置合唱效果

  1. MIDI 作曲功能

play_note(note, speed, duration, channel) - 播放单个音符并控制速度和持续时间 play_chord(notes, speed, duration, channel) - 同时播放多个音符作为和弦 create_sequence(notes, durations, velocities, channel) - 创建具有时间的音符序列 play_midi_file(file_path) - 加载并播放现有的 MIDI 文件 record_midi(duration) - 录制指定持续时间的 MIDI 输入

  1. 高级音乐功能

create_melody(scale, key, length, rhythm_pattern) - 根据音乐规则生成旋律 create_chord_progression(progression, style, tempo) - 使用不同的声音创建和声进行 create_drum_pattern(style, tempo, variants) - 为打击乐生成节奏模式 create_arpeggio(chord, pattern, tempo) - 从和弦结构创建琶音模式 create_bassline(chord_progression, style, tempo) - 生成与和弦进行互补的低音模式

  1. 构图管理

create_track(name, instrument, channel) - 使用指定乐器创建新音轨 mute_track(track_id) - 使特定音轨静音 solo_track(track_id) - 使特定音轨独奏 set_track_volume(track_id,volume) - 调整各个音轨的音量 set_track_pan(track_id,pan) - 调整立体声定位

  1. 项目管理

create_project(name, tempo, time_signature) - 初始化一个新的合成项目 save_project(path) - 保存当前项目状态 load_project(path) - 加载已保存的项目 export_midi(path) - 将合成导出为标准 MIDI 文件 export_audio(path, format) - 使用 FluidSynth 将合成渲染为音频

  1. 实时协作与互动

start_midi_server(port) - 启动监听 MIDI 事件的服务器 connect_midi_device(device_name) - 连接到外部 MIDI 硬件 send_midi_event(event_type, parameters) - 向连接的设备发送 MIDI 事件 sync_tempo(tempo) - 在连接的系统之间同步节奏

实施方法基于我检查过的 SuperCollider MCP 服务器,您可以按照以下方式构建 FluidSynth MIDI 服务器:

Python 后端:使用 Python 和 python-osc 库进行通信,使用 pyfluidsynth 进行 FluidSynth 集成 MCP 协议实现:创建遵循模型上下文协议结构的服务器架构:

AI 助手 (Claude) 调用 MCP 服务器上的方法 您的服务器将这些方法转换为 FluidSynth 命令 FluidSynth 生成实际的音频

入门要构建此系统,您需要:

创建一个具有必要依赖项的 Python 项目:

pyfluidsynth - 用于 FluidSynth 集成 mcp - 用于 MCP 协议支持 python-osc - 用于 OSC 通信(如果需要) mido - 用于 MIDI 文件处理

创建一个主服务器文件(例如,server.py):

初始化 FluidSynth 注册所有音乐创作方法 处理与 Claude 的通信

设计方法签名,使 Claude 能够轻松创作音乐,并具有明确定义的参数和合理的默认值。

-
security - not tested
F
license - not found
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

一种 MIDI 作曲系统,使 AI 助手能够通过 FluidSynth 创作音乐,具有播放音符、创作旋律、管理曲目和导出音频的功能。

Related MCP Servers

  • A
    security
    A
    license
    A
    quality
    A Model Context Protocol server that allows AI assistants like Claude and Cursor to create music and control Sonic Pi programmatically through OSC messages.
    Last updated -
    2
    3
    8
    MIT License
  • -
    security
    F
    license
    -
    quality
    An MCP server that connects Claude to FL Studio, allowing the AI to compose music, control instruments, and live record melodies, chords, and drums to the piano roll.
    Last updated -
    56
    • Apple
  • A
    security
    F
    license
    A
    quality
    A Model Context Protocol server that allows AI assistants to generate music through the Suno API, supporting custom lyrics and style inputs or inspiration-based creation.
    Last updated -
    1
    13
  • -
    security
    A
    license
    -
    quality
    An Electron desktop application that bridges LLM-driven music generation with DAWs by converting NoteSequence JSON from AI models into MIDI data that can be played, recorded, and manipulated in any digital audio workstation.
    Last updated -
    2
    Apache 2.0

View all related MCP servers

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kimjune01/synth-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server