Spotify Model Context Protocol

by belljustin
MIT License

Integrations

  • Enables creation of Spotify playlists based on text descriptions, with OAuth authentication handling for accessing Spotify's API.

Spotify 모델 컨텍스트 프로토콜(MCP)

설명에 따라 재생목록을 만드는 Spotify MCP입니다.

필수 조건

  • Python 3.6 이상
  • Spotify 개발자 자격 증명(클라이언트 ID 및 클라이언트 비밀번호)

설정

  1. 이 저장소를 복제하세요:지엑스피1
  2. 필요한 종속성을 설치하세요:
    pip install -r requirements.txt
  3. Spotify 개발자 자격 증명을 설정하세요.
    • Spotify 개발자 대시보드 로 이동
    • 새로운 애플리케이션을 만듭니다
    • 환경 변수를 설정하세요.
      echo SPOTIFY_CLIENT_ID='your_client_id' >> .env echo SPOTIFY_CLIENT_SECRET='your_client_secret' >> .env

용법

인증 서버 시작

  1. Spotify 개발자 대시보드에서 리디렉션 URI를 설정하세요.
    • Spotify 개발자 대시보드 에서 앱으로 이동하세요
    • "설정 편집"을 클릭하세요
    • Redirect URI에 http://localhost:5000/callback 추가합니다.
    • 변경 사항을 저장합니다
  2. 인증 서버를 시작합니다.
    python main.py
    이렇게 하면 Spotify OAuth 인증을 처리하는 포트 5000에서 로컬 서버가 시작됩니다.
  3. 브라우저에서 http://localhost:5000 방문하여 Spotify에 인증하세요. 인증이 완료되면 MCP에서 사용할 수 있도록 액세스 토큰이 저장됩니다.

커서와 통합

  1. 커서를 열고 설정으로 이동하세요
  2. "모델 컨텍스트 프로토콜" 섹션으로 이동하세요.
  3. "MCP 추가"를 클릭하세요
  4. mcp.json에 다음 세부 정보를 입력하고 PATH-TO-BASE-DIR을 대체합니다.
{ "mcpServers": { "spotify": { "command": "uv", "args": [ "--directory", "PATH-TO-BASE-DIR/spotify-mcp", "run", "spotify.py" ] } } }

이제 커서에서 Spotify MCP 명령을 사용하여 편집기에서 직접 재생 목록을 만들고 관리할 수 있습니다!

You must be authenticated.

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

OAuth 인증을 통해 커서 편집기를 Spotify API에 연결하여 텍스트 설명을 기반으로 Spotify 재생 목록을 만들 수 있습니다.

  1. Prerequisites
    1. Setup
      1. Usage
        1. Starting the Authentication Server
        2. Integrating with 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

      ID: 4bz9ehbqc6