Skip to main content
Glama
belljustin

Spotify Model Context Protocol

by belljustin

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

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

필수 조건

  • Python 3.6 이상

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

Related MCP server: Spotify MCP

설정

  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 명령을 사용하여 편집기에서 직접 재생 목록을 만들고 관리할 수 있습니다!

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

Resources

Looking for Admin?

Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.

Latest Blog Posts

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