KosmoKrator

other

Spotify MCP Gateway for AI Agents

Expose Spotify tools to Claude Code, Cursor, Codex, and other MCP clients through the local KosmoKrator MCP gateway.

8 functions 7 read 1 write Manual OAuth token auth

Spotify MCP Gateway

Expose Spotify to MCP clients with `kosmokrator mcp:serve --integration=spotify`.

If the client has never used KosmoKrator before, install it first, then register this integration as a stdio MCP server. The gateway exposes only the selected integration in the example below.

curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash
kosmokrator mcp:gateway:install --integration=spotify --write=deny --json
{
  "mcpServers": {
    "kosmokrator-spotify": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=spotify",
        "--write=deny"
      ]
    }
  }
}

Serve Manually

kosmokrator mcp:serve --integration=spotify --write=deny

MCP Tool Names

KosmoKrator exposes integration tools through the gateway with stable names:

MCP toolSource functionType
integration__spotify__spotify_search spotify.spotify_search Read read
integration__spotify__spotify_get_track spotify.spotify_get_track Read read
integration__spotify__spotify_get_artist spotify.spotify_get_artist Read read
integration__spotify__spotify_list_playlists spotify.spotify_list_playlists Read read
integration__spotify__spotify_get_playlist spotify.spotify_get_playlist Read read
integration__spotify__spotify_create_playlist spotify.spotify_create_playlist Write write
integration__spotify__spotify_list_albums spotify.spotify_list_albums Read read
integration__spotify__spotify_get_current_user spotify.spotify_get_current_user Read read

Write Access

Start with --write=deny for read-only MCP clients. Use --write=ask or --write=allow only when the client and workspace are trusted.