Skip to main content
Glama

Spotify-Claude MCP Server

by DivyamAgg24

Spotify-Claude MCP サーバー

Spotify API に接続し、Claude を AI アシスタントとして使用して音楽の発見とインタラクション機能を強化するツールです。

概要

このプロジェクトは、モデル制御プロトコル(MCP)サーバーを介してClaude AIとSpotify APIを統合します。これにより、ユーザーはClaudeによって処理される自然言語クエリを使用してSpotifyアカウントを操作できるようになります。

特徴

現在、ClaudeはSpotifyAPIを使用してアーティスト情報を取得できます。これは、トップトラックやジャンルの取得、プレイリストの作成、ユーザープロフィールデータの取得など、他のクエリにも拡張できます。

前提条件

  • Spotify開発者アカウント
  • Spotify API 資格情報 (クライアント ID とクライアント シークレット)
  • クロードデスクトップ

インストール

  1. リポジトリをクローンします。
git clone https://github.com/DivyamAgg24/SpotifyMCP.git cd SpotifyMCP
  1. 依存関係をインストールします:
npm install
  1. 環境変数を設定します。次の変数を含む .env ファイルをルート ディレクトリに作成します。
SPOTIFY_CLIENT_ID=your_spotify_client_id SPOTIFY_CLIENT_SECRET=your_spotify_client_secret SPOTIFY_ACCESS_TOKEN=access_token_obtained_from_clientId_and_clientSecret

構成

Spotify開発者ダッシュボードにアプリを登録します。Spotifyアプリ設定でリダイレクトURIとしてhttp://localhost:8888/callbackを追加します。クライアントIDとクライアントシークレットを.envファイルにコピーします。

使用法

  1. プロジェクトを構築する
tsc -b
  1. Claude 構成ファイルに MCP サーバー構成を追加する
  2. クロードにアーティストの名前を尋ねる

ツール機能

MCP サーバーは、Claude に次の関数を公開します。

get_artist(name): アーティストに関する情報を取得します

やり取りの例

User: "What is the artist name?" Claude: [Uses get_artist function] "The artist name is Pitbull."

MCP サーバー: Claude と Spotify API 間の通信を処理します。Spotify API クライアント: Spotify Claude への認証と API リクエストを管理します。統合: 自然言語を処理し、呼び出す関数を決定します。

-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Spotify API に接続し、Claude がアーティスト情報にアクセスして自然言語クエリを通じて音楽の発見を強化できるようにするツール。

  1. 概要
    1. 特徴
      1. 前提条件
        1. インストール
          1. 構成
            1. ツール機能

              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
                Connects Claude with Spotify, allowing users to control playback, search for content, get music information, and manage the Spotify queue.
                Last updated -
                8
                1
                Python
                • Apple
              • -
                security
                F
                license
                -
                quality
                Connects Claude with Spotify, enabling playback control, search functionality, and queue management through Spotify's API.
                Last updated -
                Python
                • Apple
              • -
                security
                F
                license
                -
                quality
                Connects Claude with Spotify to control playback, search music, get track information, and manage the queue through conversation.
                Last updated -
                Python

              View all related MCP servers

              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/DivyamAgg24/SpotifyMCP'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server