Music streaming service
## Spotify MCP Server: Music Streaming Integration The **Spotify MCP Server** integrates the world's leading music streaming platform directly into Google Antigravity, enabling AI assistants to search music, manage playlists, control playback, and access listening analytics programmatically. This comprehensive integration brings music platform capabilities to your development workflow. ### Why Spotify MCP? - **Massive Library**: Access over 100 million tracks and 5 million podcasts - **User Data Access**: Retrieve listening history, saved tracks, and personalization data - **Playlist Management**: Create, modify, and curate playlists programmatically - **Playback Control**: Control Spotify playback across connected devices - **Audio Features**: Access audio analysis and musical features for each track ### Key Features #### 1. Music Search ```python from anthropic import Anthropic client = Anthropic() response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Search for upbeat electronic music suitable for coding sessions" }], tools=[{ "name": "spotify_search", "description": "Search Spotify catalog" }] ) ``` #### 2. Playlist Management ```python # Create and manage playlists response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Create a new focus playlist and add similar tracks to my top played songs" }], tools=[{"name": "spotify_playlists", "description": "Manage playlists"}] ) ``` #### 3. Playback Control ```python # Control music playback response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Play my Discover Weekly playlist on my desktop device" }], tools=[{"name": "spotify_playback", "description": "Control playback"}] ) ``` #### 4. Audio Analysis ```python # Get track features response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Analyze this playlist and find all tracks with high energy and danceability" }], tools=[{"name": "spotify_analysis", "description": "Analyze audio features"}] ) ``` ### Configuration ```json { "mcpServers": { "spotify": { "command": "npx", "args": ["-y", "@anthropic/mcp-spotify"], "env": { "SPOTIFY_CLIENT_ID": "your-client-id", "SPOTIFY_CLIENT_SECRET": "your-client-secret", "SPOTIFY_REDIRECT_URI": "http://localhost:3000/callback" } } } } ``` ### Use Cases **Music Applications**: Build music discovery, playlist management, and recommendation apps. **Ambient Control**: Create ambient workspaces with context-aware music playback. **Data Analysis**: Analyze listening patterns and audio features for research or personalization. **Content Curation**: Automate playlist curation based on mood, activity, or user preferences. The Spotify MCP Server brings music streaming capabilities directly into your development workflow, enabling rich music-powered applications.
{
"mcpServers": {
"spotify": {
"mcpServers": {
"spotify": {
"env": {
"SPOTIFY_CLIENT_ID": "your-client-id",
"SPOTIFY_CLIENT_SECRET": "your-client-secret",
"SPOTIFY_REFRESH_TOKEN": "your-refresh-token"
},
"args": [
"-y",
"spotify-mcp-server"
],
"command": "npx"
}
}
}
}
}