Skip to main content
Glama
DivyamAgg24

Spotify-Claude MCP Server

by DivyamAgg24

Spotify-Claude MCP サーバー

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

概要

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

Related MCP server: Spotify MCP Server

特徴

現在、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 リクエストを管理します。統合: 自然言語を処理し、呼び出す関数を決定します。

Install Server
F
license - not found
C
quality
C
maintenance

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure 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/DivyamAgg24/SpotifyMCP'

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