Integrations
Manages environment variables for storing Spotify API credentials securely.
Used for cloning the repository during installation.
Provides access to the SpotifyMCP repository for installation and setup of the tool.
Spotify-Claude MCP Server
A tool that connects to the Spotify API and uses Claude as an AI assistant for enhanced music discovery and interaction.
Overview
This project integrates Claude AI with the Spotify API through a Model Control Protocol (MCP) server. It allows users to interact with their Spotify account using natural language queries processed by Claude.
Features
Currently the claude can get the Artist information using the SpotifyAPI. This can be extended for other queries, such as getting top tracks, or genres, creating playlists, or getting user profile data
Prerequisites
- Spotify Developer Account
- Spotify API credentials (Client ID and Client Secret)
- Claude Desktop
Installation
- Clone the repository:
- Install dependencies:
- Set up environment variables: Create a .env file in the root directory with the following variables:
Configuration
Register your app in the Spotify Developer Dashboard Add http://localhost:8888/callback as a Redirect URI in your Spotify app settings Copy the Client ID and Client Secret to your .env file
Usage
- Build the project
- Add MCP Server configuration in Claude config file
- Prompt Claude about the name of the artist
Tool Functions
The MCP server exposes the following function to Claude:
get_artist(name): Retrieves information about an artist
Example Interactions
MCP Server: Handles communication between Claude and the Spotify API Spotify API Client: Manages authentication and API requests to Spotify Claude Integration: Processes natural language and determines which functions to call
This server cannot be installed
A tool that connects to the Spotify API and enables Claude to access artist information for enhanced music discovery through natural language queries.