A
securityF
licenseA
qualityA FastMCP tool that enables control of Spotify through natural language commands in Cursor Composer, allowing users to manage playback, search for content, and interact with playlists.
Last updated -
21
1
Python
该项目实现了一个模型上下文协议 (MCP)服务器,允许您通过 MCP 客户端(例如Cursor或Claude for Desktop (仅限 macOS 和 Windows))使用自然语言控制 Spotify 播放。
该服务器公开以下工具:
play
:播放曲目、专辑或播放列表,或者继续播放。pause
:暂停播放。next
:跳至下一曲目。previous
:跳至上一曲目。get_current_track
:获取有关当前播放曲目的信息。search
:搜索曲目、专辑、艺术家或播放列表。http://localhost:8888/callback
添加到应用程序设置中的重定向 URI。.env
文件:在项目根目录下创建一个名为.env
的文件。添加以下内容,将占位符替换为你实际的 Spotify 凭据:SPOTIFY_ACCESS_TOKEN
和SPOTIFY_REFRESH_TOKEN
打印到控制台。请将这些值复制到您的.env
文件中。mcp.servers
数组(将/absolute/path/to/your/spotify-mcp
替换为spotify-mcp
目录的绝对路径):.env
文件并仅将与 Spotify 相关的环境变量放在那里,而不是将值添加到 settings.json 文件中。~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
mcpServers
对象(将/absolute/path/to/your/spotify-mcp
替换为spotify-mcp
目录的绝对路径):GXP6This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
模型上下文协议服务器,支持通过 MCP 客户端(如 Cursor 或 Claude for Desktop)中的自然语言命令控制 Spotify 播放。
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/obre10off/spotify-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server