PolarHub
  • Agents
  • MCP Servers
  • Skills
  • PolarBear
PolarHub © 2026
MCP Serversentertainment-and-mediaSpotify-OAuth-MCP-server
返回「entertainment-and-media」

Spotify-OAuth-MCP-server

modelscope·@latiftplgu/Spotify-OAuth-MCP-server

entertainment-and-media0下载LocalModelScope

简介

暂无描述。

MCP Server 详情

来自 ModelScope 索引

Spotify MCP Server

A comprehensive Model Context Protocol (MCP) server that provides seamless integration between AI assistants (like Claude Desktop) and the Spotify Web API. This server enables AI assistants to interact with Spotify's music streaming service through a well-structured, type-safe interface.

Overview

This MCP server acts as a bridge between AI assistants and Spotify's Web API, allowing users to:

  • Search for music, artists, albums, and playlists
  • Control playback (play, pause, skip, volume control)
  • Manage playlists (create, modify, add/remove tracks)
  • Access user profiles and music libraries
  • Manage user's music library (save/remove tracks)
  • Get user's listening history and top content
  • Retrieve plain text song lyrics

Key Features

29 Comprehensive Tools across 7 categories:

  • Albums (4 tools): Album information and new releases
  • Artists (6 tools): Artist data, top tracks, and discovery
  • Tracks (8 tools): Track details, lyrics, and library management
  • Playlists (10 tools): Complete playlist management and discovery
  • Playback (10 tools): Full player control and device management
  • User (1 tool): User profile information
  • Search (2 tools): General search and search-to-play functionality

Clean Architecture:

  • Modular Design: Feature-based tool organization
  • Type Safety: Full TypeScript implementation with Zod validation
  • Reusable Components: Common schema builders eliminate code duplication
  • Automatic Registration: Tools are automatically discovered and registered
  • Error Handling: Comprehensive error management with descriptive messages

Developer Experience:

  • Easy Extension: Simple pattern for adding new tools
  • Maintainable Code: Clear separation of concerns
  • Documentation: Self-documenting schema definitions
  • Debugging: Detailed logging and error reporting

Quick Start

1. Clone and Install

git clone <repository-url>
cd Spotify-OAuth-MCP-server
npm install

2. Get Spotify Access Token

3. Build and Start

# Build the TypeScript code
npm run build

# Start the MCP server
npm start

# For development with auto-reload
npm run dev

Claude Desktop Integration

To use this MCP server with Claude Desktop, add it to your MCP configuration:

macOS/Linux: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "spotify": {
      "command": "node",
      "args": ["/path/to/your/project/src/mcp/server.js"]
    }
  }
}

Usage Examples

Once integrated with Claude Desktop, you can use natural language commands:

"Play my Discover Weekly playlist"
"Search for songs by The Beatles"
"Add this song to my favorites"
"Skip to the next track"
"Create a new playlist called 'Morning Vibes'"
"Search for playlists with chill music"
"Show me my top artists this month"
"What's currently playing?"
"Add this song to my queue"
"Get my recently played tracks"
"Show me the lyrics for this song"
"Get the plain text lyrics for analysis"

Project Architecture

src/
 mcp/
    server.ts              # Main MCP server entry point
    helpers/
       utils.ts          # Utility functions and helpers
    schemas/
       common.ts         # Reusable schema builders
    tools/
        index.ts          # Tool registry and registration system
        albums.ts         # Album-related tools (4 tools)
        artists.ts        # Artist-related tools (6 tools)
        tracks.ts         # Track-related tools (8 tools)
        playlists.ts      # Playlist management tools (10 tools)
        playback.ts       # Playback control tools (10 tools)
        user.ts           # User profile tools (1 tool)
        search.ts         # Search functionality tools (2 tools)
 spotify.ts                # Spotify Web API service class

Architecture Benefits

  1. Modularity: Each tool category is self-contained
  2. Type Safety: Full TypeScript and Zod validation throughout
  3. Reusability: Common schemas prevent code duplication
  4. Scalability: Easy to add new tools and categories
  5. Maintainability: Clear separation of concerns
  6. Performance: Efficient registration and validation

Available Tools

Albums (4 tools)

  • get_album: Retrieve detailed album information
  • get_album_tracks: Get tracks from a specific album
  • get_new_releases: Discover new album releases
  • search_albums: Search for albums by keywords

Artists (6 tools)

  • get_artist: Get detailed artist information
  • get_artist_albums: Retrieve artist's albums
  • get_artist_top_tracks: Get artist's most popular tracks
  • search_artists: Search for artists by keywords
  • get_followed_artists: Get user's followed artists
  • get_top_artists: Get user's top artists

Tracks (8 tools)

  • get_track: Get detailed track information
  • search_tracks: Search for tracks by keywords
  • get_liked_tracks: Get user's saved/liked tracks
  • save_tracks: Add tracks to user's library
  • remove_tracks: Remove tracks from user's library
  • get_top_tracks: Get user's top tracks
  • get_recently_played: Get recently played tracks
  • get_track_lyrics: Get plain text lyrics for tracks

Playlists (10 tools)

  • get_playlist: Retrieve playlist details
  • get_user_playlists: Get user's playlists
  • get_playlist_tracks: Get tracks from a playlist
  • create_playlist: Create a new playlist
  • add_to_playlist: Add tracks to a playlist
  • remove_from_playlist: Remove tracks from a playlist
  • search_playlists: Search for playlists by keywords
  • get_categories: Get browse categories
  • save_playlist: Follow/save a user-created playlist
  • unsave_playlist: Unfollow/unsave a playlist

Playback (10 tools)

  • get_currently_playing: Get current playback information
  • start_playback: Start music playback
  • resume_player…

相关 MCP Servers(来自「entertainment-and-media」)

哔哩哔哩API服务器

用于哔哩哔哩API的MCP服务器,支持视频搜索、用户内容获取等多种操作,适用于哔哩哔哩内容管理和数据分析场景。

myalone/bilibili

福昕Cloud-API

福昕PDF服务API提供了一个基于云的REST API,允许通过HTTP客户端处理PDF文件。它提供了丰富的功能,适合集成到各种应用程序中。 📌 主要特性: PDF创建与转换 从Word、Excel和PowerPoint等格式创建PDF文件。 将PDF文件转换为其他格式,包括HTML、Word和图像。 PDF合并与拆分 将多个PDF文件合并成一个文档。 将单个PDF文件拆分成多个文档。 PDF压缩与优化 通过图像压缩、文档展平和线性化来减小文件大小。 PDF安全 支持密码保护、权限控制和高级加密以确保文档安全。 如何快速与MCP(多功能云平台)集成? 📖 集成文档: 服务API集成指南: https://cloudapi.fuxinsoft.cn/zh-CN/docs/services/guide MCP初学者教程: https://cloudapi.fuxinsoft.cn/zh-CN/docs/services/mcp…

@Foxit/mcp-server-foxit-cloudapi

科学计算工具

math_genie_calc是一款专注于科学计算的Python应用,提供从基础运算到复杂三角函数的多种计算功能,适合学生、科研人员等使用。

myalone/math_genie_calc

快递100 MCP Server

快递100 MCP Server提供快递信息查询、快递运费预估比价、快递时效查询(含发货前时效查询与在途动态时效查询)等功能。

kuaidi100/kuaidi100-mcp

免费文字生成图像或视频MCP工具

一个用于图像和视频生成的MCP(模型上下文协议)服务器,支持BigModel AI平台上的CogView和CogVideoX模型。它提供了图像和视频生成、配置管理、异步处理、错误处理、TypeScript支持和调试工具等功能。

seostar/image-video-generation-mcp

生成图片

一键生成、修改和优化图片,让创意无限延伸。

dingtalk/Generate-image

自动安装

点击按钮会唤起 PolarBear 客户端,并把当前 MCP Server 的 Markdown 详情文档地址传给客户端。

/api/mcps/latiftplgu-spotify-oauth-mcp-server/markdown
打开 PolarBear 安装查看 Markdown 文档

手动安装

在 PolarBear 或其他支持 MCP 的客户端中,新建 MCP Server,并参考下方来源或安装提示配置。

git clone <repository-url> cd Spotify-OAuth-MCP-server npm install

基本信息

分类
entertainment-and-media / app-automation / content-management-systems
运行方式
No
许可证
Unknown
详情文件
latiftplgu-spotify-oauth-mcp-server.md