Cover image
Try Now
2025-04-03

Spotify MCP服务器

3 years

Works with Finder

1

Github Watches

1

Github Forks

1

Github Stars

MCP Server for Spotify

This MCP server integrates with the Spotify API to allow you to manage and create playlists through Claude.

Features

  • Search for tracks, artists, and albums
  • Create and modify playlists
  • Browse user playlists
  • Get recommendations based on tracks, artists, and genres

Authentication Setup

  1. Create a Spotify App in the Spotify Developer Dashboard
  2. Set the redirect URI to http://localhost:8888/callback
  3. Use the included auth app to get your refresh token:
# Go to the auth-app directory
cd auth-app

# Install dependencies
npm install

# Run the auth app
npm start
  1. Follow the instructions in the browser to authorize and obtain your refresh token

  2. Set the required environment variables:

export SPOTIFY_CLIENT_ID="your-client-id"
export SPOTIFY_CLIENT_SECRET="your-client-secret"
export SPOTIFY_REFRESH_TOKEN="your-refresh-token"

Running the Server

Once you have the required environment variables, you can run the server:

# From the root directory
npm install
npm run build
node dist/index.js

Docker Usage

You can also build and run the server using Docker:

# Build the Docker image
podman build -t mcp/spotify -f src/spotify/Dockerfile .

# Run the container with environment variables
podman run -e SPOTIFY_CLIENT_ID="your-client-id" \
  -e SPOTIFY_CLIENT_SECRET="your-client-secret" \
  -e SPOTIFY_REFRESH_TOKEN="your-refresh-token" \
  mcp/spotify

Usage with Claude

Add the following to your server configuration


{
  "mcpServers": {
    "spotify": {
      "command": "podman",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "SPOTIFY_CLIENT_ID=your-client-id",
        "-e",
        "SPOTIFY_CLIENT_SECRET=your-client-secret",
        "-e",
        "SPOTIFY_REFRESH_TOKEN=your-refresh-token",
        "mcp/spotify"
      ]
    }
  }
}

Prompting

Once the MCP server is running, Claude can utilize it to:

  1. Search for music on Spotify
  2. Create playlists based on themes or genres
  3. Add tracks to playlists
  4. Explore your existing playlists
  5. Get recommendations based on your music preferences

Simply ask Claude to create a playlist or find music, and it will utilize the appropriate Spotify API tools through the MCP server.

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Lists Tailwind CSS classes in monospaced font

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • https://appia.in
  • Siri Shortcut Finder – your go-to place for discovering amazing Siri Shortcuts with ease

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • tomoyoshi hirata
  • Sony α7IIIマニュアルアシスタント

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

  • HiveNexus
  • 一个适用于中小型团队的AI聊天机器人,支持DeepSeek,Open AI,Claude和Gemini等车型。 专为中小团队设计的ai聊天应用,支持deepSeek,打开ai,claude,双子座等模型。

  • ravitemer
  • 一个功能强大的Neovim插件,用于管理MCP(模型上下文协议)服务器

  • patruff
  • Ollama和MCP服务器之间的桥梁,使本地LLMS可以使用模型上下文协议工具

    Reviews

    5 (1)
    Avatar
    user_PO2joOwd
    2025-04-16

    spotify-mcp by richbai90 is a fantastic tool for enhancing your Spotify experience. Its seamless integration and easy-to-use interface make managing playlists and discovering new music a breeze. Highly recommend for any music enthusiast looking to streamline their Spotify usage! Check it out on GitHub: https://github.com/richbai90/spotify-mcp