Spotify
About
Provides a bridge to the Spotify API for retrieving artist information, enabling seamless music data exploration through a TypeScript-based implementation.
Details
- Author
- divyamagg24
- Repository
- DivyamAgg24/SpotifyMCP
- Categories
- Design, Developer Tools, AI, Knowledge Base, Frontend, Security
- Tags
- #integration
Jump to
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
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
SpotifyCommand (node, npx, python, etc.)npxArguments-
Argument 1
-y -
Argument 2
@highlight/mcp-server
Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
-
Argument 1
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
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
1. Build the project
tsc -b
2. Add MCP Server configuration in Claude config file
3. Prompt Claude about the name of the artist
get_artist
Retrieves information about an artist. Parameters: name (string) - the name of the artist to fetch information for.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"spotify": {
"env": {},
"args": [
"-y",
"@highlight/mcp-server"
],
"command": "npx"
}
}
}
Linux
{
"env": [],
"args": [
"-y",
"@highlight/mcp-server"
],
"command": "npx"
}
Macos
{
"env": [],
"args": [
"-y",
"@highlight/mcp-server"
],
"command": "npx"
}
Windows
{
"env": [],
"args": [
"/c",
"npx",
"-y",
"@highlight/mcp-server"
],
"command": "cmd"
}
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 dataPrerequisites
- Spotify Developer Account - Spotify API credentials (Client ID and Client Secret) - Claude DesktopInstallation
1. Clone the repository:
git clone https://github.com/DivyamAgg24/SpotifyMCP.git
cd SpotifyMCP
2. Install dependencies:
npm install
3. Set up environment variables:
Create a .env file in the root directory with the following variables:
SPOTIFY_CLIENT_ID=your_spotify_client_id
SPOTIFY_CLIENT_SECRET=your_spotify_client_secret
SPOTIFY_ACCESS_TOKEN=access_token_obtained_from_clientId_and_clientSecret
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
1. Build the project
tsc -b
2. Add MCP Server configuration in Claude config file
3. 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
```
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.




