controlling-spotify
БесплатноЗапускает вложенные скриптыНе проверенControl Spotify playback and manage playlists via MCP server. Use when user requests playing music, controlling Spotify, creating playlists, searching songs…
Об этом скилле
Controlling Spotify
Control Spotify playback, search for music, and manage playlists using the Spotify MCP Server with full user account access.
When to Use
Invoke this skill when users request:
- Playing, pausing, or skipping music on Spotify
- Searching for songs, albums, artists, or playlists
- Creating or modifying playlists
- Viewing currently playing track or playback status
- Managing their Spotify library (saved tracks, albums)
- Queuing songs or albums
Prerequisites
CRITICAL: This skill requires user-provided credentials. The user must complete a one-time setup:
One-Time User Setup
Create Spotify Developer Application
- Go to https://developer.spotify.com/dashboard/
- Create an app and note the Client ID and Client Secret
- Add redirect URI:
http://127.0.0.1:8888/callback
Obtain Refresh Token
- User must run the helper script locally (see
references/setup-guide.md) - Script exchanges OAuth code for a long-lived refresh token
- Refresh token is saved as credential in skill configuration
- User must run the helper script locally (see
Configure Credentials
- Add three credentials to this skill:
SPOTIFY_CLIENT_ID: From Spotify Developer DashboardSPOTIFY_CLIENT_SECRET: From Spotify Developer DashboardSPOTIFY_REFRESH_TOKEN: From helper script output
Alternative: Credentials can also be provided via a Project Knowledge file. Ensure the file contains a
.envstyle block with the keys above.- Add three credentials to this skill:
Without these credentials, the skill cannot function. If credentials are missing, guide the user through the setup process detailed in references/setup-guide.md.
MCP Server Installation
The Spotify MCP Server must be installed in the compute environment. Use the provided installation script which handles cloning, patching, and building the server.
# Run the installation script
bash scripts/install-mcp-server.sh
MCP Server Configuration
Configure the MCP client to connect to the Spotify MCP server. Note the logic to support credentials from Project Knowledge.
from mcp import Client
import asyncio
import re
# 1. Try to get credentials from skill configuration
env_vars = {
"SPOTIFY_CLIENT_ID": credentials.get("SPOTIFY_CLIENT_ID"),
"SPOTIFY_CLIENT_SECRET": credentials.get("SPOTIFY_CLIENT_SECRET"),
"SPOTIFY_REFRESH_TOKEN": credentials.get("SPOTIFY_REFRESH_TOKEN")
}
# 2. If missing, look in Project Knowledge / Context for .env style block
if not all(env_vars.values()):
# Heuristic: Scan context/files for VAR=VALUE patterns
# (Pseudo-code: Implement based on available context access)
pass
# Server configuration
mcp_config = {
"command": "node",
"args": ["/home/claude/spotify-mcp-server/build/index.js"],
"env": env_vars
}
# Initialize client
async def initialize_spotify_mcp():
client = Client()
await client.connect_stdio(
mcp_config["command"],
mcp_config["args"],
mcp_config["env"]
)
return client
Available Tools
Read Operations
searchSpotify - Search for tracks, albums, artists, or playlists
result = await client.call_tool("searchSpotify", { "query": "bohemian rhapsody", "type": "track", "limit": 10 })getNowPlaying - Get currently playing track information
result = await client.call_tool("getNowPlaying", {})getMyPlaylists - List user's playlists
result = await client.call_tool("getMyPlaylists", { "limit": 20, "offset": 0 })getPlaylistTracks - Get tracks from a playlist
result = await client.call_tool("getPlaylistTracks", { "playlistId": "37i9dQZEVXcJZyENOWUFo7" })getRecentlyPlayed - Get recently played tracks
result = await client.call_tool("getRecentlyPlayed", { "limit": 10 })getUsersSavedTracks - Get user's liked songs
result = await client.call_tool("getUsersSavedTracks", { "limit": 50, "offset": 0 })
Playback Control
playMusic - Start playing track/album/artist/playlist
# Play by URI result = await client.call_tool("playMusic", { "uri": "spotify:track:6rqhFgbbKwnb9MLmUQDhG6" }) # Or by type and ID result = await client.call_tool("playMusic", { "type": "track", "id": "6rqhFgbbKwnb9MLmUQDhG6" })pausePlayback - Pause current playback
result = await client.call_tool("pausePlayback", {})skipToNext - Skip to next track
result = await client.call_tool("skipToNext", {})skipToPrevious - Skip to previous track
result = await client.call_tool("skipToPrevious", {})addToQueue - Add track/album to playback queue
result = await client.call_tool("addToQueue", { "uri": "spotify:tra
Установить controlling-spotify в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл controlling-spotify?
Control Spotify playback and manage playlists via MCP server. Use when user requests playing music, controlling Spotify, creating playlists, searching songs, or managing their Spotify library.
Как установить скилл controlling-spotify?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл controlling-spotify запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic