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.

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

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

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

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables 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.
      -
    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables searching YouTube Music and managing playlists: create/delete playlists, add/remove/reorder tracks, and more via natural language.
      -