spotify-mcp-server
Provides access to Spotify's Web API, enabling functionality like searching for music, managing playlists, and controlling playback.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@spotify-mcp-serversearch for 'Bohemian Rhapsody' by Queen"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Spotify MCP Server
An unofficial Spotify MCP server that provides access to Spotify's Web API through the Model Context Protocol.
Overview
This MCP server allows AI assistants to interact with Spotify's Web API, enabling functionality like searching for music, managing playlists, controlling playback, and more. The server is hosted at https://spotify-mcp-server-3664f81c.alpic.live/ for easy integration.
Prerequisites
Node.js 22+ (see
.nvmrcfor exact version)Spotify Developer Account and App (for local development)
Installation
For MCP Client Integration
For easy installation in Claude Desktop or other MCP clients, follow the installation guide: https://mcp-install-instructions.alpic.cloud/servers/spotify-unofficial
For Local Development
Clone the repository:
git clone <repository-url>
cd spotify-mcp-serverInstall dependencies:
npm installSet up Spotify App:
Go to the Spotify Developer Dashboard
Create a new app
Note your Client ID and Client Secret
Add
http://localhost:3000/callbackto your app's redirect URIs
Create environment file:
cp .env.example .envUpdate
.envwith your Spotify credentials:SPOTIFY_CLIENT_ID=your_client_id_here
Usage
Development
Start the development server with hot-reload:
npm run devThe server will start on http://localhost:3000 and automatically restart when you make changes to the source code.
Production Build
Build the project for production:
npm run buildThe compiled JavaScript will be output to the dist/ directory.
Running the Inspector
Use the MCP inspector tool to test your server:
npm run inspectorAPI Endpoints
POST /mcp- Main MCP communication endpointGET /mcp- Returns "Method not allowed" (405)DELETE /mcp- Returns "Method not allowed" (405)
Development
Adding New Tools
To add a new tool, modify src/server.ts:
server.tool(
"tool-name",
"Tool description",
{
// Define your parameters using Zod schemas
param: z.string().describe("Parameter description"),
},
async ({ param }): Promise<CallToolResult> => {
// Your tool implementation
return {
content: [
{
type: "text",
text: `Result: ${param}`,
},
],
};
},
);Adding New Prompts
To add a new prompt template, modify src/server.ts:
server.prompt(
"prompt-name",
"Prompt description",
{
// Define your parameters using Zod schemas
param: z.string().describe("Parameter description"),
},
async ({ param }): Promise<GetPromptResult> => {
return {
messages: [
{
role: "user",
content: {
type: "text",
text: `Your prompt content with ${param}`,
},
},
],
};
},
);Resources
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/qchuchu/spotify-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server