Music MCP Server
Integrates with Google Cast (Chromecast) for native queue support, enabling playback control, device discovery, connection management, and volume control on Chromecast-enabled speakers and displays.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Music MCP Serversearch music by Queen"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
šµ Music MCP Server
A Model Context Protocol (MCP) Server for music library management and Chromecast playbook control, optimized for LM Studio integration.
⨠Key Features
šÆ 21 Music Tools - Complete control over music playback and library
š” Chromecast Integration - Native Google Cast queue support
ā” Ultra-Fast Responses - No timeout issues with LM Studio (~20ms)
š Persistent Operation - Background server survives disconnections
š Large Library Support - Tested with 13,294+ tracks
Related MCP server: MCP Spotify Server
š Quick Start
1. Installation
git clone <repository>
cd music-mcp-server
npm install2. Configure LM Studio
Add to your LM Studio MCP configuration:
{
"mcpServers": {
"music": {
"command": "C:\\Program Files\\nodejs\\node.exe",
"args": ["lm-studio.js"],
"cwd": "D:/mcp-server/music-mcp-server",
"env": {
"NODE_ENV": "production",
"LOG_LEVEL": "error"
},
"timeout": 30000
}
}
}3. Start Using
Start server:
start_music_server()Find devices:
list_chromecasts()Search music:
search_music({"query": "artist name"})Play tracks:
play_multiple_tracks({"tracks": [1,2,3], "device_name": "device"})
š Alternative: NPM Scripts
You can also run the interface using npm scripts:
# Start LM Studio interface
npm run lm-studio
# Start persistent server
npm run server
# Start server in background
npm run server:background
# Development mode
npm run devš ļø Available Tools
Server Management (3)
start_music_server- Start background serverstop_music_server- Stop background serverserver_status- Check server health
Chromecast Control (3)
list_chromecasts- Discover devicesconnect_chromecast- Connect to deviceget_chromecast_status- Get connection status
Music Library (2)
search_music- Search tracks (supports fuzzy, exact matching)get_library_stats- Library statistics
Playback (6)
play_track- Play single trackplay_multiple_tracks- Play queue with native Cast supportpause_playback/resume_playbook/stop_playbook- Playbook controlget_playlist_status- Current playbook info
Navigation (4)
skip_to_next/skip_to_previous- Skip tracksskip_to_track- Jump to specific track numberseek_to_position- Seek within track
Queue & Volume (3)
manage_queue- Add/remove/shuffle/repeat queueset_volume- Volume control (0.0-1.0)manage_playlist- Create/manage playlists
š Project Structure
music-mcp-server/
āāā lm-studio.js # Main LM Studio interface (renamed)
āāā persistent-music-server.js # Background music server
āāā lm_studio_config_node.json # LM Studio configuration
āāā src/ # Core application code
ā āāā controllers/ # Music & Chromecast controllers
ā āāā services/ # Database & Chromecast services
ā āāā utils/ # Utilities & validation
āāā data/ # Database & state files
āāā docs/ # API documentation
āāā scripts/ # Utility scriptsš§ Architecture
Two-Component Design
lm-studio.js - Ultra-fast MCP interface for LM Studio (renamed for simplicity)
persistent-music-server.js - Background server for music operations
Why This Works
No Timeouts: Protocol methods respond instantly
Persistent State: Music server runs independently
Automatic Management: Server starts/stops as needed
Error Recovery: Robust error handling and reconnection
šµ Supported Audio Formats
MP3, FLAC, WAV, AAC, M4A, OGG, WMA
Full ID3 metadata support
Automatic content-type detection
š Performance
Library Size: 13,294+ tracks tested
Response Time: ~20ms for protocol methods
Memory Usage: Optimized for large libraries
Network: Efficient Chromecast streaming
š Troubleshooting
Common Issues
Tools not loading: Restart LM Studio after config changes
Server not starting: Check port 8765 availability
Chromecast not found: Ensure devices on same network
Playback stops: Check Chromecast connection stability
Logs
Server logs:
data/music-server.logCheck server status:
server_status()tool
š License
MIT License - See LICENSE file for details
Ready for production use with LM Studio! šµ
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceEnables interaction with Spotify through natural language for music discovery, playback control, library management, and playlist creation. Supports searching for music, controlling playback, managing saved tracks, and getting personalized recommendations based on mood and preferences.Last updated2025MIT
- AlicenseAqualityDmaintenanceEnables interaction with Spotify through LLMs using OAuth2 authentication. Supports music search, playback control, playlist management, and device management through natural language commands.Last updated142MIT
- FlicenseAqualityDmaintenanceEnables interaction with TIDAL music streaming service through 27 tools for searching music, managing playlists, favorites, and discovering artists and albums.Last updated272
- FlicenseAqualityDmaintenanceEnables AI assistants to control Spotify playback, search for music, manage playlists, and access library information through the Spotify API. Requires Spotify Premium for playback control features.Last updated4
Related MCP Connectors
Control Android TV from any AI. 38 MCP tools: playback, recap, recommend, smart-home, schedules.
AI-manageable audio CDN: upload, transcode, normalize, stream & deliver audio, plus grounded docs.
Universal AI API Orchestrator ā 1,554 tools, 96 services. One install.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/olivelb/local-music-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server