YouTube Music streaming
## YouTube Music MCP Server: Music Streaming Experience The **YouTube Music MCP Server** integrates YouTube's dedicated music streaming service directly into Google Antigravity, enabling AI assistants to search music, manage playlists, and access the vast library of official releases, remixes, and live performances programmatically. This integration brings YouTube's unique music catalog to your development workflow. ### Why YouTube Music MCP? - **Unique Content**: Access official music videos, live performances, covers, and remixes unavailable elsewhere - **Video Integration**: Stream music with or without video for flexible listening experiences - **User Library**: Manage liked songs, albums, playlists, and uploads in user libraries - **Smart Recommendations**: Leverage YouTube recommendations and personalized playlists - **Lyrics Support**: Access synced lyrics for millions of songs ### 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 acoustic versions and live performances of popular songs" }], tools=[{ "name": "ytmusic_search", "description": "Search YouTube Music" }] ) ``` #### 2. Library Management ```python # Manage music library response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Get my recently played tracks and add the top ones to a new playlist" }], tools=[{"name": "ytmusic_library", "description": "Manage user library"}] ) ``` #### 3. Playlist Operations ```python # Work with playlists response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Create a workout playlist with high-energy tracks from my liked songs" }], tools=[{"name": "ytmusic_playlists", "description": "Manage playlists"}] ) ``` #### 4. Recommendations ```python # Get personalized suggestions response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Get personalized recommendations based on my listening history" }], tools=[{"name": "ytmusic_recommendations", "description": "Get recommendations"}] ) ``` ### Configuration ```json { "mcpServers": { "youtube-music": { "command": "npx", "args": ["-y", "@anthropic/mcp-youtube-music"], "env": { "YTMUSIC_AUTH_HEADERS": "path/to/headers_auth.json" } } } } ``` ### Use Cases **Music Discovery**: Build apps that discover unique versions, covers, and live recordings. **Playlist Curation**: Create automated playlist generation based on user preferences. **Music Integration**: Add background music capabilities to productivity applications. **Listening Analytics**: Track and analyze listening patterns across YouTube Music. The YouTube Music MCP Server brings YouTube unique music catalog directly into your development workflow, enabling distinctive music experiences.
{
"mcpServers": {
"youtube-music": {
"mcpServers": {
"youtube-music": {
"env": {
"GOOGLE_API_KEY": "your-api-key"
},
"args": [
"-y",
"youtube-music-mcp-server"
],
"command": "npx"
}
}
}
}
}