Skip to main content
Glama

MCP-AppleMusic

MCP-AppleMusic

Una implementación de servidor FastMCP para controlar Apple Music (anteriormente iTunes) en macOS a través de comandos AppleScript.

Requisitos

  • Python 3.13+

  • macOS con la aplicación Apple Music instalada

  • Biblioteca MCP ≥1.2.1

Instalación

Primero, asegúrese de tener instalado el protector UV:

$ brew install uv

Luego, con Claude Desktop , agregue lo siguiente a claude_desktop_config.json :

{ "mcpServers": { "iTunesControlServer": { "command": "uvx", "args": ["-n", "mcp-applemusic"] } } }

Comandos disponibles

Los siguientes comandos están disponibles a través del servidor MCP:

itunes_play() # Start playback itunes_pause() # Pause playback itunes_next() # Skip to next track itunes_previous() # Go to previous track itunes_search(query) # Search library for tracks itunes_play_song(song) # Play specific song itunes_create_playlist(name, songs) # Create new playlist itunes_library() # Get library statistics

Uso

Iniciar el servidor:

python server.py

Ejemplos de interacciones:

# Search for a song results = itunes_search("Hey Jude") # Create a new playlist itunes_create_playlist("Beatles Favorites", ["Yesterday", "Hey Jude", "Let It Be"]) # Play a specific song itunes_play_song("Hey Jude")

Desarrollo

  1. Clonar el repositorio:

git clone https://github.com/yourusername/mcp-applemusic.git cd mcp-applemusic
  1. Instalar dependencias de desarrollo:

pip install -e ".[dev]"

Contribuyendo

  1. Bifurcar el repositorio

  2. Crea tu rama de funciones ( git checkout -b feature/amazing-feature )

  3. Confirme sus cambios ( git commit -m 'Add amazing feature' )

  4. Empujar a la rama ( git push origin feature/amazing-feature )

  5. Abrir una solicitud de extracción

Licencia

Este proyecto está licenciado bajo la licencia MIT: consulte el archivo de LICENCIA para obtener más detalles.

Notas

  • Esta herramienta solo funciona en sistemas macOS debido a su dependencia de AppleScript

  • Requiere que tenga instalado Apple Music (anteriormente iTunes)

Deploy Server
A
security – no known vulnerabilities
-
license - not tested
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

Facilita el control de Apple Music en macOS a través de AppleScript mediante comandos MCP, lo que permite a los usuarios administrar la reproducción, buscar pistas y crear listas de reproducción.

  1. Requisitos
    1. Instalación
      1. Comandos disponibles
        1. Uso
          1. Desarrollo
            1. Contribuyendo
              1. Licencia
                1. Notas

                  Related MCP Servers

                  • A
                    security
                    -
                    license
                    A
                    quality
                    Enables interaction with Google Chrome tabs through the MCP protocol, allowing clients to retrieve information and control tabs on macOS using AppleScript.
                    Last updated -
                    4
                    23
                    8
                    MIT License
                    • Apple
                  • A
                    security
                    -
                    license
                    A
                    quality
                    MCP server that enables reading and writing macOS system preferences and application settings through the defaults system.
                    Last updated -
                    4
                    11
                    • Apple
                  • -
                    security
                    -
                    license
                    -
                    quality
                    A collection of Apple-native tools for the MCP protocol that enables AI assistants to interact with Apple applications including Messages, Notes, Contacts, Mail, Reminders, Calendar, and Maps.

                  View all related MCP servers

                  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/kennethreitz/mcp-applemusic'

                  If you have feedback or need assistance with the MCP directory API, please join our Discord server