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.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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 Music 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.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
AI playlist engine that turns music prompts into real YouTube playlists and filters bad versions.
Search YouTube videos, read transcripts and get public video information in your AI assistant.
YouTube transcripts, search, channel/playlist listings and upload tracking for AI agents.
Search YouTube, read video metadata, and fetch transcripts with language preferences
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables 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.22ISC
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to search YouTube Music, manage playlists, and create smart recommendations using natural language.15MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to search for music and create/manage playlists on YouTube Music via OAuth 2.0 authentication.1MIT
- FlicenseNot gradedqualityCmaintenanceEnables searching YouTube Music and managing playlists: create/delete playlists, add/remove/reorder tracks, and more via natural language.-