Skip to main content
Glama

스포티파이 MCP

Spotify용 FastMCP 도구.

데모

링크: https://drive.google.com/file/d/1jGGQBzeXSKSJijeUwFZLdvrKPmPuogGd/

Related MCP server: Spotify MCP Server

필수 조건

설치

  • 이 저장소를 복제하세요

  • 저장소 루트에 .env 파일을 만들고 Spotify API 자격 증명을 추가합니다( .env.example 에서 복사).

  • Spotify 개발자 대시보드 로 이동하여 앱을 만들면 자격 증명을 얻을 수 있습니다.

  • 커서 설정 > 기능 > MCP 서버 > + 새 MCP 서버 추가로 이동하세요.

  • 이름: Spotify, 유형: command, 명령: uv --directory <저장소 경로/mcp-spotify> run main.py

이제 도구가 설치된 것을 볼 수 있습니다.설치된_mcp

그것을 시도해보기

  • "에이전트" 모드로 Composer 열면 Spotify 플레이어를 커서로 제어할 수 있습니다. (활성 기기에서 Spotify가 열려 있는지 확인하세요)

특징

아래는 Cursor Composer를 통해 Spotify MCP 도구와 상호 작용하는 방법을 보여주는 대화 예시입니다.

  1. 사용자: "내 재생목록을 보여주세요."
    응답: "다음은 당신의 플레이리스트입니다: 차분한 분위기, 운동 믹스, 인기 히트곡."

  2. 사용자: "내 'Chill Vibes' 플레이리스트를 재생해 줘."

  3. 사용자: "노래를 일시 정지해 주세요."
    응답: "재생이 일시 정지되었습니다."

  4. 사용자: "노래를 다시 재생해 주세요."
    응답: "재생을 다시 시작합니다..."

  5. 사용자: "이 노래는 뭐예요?"
    응답: "앨런 워커의 'Faded'를 듣고 계십니다."

  6. 사용자: "이 아티스트에 대해 알려주시고 인기 있는 트랙을 몇 개 보여주세요."
    응답: "아티스트 정보: 앨런 워커."

  7. 사용자: "지난 6개월 동안 제가 가장 좋아하는 아티스트를 보여주세요."
    응답: "가장 많이 재생된 아티스트는 다음과 같습니다..."

  8. 사용자: "Coldplay를 검색하세요."
    응답: "아티스트 찾았습니다: Coldplay. 그들의 인기 트랙은 다음과 같습니다..."

  9. 사용자: "노래 'Fix You'를 재생해 주세요."
    응답: "'Fix You' 재생을 시작합니다..."

  10. 사용자: "내 대기열을 보여주세요."
    응답: "현재 대기열: 트랙 1, 트랙 2, 트랙 3..."

  11. 사용자: "내 대기열에 '낙원'을 추가하세요."
    응답: "콜드플레이의 'Paradise'를 대기열에 추가했습니다."

  12. 사용자: "대기열에서 '낙원'을 앞으로 옮겨주세요."

  13. 사용자: "반복으로 설정하세요."

  14. 사용자: "이 노래 좋아요. 비슷한 곡 추천해 주세요."
    응답: "이 트랙을 기반으로 한 몇 가지 추천 사항은 다음과 같습니다..."

  15. 사용자: "이 트랙을 'Chill Vibes' 플레이리스트에 추가해요."

추가로 사용 가능한 기능:

  • 트랙에서 특정 위치를 찾으세요

  • 자세한 재생 상태 보기

  • 여러 트랙을 한 번에 건너뛰기

더 많은 기능이 지원되기를 원하시면, 언제든지 문제를 제기하세요!

Available Tools

21 tools
add_to_playlistC
Add tracks to a playlist
Args:
    playlist_id: Spotify playlist ID
    track_ids: List of track IDs to add

Inputs: playlist_id (required), track_ids (required).

add_to_queueC
Add a track to the queue
Args:
    track_id: Spotify track ID to add

Inputs: track_id (required).

get_artist_top_tracksC
Get top tracks for an artist
Args:
    artist_id: Spotify artist ID

Inputs: artist_id (required).

get_current_trackB

Get information about the currently playing track

Inputs: no named parameters.

get_item_infoC
Get detailed information about a Spotify item
Args:
    item_id: Spotify ID
    type: One of 'track', 'album', 'artist', 'playlist'

Inputs: item_id (required), type.

get_my_playlistsC

FastMCP tool to get user playlists using SpotifyClient.

Inputs: no named parameters.

get_playback_stateB

Get current playback information

Inputs: no named parameters.

get_queueB

Get the current queue of tracks

Inputs: no named parameters.

get_recommendationsB
Get Spotify recommendations based on seeds
Args:
    seed_artists: Comma-separated artist IDs
    seed_tracks: Comma-separated track IDs
    seed_genres: Comma-separated genres
    limit: Number of recommendations

Inputs: seed_artists, seed_tracks, seed_genres, limit.

get_top_artistsB
Get user's top artists from Spotify
Args:
    limit: Number of artists (max 50)
    time_range: One of 'short_term' (4 weeks), 'medium_term' (6 months), 'long_term' (all time)

Inputs: limit, time_range.

next_trackA

Skip to next track in queue

Inputs: no named parameters.

pause_playbackB

FastMCP tool to pause playback on spotify.

Inputs: no named parameters.

previous_trackB

Go back to previous track

Inputs: no named parameters.

reorder_queueB
Reorder tracks in queue by moving a track to a different position
Args:
    range_start: Position of track to move
    insert_before: Position to insert the track

Inputs: range_start (required), insert_before (required).

search_spotifyC
Search Spotify for tracks, artists, albums, or playlists.
Args:
    query: Search term
    type: One of 'track', 'artist', 'album', 'playlist'
    limit: Max number of results

Inputs: query (required), type, limit.

seek_positionC
Seek to position in current track
Args:
    position_ms: Position in milliseconds

Inputs: position_ms (required).

set_repeat_modeB
Set repeat mode for playback
Args:
    state: One of 'track', 'context', or 'off'

Inputs: state (required).

skip_tracksC
Skip multiple tracks at once
Args:
    num_skips: Number of tracks to skip (default: 1)

Inputs: num_skips.

start_playbackB

FastMCP tool to resume playback on the currently active Spotify device.

Inputs: no named parameters.

start_playback_trackC
Start playback of a specific track on Spotify
Args:
    track_uri: Spotify URI of the track (e.g. 'spotify:track:1234...')
    device_id: Optional device to play on

Inputs: track_uri (required), device_id.

start_playlist_playbackC
Start playback of a specific playlist
Args:
    playlist_id: Spotify playlist ID
    device_id: Optional device to play on

Inputs: playlist_id (required), device_id.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 21 tools

    Disambiguation4/5

    Most tools have distinct purposes targeting specific Spotify resources and actions, with clear boundaries between playback control, queue management, and content retrieval. However, some overlap exists between 'skip_tracks' and 'next_track'/'previous_track', and 'start_playback' vs 'start_playback_track'/'start_playlist_playback' could cause confusion about which to use for resuming vs starting specific content.

    Naming Consistency4/5

    The server maintains strong consistency with snake_case naming throughout and mostly follows verb_noun patterns (e.g., 'get_current_track', 'add_to_queue', 'search_spotify'). Minor deviations include 'get_item_info' (noun_verb) and some tools using 'playback' while others use 'track'/'playlist' in similar contexts, but the overall pattern remains clear and predictable.

    Tool Count3/5

    With 21 tools, this feels borderline heavy for a music streaming interface. While Spotify's API is feature-rich, the tool set includes some redundancy (e.g., multiple skip/playback variants) that could potentially be consolidated. The count is manageable but approaches the upper limit of what feels well-scoped for this domain.

    Completeness5/5

    The tool surface provides comprehensive coverage of Spotify's core functionality including playback control (play/pause/skip/seek/repeat), queue management, content retrieval (tracks/artists/playlists/recommendations), search capabilities, and user data access. There are no obvious gaps for typical agent workflows, with CRUD-like operations well-represented across the music streaming domain.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables interaction with Spotify through natural language for music discovery, playback control, library management, and playlist creation. Supports searching for music, controlling playback, managing saved tracks, and getting personalized recommendations based on mood and preferences.
      5
      ISC
    • A
      license
      A
      quality
      D
      maintenance
      MCP server for Spotify that enables playlist building and music discovery through 19 tools, allowing LLM agents to search tracks/artists/albums, manage playlists, control playback, and access personal listening data.
      20
      31 PyPI
      1
      MIT