YouTube Music MCP server for Claude Code. Search songs, manage playlists, and interact with YouTube Music through the YouTube Data API v3.
Built with NestJS + @rekog/mcp-nest using STDIO transport.
| Tool | Description |
|---|---|
search_songs |
Search YouTube Music for songs |
search_artists |
Search for artist channels |
get_playlists |
List your playlists |
create_playlist |
Create a new playlist |
add_to_playlist |
Add videos to a playlist |
remove_from_playlist |
Remove items from a playlist |
get_playlist_items |
Get all items in a playlist |
auth_callback |
Complete Google OAuth authentication |
pnpm installpnpm run buildAdd to ~/.claude.json:
{
"mcpServers": {
"yt-music": {
"command": "node",
"args": ["/path/to/yt-music-mcp/dist/main.js"],
"env": {
"GOOGLE_CLIENT_ID": "your-client-id",
"GOOGLE_CLIENT_SECRET": "your-client-secret"
}
}
}
}On first use, any tool that requires auth will return an OAuth URL. Visit it in your browser, authorize, and use the auth_callback tool with the code.
Tokens are stored in ~/.yt-music-mcp/tokens.json.
You need a Google Cloud project with the YouTube Data API v3 enabled and OAuth 2.0 credentials configured.
Required scope: https://www.googleapis.com/auth/youtube
MIT