Spotify-Claude MCP Server

Integrations

  • Manages environment variables for storing Spotify API credentials securely.

  • Used for cloning the repository during installation.

  • Provides access to the SpotifyMCP repository for installation and setup of the tool.

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 应用设置中添加http://localhost:8888/callback作为重定向 URI,将客户端 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

该工具可连接到 Spotify API,使 Claude 能够访问艺术家信息,以便通过自然语言查询增强音乐发现。

  1. Overview
    1. Features
      1. Prerequisites
        1. Installation
          1. Configuration
            1. Tool Functions
              ID: fr80gty9an