npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@striderlabs/mcp-spotify

v0.1.0

Published

MCP server for Spotify - let AI agents control playback, search music, and manage playlists

Readme

@striderlabs/mcp-spotify

MCP server for Spotify — let AI agents control playback, search music, manage playlists, and view listening history.

By Strider Labs.

Setup

1. Create a Spotify App

  1. Go to the Spotify Developer Dashboard
  2. Click Create app
  3. Fill in the app name and description
  4. Add http://localhost:8888/callback to the Redirect URIs
  5. Save and copy your Client ID

2. Configure Environment Variable

Set the SPOTIFY_CLIENT_ID environment variable to your app's Client ID:

export SPOTIFY_CLIENT_ID=your_client_id_here

Or add it to your MCP configuration (see below).

3. Add to MCP Configuration

{
  "mcpServers": {
    "spotify": {
      "command": "npx",
      "args": ["-y", "@striderlabs/mcp-spotify"],
      "env": {
        "SPOTIFY_CLIENT_ID": "your_client_id_here"
      }
    }
  }
}

4. Login

Ask your AI assistant to use the login tool. It will open your browser to authorize the Spotify app. Once you approve, your credentials are saved to ~/.strider/spotify/tokens.json and refreshed automatically.

Available Tools

| Tool | Description | |------|-------------| | status | Check authentication status | | login | Authorize with Spotify (PKCE OAuth 2.0) | | logout | Clear stored credentials | | get_playback | Get current playback state, track info, device, volume | | play | Start/resume playback, optionally with a Spotify URI | | pause | Pause playback | | skip_next | Skip to next track | | skip_previous | Skip to previous track | | seek | Seek to position in current track | | set_volume | Set volume (0–100) | | search | Search tracks, albums, artists, playlists | | get_playlists | List user's playlists | | play_playlist | Play a playlist by ID or URI | | add_to_queue | Add a track to the queue | | get_recently_played | Get recent listening history |

Usage Examples

"What's playing on Spotify?"
"Play some jazz music on Spotify"
"Skip this track"
"Turn the volume up to 80"
"Search for albums by Radiohead"
"Play my Discover Weekly playlist"
"Add this track to my queue: spotify:track:4iV5W9uYEdYUVa79Axb7Rh"
"What have I been listening to lately?"

Authentication

This server uses the OAuth 2.0 Authorization Code with PKCE flow — the most secure method for user authentication without exposing a client secret.

  • Your Client ID is not sensitive and can be shared
  • No client secret is required
  • Refresh tokens are stored locally at ~/.strider/spotify/tokens.json with restricted permissions
  • Tokens are automatically refreshed when they expire

Requirements

  • Node.js 18+
  • An active Spotify account (Free or Premium)
  • Spotify open on at least one device for playback controls

License

MIT — Strider Labs