Lyrion MCP Server
Lyrion MCP Server
An MCP server that lets LLMs control a Lyrion Music Server (LMS / Squeezebox) instance.
Features
9 MCP tools (optimized for context efficiency — ~1,400 tokens of definition overhead)
Play by URL, track ID, search, collection ID, or Artist Radio
Search across local library + streaming plugins (Spotify/Spotty, Deezer, TIDAL)
Pluggable streaming-service adapters, configured via
LYRION_PLUGINSFull playback control: pause, stop, seek, power on/off
Playlist management: add, insert, delete, clear, move, jump, save
Player settings: volume, shuffle, repeat, mute
Player sync/unsync
Library browsing: genres, artists, albums, titles, years, playlists
Raw LMS CLI passthrough for advanced commands
Quick Start
pip install -r requirements.txt
LMS_HOST=your-lms-host python main.pyConfiguration
Set environment variables (see .env.example):
Variable | Default | Description |
|
| Lyrion server host |
|
| Lyrion server port |
| (none) | LMS username (if auth enabled) |
| (none) | LMS password (if auth enabled) |
| off | Set |
| (all) | Comma-separated streaming plugins to enable ( |
|
|
|
|
| Bind address (HTTP transports) |
|
| Port (HTTP transports) |
Docker
docker build -t lyrion-mcp .
docker run -d -p 8000:8000 -e LMS_HOST=your-lms-host lyrion-mcpThe server runs on http://localhost:8000 using the streamable-http
transport. Point your MCP client at that URL.
Tools
Tool | Description |
| System topology (all players) or now-playing (with player_id) |
| Play by URL, track_id, search (defaults to Artist Radio), or collection ID |
| Search local library + Spotify, return playable URLs |
| Pause, stop, play, seek, power on/off |
| Add, insert, delete, clear, move, jump, save |
| Volume, shuffle, repeat, mute |
| Sync or unsync players |
| Browse genres/artists/albums/titles/years/playlists |
| Raw LMS CLI passthrough |
Development
pip install -r requirements.txt
python -m pytest -q # unit tests
python -m mypy client.py main.py plugins.py
python -m pyflakes client.py main.py plugins.py tests/Requirements
Python 3.12+
A running Lyrion Music Server (9.x)
One or more streaming plugins (all optional):
Spotty plugin (Spotify)
lms-deezer (Deezer)
TIDAL plugin (TIDAL)
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/edk4971/lyrion-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server