Skip to main content
Glama

Spotify Model Context Protocol

by belljustin

Protocolo de contexto del modelo de Spotify (MCP)

Un MCP de Spotify para crear listas de reproducción basadas en una descripción.

Prerrequisitos

  • Python 3.6 o superior
  • Credenciales de desarrollador de Spotify (ID de cliente y secreto de cliente)

Configuración

  1. Clonar este repositorio:
    git clone https://github.com/yourusername/spotify-mcp.git cd spotify-mcp
  2. Instale las dependencias necesarias:
    pip install -r requirements.txt
  3. Configura tus credenciales de desarrollador de Spotify:
    • Ir al panel de desarrolladores de Spotify
    • Crear una nueva aplicación
    • Configure sus variables de entorno:
      echo SPOTIFY_CLIENT_ID='your_client_id' >> .env echo SPOTIFY_CLIENT_SECRET='your_client_secret' >> .env

Uso

Iniciar el servidor de autenticación

  1. Configura tu URI de redireccionamiento en el Panel de desarrolladores de Spotify:
    • Ve a tu aplicación en el Panel de desarrolladores de Spotify
    • Haga clic en "Editar configuración"
    • Agregue http://localhost:5000/callback a las URI de redireccionamiento
    • Guardar los cambios
  2. Inicie el servidor de autenticación:
    python main.py
    Esto iniciará un servidor local en el puerto 5000 que maneja la autenticación OAuth de Spotify.
  3. Visita http://localhost:5000 en tu navegador para autenticarte con Spotify. Tras la autenticación, tu token de acceso se guardará para su uso con el MCP.

Integración con Cursor

  1. Abra Cursor y vaya a Configuración
  2. Vaya a la sección "Protocolos de contexto del modelo".
  3. Haga clic en "Agregar MCP"
  4. Ingrese los siguientes detalles en su mcp.json, reemplazando PATH-TO-BASE-DIR:
{ "mcpServers": { "spotify": { "command": "uv", "args": [ "--directory", "PATH-TO-BASE-DIR/spotify-mcp", "run", "spotify.py" ] } } }

¡Ahora puedes usar los comandos MCP de Spotify en Cursor para crear y administrar listas de reproducción directamente desde tu editor!

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Permite crear listas de reproducción de Spotify basadas en descripciones de texto conectando el editor de Cursor a la API de Spotify a través de la autenticación OAuth.

  1. Prerrequisitos
    1. Configuración
      1. Uso
        1. Iniciar el servidor de autenticación
        2. Integración con Cursor

      Related MCP Servers

      • A
        security
        A
        license
        A
        quality
        Enables interaction with Spotify's music catalog via the Spotify Web API, supporting searches, artist information retrieval, playlist management, and automatic token handling.
        Last updated -
        26
        547
        2
        TypeScript
        MIT License
      • A
        security
        F
        license
        A
        quality
        A FastMCP tool that enables control of Spotify through natural language commands in Cursor Composer, allowing users to manage playback, search for content, and interact with playlists.
        Last updated -
        21
        1
        Python
      • -
        security
        F
        license
        -
        quality
        Integrates with Spotify Web API through the Model Context Protocol, allowing users to search tracks, control playback, and manage playlists programmatically.
        Last updated -
        JavaScript
      • A
        security
        F
        license
        A
        quality
        Enables Claude to interact with Spotify by searching songs, creating playlists, getting recommendations, and managing your music through your Spotify account.
        Last updated -
        7
        1
        JavaScript

      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/belljustin/spotify-mcp'

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