Configuration¶
Configuration options for FL Studio MCP Server.
Server Configuration¶
MIDI Port Name¶
By default, the server uses FLStudio_MIDI as the MIDI port name. To use a different port:
# When initializing the server
from fruityloops_mcp.server import FLStudioMCPServer
server = FLStudioMCPServer(midi_port="MyCustomPort")
MCP Client Configuration¶
Claude Desktop¶
Location of config file:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
Basic configuration:
With custom port:
{
"mcpServers": {
"fruityloops": {
"command": "uv",
"args": ["run", "fruityloops-mcp"],
"env": {
"MIDI_PORT": "MyCustomPort"
}
}
}
}
FL Studio Configuration¶
MIDI Settings¶
- Open FL Studio
- Options → MIDI Settings
- Enable your MIDI port (e.g.,
FLStudio_MIDI) - Set as:
- Input: Enabled
- Output: Enabled
- Controller type: Generic Controller
Python API¶
The Python API is automatically available in FL Studio. No additional configuration needed.
loopMIDI Configuration¶
Port Settings¶
- Port name:
FLStudio_MIDI(must match server configuration) - Autostart: Enabled (optional)
Multiple Ports¶
You can create multiple virtual MIDI ports for different purposes:
Then connect to specific ports as needed.
Environment Variables¶
MIDI_PORT¶
Set default MIDI port name:
LOG_LEVEL¶
Set logging level:
Advanced Configuration¶
Custom Server Script¶
Create a custom script to configure the server:
#!/usr/bin/env python
import asyncio
import logging
from fruityloops_mcp.server import FLStudioMCPServer
# Configure logging
logging.basicConfig(level=logging.DEBUG)
# Create server with custom port
server = FLStudioMCPServer(midi_port="MyPort")
# Run server
asyncio.run(server.run())
Make executable and use in MCP config:
Configuration Files¶
The server doesn't use configuration files by default. All configuration is done through:
- Command-line arguments
- Environment variables
- MCP client configuration
Troubleshooting¶
Port Not Found¶
If you get "Port not found" errors:
- Check loopMIDI is running
- Verify port name matches exactly
- List available ports with
midi_list_ports()
Permission Issues¶
On some systems, you may need additional permissions for MIDI access.
Linux:
macOS: Grant MIDI permissions in System Preferences