MCP-AppleMusic
An experimental MCP server for controlling Apple Music.
Overview
MCP-AppleMusic is an experimental server implementation that allows users to control Apple Music on macOS through AppleScript commands.
To use MCP-AppleMusic, install the required dependencies, start the server, and interact with it using the available commands.
- Control playback (play, pause, next, previous) of Apple Music tracks. - Search for songs in the library. - Create and manage playlists. - Retrieve library statistics.
- Automating music playback on macOS.
- Creating custom playlists programmatically.
- Integrating Apple Music control into other applications.
Add to your AI client
Use these steps to connect MCP-AppleMusic in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-applemusic-kennethreitz": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-applemusic-kennethreitz"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-applemusic-kennethreitz": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-applemusic-kennethreitz"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-applemusic-kennethreitz": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-applemusic-kennethreitz"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-applemusic-kennethreitz": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-applemusic-kennethreitz"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-applemusic-kennethreitz": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-applemusic-kennethreitz"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-applemusic-kennethreitz": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-applemusic-kennethreitz"
]
}
}
}FAQ
Is MCP-AppleMusic compatible with Windows?
No, MCP-AppleMusic is designed specifically for macOS systems.
Do I need to install Apple Music?
Yes, Apple Music (formerly iTunes) must be installed for MCP-AppleMusic to function.
Can I contribute to the project?
Yes! Contributions are welcome; please follow the contributing guidelines in the repository.