ytmcp
Provides AI-driven control of a YouTube Music account through the official web player, including playback and queue management, searching, library access, lyrics, taste notes, liking songs, and creating or editing playlists with permission limits.
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.

Just talk to it
Be my DJ for the next couple of hours. Start with something like Nujabes and drift from there.That's too sleepy. Something with more drive, but no vocals, I'm concentrating.Play the album this song is from, after this one finishes.Remember I don't want anything from this artist in the background while I'm gaming.That's the whole remote control. The agent you already talk to, Claude Code or anything else that speaks MCP, does the talking. YTMcp hands it the music.
Related MCP server: YouTube Music MCP Server
What your DJ does
It keeps the music going. It gets a nudge before every song ends, and when the queue runs low it finds what comes next before the silence does.
It listens to how you listen. Skip a song and it notices. Say "less of this" or "more like that" and it writes it down. Those notes stay on your computer, and you can read or delete every one of them.
It knows when to be quiet. Now and then it asks how the music is going. Ignore it and it asks less. Tell it to pipe down, or to chat more, and it will.
You're always in charge. Pause, skip or reorder with your keyboard's media keys, the window or the tray, and your move beats anything the agent was about to do. No "are you sure?" pop-ups. You were sure. You pressed the key.
Your account is safe with it. Playing and queueing are free for it. Liking songs and making playlists need your permission when you connect the agent, and stop at a daily limit. Editing a playlist you already have needs a separate, time-limited permission for that playlist only. Whatever it changes, it checks with YouTube Music before calling it done.
It's the real YouTube Music. Your account, your subscription, the official player doing the playing. Nothing is downloaded.
And it's a proper player when you want one. Search, your library, the queue, lyrics that follow the song, a day look and a night look, in English or Chinese.
Get started
YTMcp is made for Arch-based Linux with KDE Plasma 6 on Wayland; other setups are untested. You need a YouTube Music account and an AI agent that speaks MCP, such as Claude Code.
1. Install it. It's an Arch package you build yourself from this repository (what you need for that is in docs/building.md):
pnpm install --frozen-lockfile
just package
sudo pacman -U packaging/out/ytmcp-*.pkg.tar.zstComing from YTM Glass, the old name? Quit it first, and say yes when pacman offers to replace it. Your settings, sign-in and library come along.
2. Sign in. Start YTMcp from your app launcher. While you're signed out it offers to open the official YouTube Music page: sign in there, on Google's own page. YTMcp never asks for or records your password.
3. Introduce your agent.
ytmcp register --principal claude-dj --grant dj
claude mcp add ytmcp -s user -- /usr/bin/ytmcp \
--credential-file ~/.config/ytmcp/control-credentials/claude-dj.json --allow-background-startRestart YTMcp once after this first registration. --grant dj lets the agent play, queue and keep taste notes. Add --grant record if it may also like songs and make playlists. With --allow-background-start the agent can wake the player without opening a window, so your game stays in front. Other agents take the same command; see docs/mcp.md.
4. Talk to it. "Be my DJ tonight."
Coming next
The DJ will know what kind of moment it is without being told: the time of day, the day of the week, the holidays where you live and the city you pick (and, if your agent can look things up, the weather there). Friday night, a rainy Sunday morning and New Year's Eve each get their own set. Saying "not today" will still win.
Unofficial
YTMcp is not affiliated with, endorsed by or sponsored by Google or YouTube. "YouTube" and "YouTube Music" are trademarks of Google LLC. The official web player plays every song, you sign in yourself on Google's own page, and no music is downloaded or stored. Use it in line with the YouTube Terms of Service and your YouTube Music subscription.
Learn more
Known issues and the changelog
License
MIT. Third-party notices are installed with the package. The music belongs to the people who made it. Go buy a record.
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.
AI music and podcast platform for autonomous agents. SoundCloud for AI bots.
Autonomous music production for AI agents with MIDI generation, QC and provenance.
The media station for AI agents: buy, rent and stream music. Artists are paid directly, no pooling.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables users to search the YouTube Music catalog and manage playlists using natural language. It provides tools for searching songs, albums, and artists, as well as performing playlist operations like creating, adding, and deleting tracks.-
- 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.-