Skip to main content
Glama

YTMcp in its night and day looks, split down a diagonal: the home view with playlists, recently played songs and the player bar

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.
No Christmas songs today, please.

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 what kind of day it is, if you let it. Friday night, a slow Sunday morning and New Year's Eve each get their own set. Switch it on for an agent in Settings and it gets the time, the day, the holidays where you live and a city you pick for the mood. It never looks up where you actually are. Say "not today" and that holds until midnight, then it lets go.

  • 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. Download ytmcp-1.3.0-1-x86_64.pkg.tar.zst from Releases and install it with pacman:

sudo pacman -U ytmcp-1.3.0-1-x86_64.pkg.tar.zst

Or build the Arch package from this repository (prerequisites in docs/building.md):

pnpm install --frozen-lockfile
just package
sudo pacman -U packaging/out/ytmcp-*.pkg.tar.zst

Coming 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-start

Restart 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."

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

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…

    Related MCP Connectors

    Related MCP Servers