other
Spotify MCP, CLI, and Lua Integration for AI Agents
Spotify integration docs for AI agents: MCP gateway setup, Spotify CLI commands, Lua API reference, credentials, and function schemas.
8 functions 7 read 1 write Manual OAuth token auth
Spotify for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Machine-Readable Metadata
- integration_slug
spotify- route_slug
spotify- package
spotify- auth_strategy
oauth2_manual_tokenManual OAuth token- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
true
Quick Links
Lua APIAgent-facing namespace and function reference. Spotify CLIHeadless setup and direct function calls. Spotify MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
Spotify MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Spotify.
Claude Code Spotify MCP setup for Claude Code. Cursor Spotify MCP setup for Cursor. Codex Spotify MCP setup for Codex. OpenAI Agents Spotify MCP setup for OpenAI Agents SDK. Claude Agent SDK Spotify MCP setup for Claude Agent SDK. Vercel AI SDK Spotify MCP setup for Vercel AI SDK. LangChain Spotify MCP setup for LangChain. LangGraph Spotify MCP setup for LangGraph. CrewAI Spotify MCP setup for CrewAI. MCP clients Spotify MCP setup for Generic MCP Clients.
Spotify CLI Matrix
Use these pages for direct Spotify CLI workflows in scripts, CI, cron, and agent wrappers.
CI Spotify CLI for CI. Cron Jobs Spotify CLI for cron jobs. Shell Scripts Spotify CLI for shell scripts. Headless Automation Spotify CLI for headless automation. Coding Agents Spotify CLI for coding agents.
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
spotify.spotify_search | Read read | 4 | Search for tracks, artists, albums, or playlists on Spotify. Returns matching items with basic metadata. Use specific get tools for detailed information about a single item. |
spotify.spotify_get_track | Read read | 1 | Get detailed information about a specific Spotify track, including artists, album, duration, and popularity. |
spotify.spotify_get_artist | Read read | 1 | Get detailed information about a specific Spotify artist, including followers, genres, and popularity. |
spotify.spotify_list_playlists | Read read | 2 | List the current user's Spotify playlists. Returns playlist names, IDs, and track counts. |
spotify.spotify_get_playlist | Read read | 3 | Get detailed information about a Spotify playlist, including its tracks with artist and album details. |
spotify.spotify_create_playlist | Write write | 4 | Create a new Spotify playlist for the current user. Use the "Get Current User" tool first if you need the user ID. |
spotify.spotify_list_albums | Read read | 4 | List albums by a specific Spotify artist. Includes singles and compilations by default. |
spotify.spotify_get_current_user | Read read | 0 | Get the authenticated user's Spotify profile, including their user ID (needed for creating playlists), display name, and follower count. |