JamRelay
Connects AI assistants to your own Spotify account, exposing tools for Spotify search, playlist management, library access, music discovery, and playback control.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@JamRelayadd the song currently playing on Spotify to my Liked Songs"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
JamRelay
Self-hosted MCP server for connecting AI assistants to your own Spotify account.
Unofficial project: JamRelay is not affiliated with, endorsed by, or sponsored by Spotify, OpenAI, Anthropic, Google, or any other AI platform vendor.
JamRelay exposes Spotify search, playlist, library, discovery and playback tools over MCP Streamable HTTP. It supports Spotify OAuth, multi-client MCP OAuth with PKCE, Dynamic Client Registration (DCR), optional static Bearer authentication, encrypted token persistence, a persistent SQLite State DB, and Docker deployment.
Documentation
The VitePress documentation is the primary user documentation:
English — canonical / source of truth
Polski — high-priority translation
Deutsch — best effort
Français — best effort
Español — best effort
Translations may lag behind the English documentation. The website displays that warning automatically on non-English pages. See the translation policy.
Related MCP server: Spotify MCP Server
Quick start
npm ci
cp .env.example .env
npm run devPowerShell:
Copy-Item .env.example .env
npm run devConfigure your own Spotify Developer application and secrets in .env, then open /auth/spotify/login.
MCP OAuth compatibility
One deployment can keep an existing pre-registered ChatGPT client while also accepting DCR clients such as Claude Code, Gemini CLI, VS Code, and other standards-compatible MCP hosts. ChatGPT has been exercised end-to-end on the project deployment; other vendor paths are documented as protocol-compatible until separately verified. See OAuth and multi-client compatibility.
Common deployment paths
local Node.js
Docker / Docker Compose
home server or NAS
local machine + Cloudflare Tunnel
free-tier VM with persistent storage
small paid VPS
See free hosting and free/low-cost deployment.
The State DB architecture, schema, migration policy, backup guidance, and security boundary are documented in State Database.
Create reviewed local migrations with npm run db:migration:new -- add-track-isrc; deployment never generates schema changes.
Documentation maintenance
Fast-changing technical references are generated instead of copied across five locales:
npm run docs:generateThis regenerates:
MCP tool reference from the actual registered MCP tools
environment variable reference from
.env.exampletranslated reference stubs that point to the canonical generated reference
Navigation is defined once in docs/.vitepress/navigation.mts. Add a page there once; localized labels are optional and fall back to English.
Run the full documentation validation with:
npm run docs:checkDevelopment
npm run format
npm run lint
npm run typecheck
npm test
npm run build
npm run docs:buildOr run the combined verification:
npm run checkSecurity
See SECURITY.md. Keep .env, OAuth token stores and /data out of version control and public web roots.
License
JamRelay is licensed under the GNU Affero General Public License v3.0 only (AGPL-3.0-only).
See LICENSE for the complete license text and LICENSING.md for licensing history and additional information.
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for Argo RPG Platform — connects AI assistants to campaign data via OAuth2
Hosted MCP server with managed OAuth for 15+ toolkits: Google Workspace, Fitbit, Oura, Kalshi, etc.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables remote interaction with Spotify through the Model Context Protocol, allowing users to search tracks, control playback, and manage playlists with per-user OAuth authentication. It is hosted on Cloudflare Workers and supports remote MCP over HTTP for compatible clients.2-
- AlicenseBqualityCmaintenanceMCP server for the Spotify Web API — gives Claude and other AI assistants tools to search music, control playback, manage playlists, library, and podcasts.59MIT
- FlicenseNot gradedqualityDmaintenanceA FastMCP server that exposes Spotify's catalog and user context as tools for Claude, enabling track search, audio features, artist discography, recommendations, currently playing, and playlist creation.-
- AlicenseNot gradedqualityDmaintenanceA robust MCP server that connects Spotify playback, search, and library management to LLM agents via tools, with dual authentication and reliable token handling.2MIT