spotify-mcp

spotify-mcp

Enables control of Spotify playback via the official Web API, including search/play, pause, skip, volume, queue, and device management.

Category
Visit Server

README

spotify-mcp

Spotify Web API'yı MCP olarak Hermes'e bağlayan sunucu. Computer use / UI otomasyonu yok — her şey resmi Spotify Web API ile. Windows, macOS ve Linux'ta çalışır; hesaptaki hangi cihaz aktifse (desktop, telefon, web) onu kontrol eder.

Özellikler

  • ▶️ Şarkı/albüm/sanatçı/playlist ara & çal
  • ⏸️ Duraklat / devam et / ileri / geri
  • 🔊 Ses seviyesi (0-100)
  • ⏭️ Sıraya ekle (queue)
  • 📱 Aktif cihazları listele, çalan şarkıyı göster

Kurulum

1. Spotify Developer App oluştur

  1. https://developer.spotify.com/dashboard adresine gir → Create app
  2. App name/description doldur, Redirect URI olarak şunu ekle:
    http://127.0.0.1:8890/callback
    
  3. Client ID'yi (ve varsa Client Secret'ı) kopyala.

2. Config yaz

mkdir -p ~/.spotify-mcp

~/.spotify-mcp/config.json:

{
  "clientId": "SENIN_CLIENT_ID",
  "clientSecret": "SENIN_CLIENT_SECRET"
}

3. OAuth (bir kere)

node auth.js

Tarayıcı açılır, Spotify'a girip Agree'e basarsın, token ~/.spotify-mcp/tokens.json'a kaydedilir. Refresh token otomatik yenilenir.

4. Hermes'e ekle

printf 'Y\n' | hermes mcp add spotify --command node --args C:/Users/<user>/Documents/GitHub/spotify-mcp/server.js
hermes mcp ls
hermes mcp test spotify

MCP tool'ları yeni oturumlarda yüklenir — ekledikten sonra yeni bir sohbet başlat.

Tool'lar

Tool Açıklama
spotify_play_track(query[, device]) Şarkı ara & hemen çal
spotify_play_artist(name[, device]) Sanatçı çal
spotify_play_album(query[, device]) Albüm çal
spotify_play_playlist(name[, device]) Playlist çal
spotify_play_uri(uri[, device]) Direkt spotify: URI çal
spotify_queue_track(query) Sıraya ekle
spotify_pause / spotify_resume([device]) Duraklat / devam
spotify_next / spotify_previous İleri / geri
spotify_set_volume(percent[, device]) Ses 0-100
spotify_playback_state Ne çalıyor, hangi cihazda
spotify_list_devices Aktif cihazlar (id'leriyle)
spotify_search(query, type) Arama
spotify_auth_status Auth durumu

device = cihaz adı. Önce tam eşleşme aranır (örn. "FURKAN" → Windows PC), tam eşleşme yoksa alt dize (örn. "Macbook" → "Furkan Macbook Air"). Dikkat: "FURKAN" aynı zamanda "Furkan Macbook Air"in alt dizesi — bu yüzden tam eşleşme önceliklidir! Verilmezse aktif cihazda çalar. Cihaz değişiminde aktif cihaz önce pause edilir (~7sn oturum bırakma süresi), sonra hedefe play edilir.

Notlar

  • Playback kontrolü (play/pause/skip/volume) Premium hesap gerektirir (Spotify kuralı). Arama ve auth her hesapta çalışır.
  • Playback, hesabında aktif olan cihaza gider. Cihaz yoksa: Spotify'ı aç, bir şarkı başlat, sonra tekrar dene.
  • Sıfır npm bağımlılığı — Node >= 18 yeterli.

Test (probe)

printf '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"probe","version":"1.0"}}}\n' | node server.js

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured