MCP Catalogs
首页mcp-claude-spotify screenshot

mcp-claude-spotify

by imprvhub·35·综合分 44

Spotify 与 Claude Desktop 集成的 MCP 服务器,提供音乐控制和播放列表管理功能。

mediaproductivitycommunication
15
Forks
2
活跃 Issue
1 个月前
最近提交
2 天前
收录于

概述

这个 MCP 服务器通过模型上下文协议 (MCP) 使 Claude Desktop 能够与 Spotify 交互。它提供全面的功能,包括身份验证、搜索曲目/专辑/艺术家/播放列表、播放控制以及完整的播放列表管理。该实现使用 TypeScript,提供手动和自动化安装方法,并包含针对不同操作系统的详细设置说明。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:通过 Claude Desktop 语音命令控制 Spotify 播放
:以编程方式创建和管理播放列表
:获取音乐推荐和发现新曲目
:如何与 Spotify 进行身份验证?
:设置此 MCP 服务器需要什么?

什么时候选它

如果你希望 Claude Desktop 能够通过自然语言命令控制你的 Spotify 账户并需要完整的播放列表管理功能,应选择此 MCP 服务器。

什么时候不要选它

如果你不使用 Claude Desktop 或需要与其他不支持 MCP 的 AI 助手集成,则应避免使用此选项。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • auth-spotify

    Initiates the Spotify authentication process.

  • search-spotifysearch-spotify(query: string, type: string, limit: number)

    Searches for tracks, albums, artists, or playlists.

  • get-current-playback

    Gets information about the current playback state.

  • play-trackplay-track(trackId: string, deviceId: string)

    Plays a specific track on an active device.

  • pause-playback

    Pauses the current playback.

  • next-track

    Skips to the next track.

  • previous-track

    Returns to the previous track.

  • get-user-playlistsget-user-playlists(limit: number, offset: number)

    Gets a list of the user's playlists.

  • create-playlistcreate-playlist(name: string, description: string, public: boolean)

    Creates a new playlist for the current user.

  • update-playlistupdate-playlist(playlistId: string, name: string, description: string, public: boolean, collaborative: boolean)

    Updates a playlist's name, description, or settings.

  • get-recommendationsget-recommendations(seedTracks: string[], seedArtists: string[], seedGenres: string[], limit: number)

    Gets track recommendations based on seeds.

  • get-top-tracksget-top-tracks(limit: number, offset: number, time_range: string)

    Gets the user's most played tracks over a specified time range.

可对比工具

spotify-web-apinode-spotify-apispotipy

安装

通过 Smithery 安装

npx -y @smithery/cli install @imprvhub/mcp-claude-spotify --client claude

手动安装

  1. 克隆仓库:
git clone https://github.com/imprvhub/mcp-claude-spotify
cd mcp-claude-spotify
npm install
npm run build

Claude Desktop 配置

添加到你的 claude_desktop_config.json 文件:

{
  "mcpServers": {
    "spotify": {
      "command": "node",
      "args": ["ABSOLUTE_PATH_TO_DIRECTORY/mcp-claude-spotify/build/index.js"],
      "env": {
        "SPOTIFY_CLIENT_ID": "your_client_id_here",
        "SPOTIFY_CLIENT_SECRET": "your_client_secret_here"
      }
    }
  }
}

FAQ

如何与 Spotify 进行身份验证?
设置好 MCP 配置后,在 Claude Desktop 中使用 'auth-spotify' 命令。浏览器窗口将打开,您可以在其中使用 Spotify 授权应用程序。
设置此 MCP 服务器需要什么?
您需要 Node.js 16+、Spotify 账户、Claude Desktop 以及 Spotify API 凭据(客户端 ID 和客户端密钥),这些可以从 Spotify 开发者控制台获取。

Hacker News 讨论

开发者社区最近的相关讨论。

mcp-claude-spotify 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。