mcp-ytmusic
Allows for searching the YouTube Music catalog for songs, albums, artists, and playlists, as well as managing user playlists through actions such as creating, listing, adding tracks, and deleting.
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., "@mcp-ytmusicAdd 'Starboy' by The Weeknd to my 'Favorites' playlist"
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.
mcp-ytmusic
YouTube Music MCP server for Claude Code. Search the catalog and manage playlists via natural language.
Tools
Tool | Actions | Description |
| — | Search songs, videos, albums, artists, playlists |
|
| Manage playlists |
|
| Check configuration and auth |
Related MCP server: YouTube MCP Server
Setup
# Clone and install
git clone https://github.com/alexcook/mcp-ytmusic.git
cd mcp-ytmusic
python3 -m venv venv
source venv/bin/activate
pip install -e .
# Initialize config directory
ytmusic-mcp init
# Authenticate (paste browser headers from Chrome DevTools on music.youtube.com)
ytmusic-mcp auth
# Verify
ytmusic-mcp statusClaude Code Integration
Add to ~/.claude/mcp.json:
{
"mcpServers": {
"YouTube Music": {
"command": "/path/to/mcp-ytmusic/venv/bin/python",
"args": ["-m", "ytmusic_mcp"]
}
}
}Auth
Uses browser cookie authentication via ytmusicapi. One-time setup:
Open Chrome → https://music.youtube.com (make sure you're logged in)
Open DevTools (F12) → Network tab
Click any request to music.youtube.com
Right-click → Copy → Copy request headers
Run
ytmusic-mcp authand paste when prompted
Credentials are saved to ~/.config/ytmusic-mcp/browser.json and are valid for ~2 years.
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
- FlicenseBqualityDmaintenanceEnables music management through search, playlist creation, and intelligent recommendations. Supports searching by song, artist, or album, creating and managing playlists, and getting music recommendations based on genre and mood.Last updated711
- Flicense-qualityDmaintenanceEnables interaction with YouTube through the YouTube Data API, allowing users to search for videos, playlists, and channels, generate video titles using AI, and manage YouTube content through natural language commands.Last updated22
- Alicense-qualityDmaintenanceEnables interaction with Spotify through natural language for music discovery, playback control, library management, and playlist creation. Supports searching for music, controlling playback, managing saved tracks, and getting personalized recommendations based on mood and preferences.Last updated1955MIT
- Flicense-qualityDmaintenanceEnables LLMs to search YouTube for music, download videos as MP3 files, and play audio with playback controls.Last updated8
Related MCP Connectors
Provide token-optimized, structured YouTube data to enhance your LLM applications. Access efficien…
Create and track AI music videos and audio-reactive visuals from songs.
YouTube MCP — wraps the YouTube Data API v3 (BYO API key)
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/gethyper/mcp-ytmusic'
If you have feedback or need assistance with the MCP directory API, please join our Discord server