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.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
π΅ 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: spotifyMCP
π 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! π΅
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Generate full songs with vocals, instrumentals and sound effects from text. One server for Suno, Google Lyria, Mureka, MiniMax, ACE-Step, YuE and ElevenLabs. Your agent can quote the credit cost before generating, start a song, wait for it to finish and return download links. Sign in with OAuth; optional daily credit caps; retries never charge twice.
Spotify MCP server for ChatGPT, Claude and any AI agent: search songs and artists, list playlists, read playlist songs, create playlist, add songs to playlist, remove songs from playlist, set playlist public or private and save to Liked Songs in your own Spotify account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Spotify yourself; Cotlet does not store your password and you need no Spotify API key. About the official Spotify API: Spotify has a full Web API and, since 23 Apr 2026, an official connector for Claude (checked 5 Nov 2026). The API needs an app you register, and in development mode the app owner must have Premium and the app allows 5 users; unlimited users need a registered business with at least 250,000 monthly users. Setup and FAQ: https://cotlet.dev/integrations/spotify-api-mcp-server
Control Android TV from any AI. 38 MCP tools: playback, recap, recommend, smart-home, schedules.
Generate, edit and stream royalty-free music, or search a licensed catalogue.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables users to search the YouTube Music catalog and manage playlists using natural language. It provides tools for searching songs, albums, and artists, as well as performing playlist operations like creating, adding, and deleting tracks.-
- FlicenseNot gradedqualityDmaintenanceEnables controlling Spotify playback, managing playlists, searching music, and accessing library features through any MCP-compatible AI client. Provides 34 tools for full Spotify integration.-
- AlicenseNot gradedqualityCmaintenanceEnables LLMs to control a Lyrion Music Server (LMS/Squeezebox) for playback, search, library browsing, and player management.-
- AlicenseNot gradedqualityCmaintenanceEnables an AI agent to inspect and control Lyrion Music Server (Logitech Media Server) players via the LMS JSON-RPC API, including playback, volume, playlists, favorites, radio, and library search/browse.1MIT