yt-music-mcp
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., "@yt-music-mcpsearch for songs by Taylor Swift"
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.
yt-music-mcp
Simple YouTube Music MCP server that uses STDIO transport, compatible with Claude Code ~/.claude.json MCP config.
Features
search_songssearch_artistsget_playlistscreate_playlistadd_to_playlistremove_from_playlistget_playlist_itemsauth_callback
Related MCP server: YouTube Music MCP
Requirements
Node.js 18+
Google OAuth client with YouTube Data API v3 enabled
Environment variables:
GOOGLE_CLIENT_IDGOOGLE_CLIENT_SECRET
Install
npm install
npm run buildClaude Code config
Add this to ~/.claude.json:
{
"mcpServers": {
"yt-music": {
"command": "node",
"args": [
"/Users/fperalta/Documents/projects/openclaw/yt-music-mcp/dist/index.js"
],
"env": {
"GOOGLE_CLIENT_ID": "your-client-id",
"GOOGLE_CLIENT_SECRET": "your-client-secret"
}
}
}
}Authentication flow
On first run, the server writes a Google auth URL to stderr.
Open the URL in your browser.
Approve access.
Copy the authorization code.
Call the MCP tool
auth_callbackwith that code.The refresh token is saved to
~/.yt-music-mcp/tokens.json.
After that, future runs reuse the saved refresh token automatically.
Notes
Transport is STDIO only, no HTTP server.
Uses YouTube Data API v3 via
googleapis.Song search filters to YouTube's Music category (
videoCategoryId=10).remove_from_playlistremoves byplaylistId + videoIds, so if the same video appears multiple times, all matching entries are removed.
Development
npm run build
node dist/index.jsThe process should stay alive and wait for MCP messages on stdin.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceAn MCP server that allows AI models to control YouTube Music playback through Google Chrome by searching and playing songs using song and artist names.22MIT
- AlicenseBqualityDmaintenanceA simple MCP server that allows AI assistants like Cursor or Claude Desktop to search for and play tracks on YouTube Music through natural language commands.26712MIT
- Flicense-qualityDmaintenanceA full-featured YouTube Music MCP server that lets AI assistants control playback, browse history, download songs, and manage playlists via natural language.1
- AlicenseAqualityDmaintenanceMCP server for controlling the mpv media player, enabling playback control, music library browsing, YouTube streaming and downloading, and metadata editing from within an MCP client.17511MIT
Related MCP Connectors
YouTube MCP — wraps the YouTube Data API v3 (BYO API key)
MCP server for Suno AI music generation, lyrics, and covers
MCP server for Producer/Riffusion AI music generation
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/peraltafederico/yt-music-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server