A
securityF
licenseA
qualityA 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
273
Python
Enables searching for tracks, viewing profile information, creating and managing playlists, adding tracks to playlists, and getting personalized music recommendations using a Spotify account.
一个简单的模型上下文协议 (MCP) 服务器,可让您通过 Claude 与 Spotify 进行交互。此服务器允许 Claude 使用您的 Spotify 帐户搜索歌曲、创建播放列表、获取推荐等。
工具名称 | 描述 |
---|---|
set-spotify-credentials | 设置您的 Spotify 身份验证凭据 |
check-credentials-status | 检查您的凭证是否有效以及谁登录 |
search-tracks | 按名称、艺术家或关键字搜索曲目 |
get-current-user | 获取您的 Spotify 个人资料信息 |
create-playlist | 在您的帐户上创建新的播放列表 |
add-tracks-to-playlist | 将曲目添加到现有播放列表 |
get-recommendations | 根据种子轨迹获取推荐 |
http://localhost:8888/callback
作为重定向 URI编辑spotify-auth.js
文件以包含您的客户端 ID 和客户端密钥:
然后运行身份验证脚本:
这将:
secrets.json
编辑您的 Claude Desktop 配置文件:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
添加以下配置:
将/full/path/to/spotify-mcp-server
替换为项目目录的实际路径。
关闭并重新打开 Claude Desktop 以加载新配置。
当您开始与 Claude 对话时,您首先需要设置您的 Spotify 凭据:
secrets.json
文件以获取你的凭证set-spotify-credentials
工具进行身份验证检查您的帐户:
搜索曲目:
创建播放列表:
创建包含歌曲的播放列表:
根据收藏夹获取推荐:
set-spotify-credentials
工具设置您的凭据You must be authenticated.
模型上下文协议服务器使 Claude 能够与 Spotify 进行交互,允许用户使用他们的 Spotify 帐户搜索歌曲、创建播放列表、添加曲目和获取推荐。