Connect Cider with LLMs
MCP server that allows Cider (Apple Music client) to be controlled by LLM clients (i.e. Claude Code, LM Studio). This might increase accessibility of Cider client through LLM interactions or just be a fun way to control your music.
- Get Cider API status
- Get/Set Playback Mode (Playing/Paused)
- Skip songs (forward/backwards certain amount of songs)
- Get/Set Volume (0.0 - 1.0)
- Get/Set Repeat Mode (OFF/TRACK/ALL)
- Get/Set Shuffle Mode (ON/OFF)
- Get/Set Autoplay Mode (ON/OFF)
- Get Queue
- Move position in Queue
- Remove from Queue
- Clear Queue
- Add Song/Album (URL/HREF/ID)
- Get Lyrics [Currently not implementing due to API not being finished]
- Search (/api/v1/amapi)
CIDER_TOKEN- Websocket API token, without the token it most probably won't work even if requirement is disabledCIDER_HOST-default: localhostOPTIONAL Sets websocket address, might be useful when trying to control from different deviceCIDER_PORT-default: 10767OPTIONAL Sets websocket port, usage similar as aboveAM_STOREFRONT-default: caOPTIONAL Sets storefront used by amapi module for requests outside Cider (i.e. "ca", "pl", "de") Github version:
{
"mcpServers": {
"cider-music": {
"command": "uv",
"args": [
"--directory",
"/Path/To/Cider3MCP",
"run",
"main.py"
],
"env": {
"CIDER_TOKEN": "CIDER-API-TOKEN",
"CIDER_HOST": "localhost",
"CIDER_PORT": "10767",
"AM_STOREFRONT": "Country Code"
}
}
}
}MCP Python SDK: https://github.com/modelcontextprotocol/python-sdk
Cider API: https://cider.sh/docs/client/rpc
This helped me how to add to mcp.json locally: https://github.com/reading-plus-ai/mcp-server-deep-research