lyrion-mcp
Enables 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.
README
lyrion-mcp
MCP server for Lyrion Music Server / Logitech Media Server.
It lets an AI agent inspect and control LMS players through the LMS JSON-RPC API: players, playback, volume, playlists, favorites, radio, library search and library browsing.
Features
Server and players
- Test LMS connectivity
- Read server status, version, library statistics and scan progress
- List players
- Resolve players by LMS id, exact name, or unique name fragment
- Read detailed player status and current playlist
Playback controls
- Play, pause, toggle play/pause, stop
- Previous / next
- Set volume
- Power on/off/toggle
- Seek to position
- Sleep timer
- Shuffle and repeat modes
- Sync / unsync players
Playlist and playback sources
- Show current playlist
- Clear current playlist
- Load/play or append a library track by track id
- Play a direct URL/stream
- List saved LMS playlists
- Play a saved playlist by playlist id
- List favorites
- List top-level radio providers/categories
Library browse/search
- Search tracks, albums and artists
- List genres, albums, years
- Browse music folders
- List an album's tracks
- List an artist's albums or tracks
- Trigger LMS library rescan
Diagnostics
- Read-only raw JSON-RPC helper for safe troubleshooting commands.
Tools
lms_test_connectionlms_server_statuslms_playerslms_player_statuslms_play,lms_pause,lms_play_pause,lms_stoplms_next,lms_previouslms_set_volume,lms_set_powerlms_seek,lms_sleeplms_set_shuffle,lms_set_repeatlms_sync,lms_unsynclms_playlist,lms_clear_playlistlms_play_track,lms_add_track,lms_play_urllms_saved_playlists,lms_play_playlistlms_favorites,lms_radioslms_search_tracks,lms_search_albums,lms_search_artistslms_genres,lms_albums,lms_yearslms_music_folder,lms_album_tracks,lms_artist_albums,lms_artist_trackslms_rescan_librarylms_raw_readonly
Configuration
Environment variables:
| Variable | Default | Description |
|---|---|---|
LMS_HOST |
host.docker.internal |
LMS hostname/IP |
LMS_PORT |
9000 |
LMS HTTP port |
LMS_PROTOCOL |
http |
LMS protocol |
LMS_URL |
derived | Full JSON-RPC endpoint override |
LMS_TIMEOUT |
10 |
JSON-RPC timeout in seconds |
MCP_HOST |
0.0.0.0 |
MCP bind host |
MCP_PORT |
8310 |
MCP SSE port |
Docker
docker build -t lyrion-mcp .
docker run --rm -p 8310:8310 \
-e LMS_URL=http://host.docker.internal:9000/jsonrpc.js \
lyrion-mcp
MCP endpoint:
http://localhost:8310/sse
Docker Compose
services:
lyrion-mcp:
image: ghcr.io/simoneb79/lyrion-mcp:latest
environment:
LMS_URL: http://host.docker.internal:9000/jsonrpc.js
ports:
- "8310:8310"
restart: unless-stopped
Example client config
{
"mcpServers": {
"lyrion-mcp": {
"url": "http://localhost:8310/sse"
}
}
}
Notes
- This server does not require LMS credentials by default because standard LMS JSON-RPC deployments are usually LAN-local. Put it behind your normal network controls.
- Exposing playback controls to an AI agent can change what is playing on your speakers. Review agent permissions accordingly.
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.