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 应用设置中添加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 请求:处理自然语言并确定要调用的函数

Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

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
                A 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 -
                4
                433
                Python
                MIT License
                • Apple
              • A
                security
                A
                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
                MIT License
                • 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 -
                1
                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