Spotify-Claude MCP サーバー
Spotify API に接続し、Claude を AI アシスタントとして使用して音楽の発見とインタラクション機能を強化するツールです。
概要
このプロジェクトは、モデル制御プロトコル(MCP)サーバーを介してClaude AIとSpotify APIを統合します。これにより、ユーザーはClaudeによって処理される自然言語クエリを使用してSpotifyアカウントを操作できるようになります。
特徴
現在、ClaudeはSpotifyAPIを使用してアーティスト情報を取得できます。これは、トップトラックやジャンルの取得、プレイリストの作成、ユーザープロフィールデータの取得など、他のクエリにも拡張できます。
前提条件
- Spotify開発者アカウント
- Spotify API 資格情報 (クライアント ID とクライアント シークレット)
- クロードデスクトップ
インストール
- リポジトリをクローンします。
- 依存関係をインストールします:
- 環境変数を設定します。次の変数を含む .env ファイルをルート ディレクトリに作成します。
構成
Spotify開発者ダッシュボードにアプリを登録します。Spotifyアプリ設定でリダイレクトURIとしてhttp://localhost:8888/callbackを追加します。クライアントIDとクライアントシークレットを.envファイルにコピーします。
使用法
- プロジェクトを構築する
- Claude 構成ファイルに MCP サーバー構成を追加する
- クロードにアーティストの名前を尋ねる
ツール機能
MCP サーバーは、Claude に次の関数を公開します。
get_artist(name): アーティストに関する情報を取得します
やり取りの例
MCP サーバー: Claude と Spotify API 間の通信を処理します。Spotify API クライアント: Spotify Claude への認証と API リクエストを管理します。統合: 自然言語を処理し、呼び出す関数を決定します。
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Tools
Spotify API に接続し、Claude がアーティスト情報にアクセスして自然言語クエリを通じて音楽の発見を強化できるようにするツール。
Related MCP Servers
- AsecurityAlicenseAqualityA server that connects Claude with Spotify, allowing users to control playback, search content, get information about tracks/albums/artists/playlists, and manage the Spotify queue.Last updated -4433PythonMIT License
- AsecurityAlicenseAqualityConnects Claude with Spotify, allowing users to control playback, search for content, get music information, and manage the Spotify queue.Last updated -81PythonMIT License
- -securityFlicense-qualityConnects Claude with Spotify, enabling playback control, search functionality, and queue management through Spotify's API.Last updated -Python
- -securityFlicense-qualityConnects Claude with Spotify to control playback, search music, get track information, and manage the queue through conversation.Last updated -1Python