MS

marcelmarais/spotify-mcp-server

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

491 stars 162 forks 品質 86 トレンド 41MIT

Spotify用の軽量MCPサーバー

概要

CursorやClaudeのようなAIアシスタントがSpotifyの再生を制御し、プレイリストを管理できる軽量なModel Context Protocol(MCP)サーバーです。 - 「エルヴィスの最初の曲を流して」- 「テイラー・スウィフト/スリップノットのフュージョンプレイリストを作成」- 「ワークアウトのプレイリストからテクノトラックを全部仕事用プレイリストにコピーして」- 「音量を少し下げて」 - : Spotifyでトラック、アルバム、アーティスト、プレイリストを検索 - : - クエリ(文字列):検索語 - タイプ(文字列):検索するアイテムの種類(トラック、アルバム、アーティスト、プレイリスト) - 制限(数、任意):返送できる最大結果数(10-50) - : 一致するアイテムのリストとそのID、名前、追加情報 - : searchSpotify("bohemian rhapsody", "track", 20) - : Spotifyで現在再生中のトラックに関する情報(デバイス情報や音量情報を含む) - : なし - : トラック名、アーティスト、アルバム、再生進行状況、再生時間、再生状態、デバイス情報、音量、シャッフル/リピート状況を含むオブジェクト - : getNowPlaying() - リストを取って...

概要(AI 翻訳)

Spotify MCPサーバー

CursorやClaudeのようなAIアシスタントがSpotifyの再生を制御し、プレイリストを管理できる軽量なModel Context Protocol(MCP)サーバーです。

内容

  • 相互作用の例
  • ツール
  • リード操作
  • アルバム運営
  • 操作再生/作成
  • プレイリスト運営
  • セットアップ
  • 前提条件
  • 設置
  • Spotify開発者アプリケーションの作成
  • Spotify API設定
  • 認証プロセス
  • Claude Desktop、カーソル、VsCode(Cline)との統合
  • ストリーミング可能なHTTP
  • OAuth(MCPHubおよびその他のOAuth対応クライアント)
  • Docker(MCPHub推奨)

交流例

  • 「エルヴィスの最初の曲を流して」
  • 「テイラー・スウィフト/スリップノットのフュージョンプレイリストを作成」
  • 「ワークアウトプレイリストからテクノトラックを全部仕事用プレイリストにコピーして」
  • 「音量を少し下げて」

道具

オペレーションを読む

  1. searchSpotify
  • 説明:Spotifyでトラック、アルバム、アーティスト、プレイリストを検索
  • パラメータ:
  • query(文字列):検索語
  • type(文字列):検索するアイテムの種類(トラック、アルバム、アーティスト、プレイリスト)
  • limit(番号、任意):返却できる最大結果数(1-10、デフォルト:10)

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

A lightweight Model Context Protocol (MCP) server that enables AI assistants like Cursor & Claude to control Spotify playback and manage playlists.

Example Interactions

  • “Play Elvis’s first song”
  • “Create a Taylor Swift / Slipknot fusion playlist”
  • “Copy all the techno tracks from my workout playlist to my work playlist”
  • “Turn the volume down a bit”

Tools

Read Operations

  1. searchSpotify

    • Description: Search for tracks, albums, artists, or playlists on Spotify
    • Parameters:
      • query (string): The search term
      • type (string): Type of item to search for (track, album, artist, playlist)
      • limit (number, optional): Maximum number of results to return (1-10, default: 10)
      • offset (number, optional): Index of the first result to return (default: 0)
    • Returns: List of matching items with their IDs, names, and additional details
    • Example: searchSpotify("bohemian rhapsody", "track", 10)
  2. getNowPlaying

    • Description: Get information about the currently playing track on Spotify, including device and volume info
    • Parameters: None
    • Returns: Object containing track name, artist, album, playback progress, duration, playback state, device info, volume, and shuffle/repeat status
    • Example: getNowPlaying()
  3. getMyPlaylists

    • Description: Get a list of the current user’s playlists on Spotify
    • Parameters:
      • limit (number, optional): Maximum number of playlists to return (default: 20)
      • offset (number, optional): Index of the first playlist to return (default: 0)
    • Returns: Array of playlists with their IDs, names, track counts, and public status
    • Example: getMyPlaylists(10, 0)
  4. getPlaylistTracks

GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "spotify": { "command": "node", "args": ["spotify-mcp-server/build/index.js"] } } }