youtube-music-mcp
Provides tools to search YouTube for songs and manage YouTube playlists and their tracks via the YouTube Data API v3, including creating, updating, deleting, and modifying playlists.
Allows searching for songs and editing the user's YouTube Music playlists through the underlying YouTube playlists, with tools to list, create, rename, change privacy, delete playlists, and add or remove tracks.
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.
youtube-music-mcp
An MCP server that lets Claude search songs and edit your YouTube Music playlists.
It uses Google's official YouTube Data API v3 with your own Google OAuth credentials. YouTube Music playlists are regular YouTube playlists, so everything you change here shows up in YouTube Music.
Tools
Tool | What it does | Quota cost |
| Search songs (YouTube Music category) | 100 |
| List your playlists | 1 per 50 playlists |
| List the tracks of a playlist | 1 per 50 tracks |
| Create a playlist (private by default) | 50 |
| Rename, change description or privacy | 51 |
| Delete a playlist | 50 |
| Append tracks (ids or links) | 50 per track |
| Remove tracks (ids or links) | 50 per track + reads |
Google gives each project 10,000 units per day for free, which is about 100 searches or 200 track additions. The quota resets at midnight Pacific time.
Limits of the official API: search returns YouTube videos, so a result can be a music video rather than the album version. YouTube Music features such as "Liked music", library albums, radio and recommendations are not reachable through it.
Related MCP server: YouTube MCP Server
Setup
Last verified: 2026-11-26, Windows 11, Node 22.13.
1. Install
Requires Node.js 22 or newer.
git clone https://github.com/mathplayer31/youtube-music-mcp.git
cd youtube-music-mcp
npm installnpm install also builds the server into dist/.
2. Create your Google credentials
All in https://console.cloud.google.com with the Google account that owns your YouTube Music playlists.
Top bar, project picker, New project. Name it
youtube-music-mcp, then Create and select it.APIs & Services > Library, search YouTube Data API v3, then Enable.
Google Auth Platform (OAuth consent screen), Get started:
App name:
youtube-music-mcp, support email: your emailAudience: External
Contact email: your email, accept the policy, Create
Audience, under Publishing status click Publish app, then Confirm. Without this step the app stays in "Testing" and Google expires your login every 7 days. The app stays unverified, which is fine for personal use.
Clients > Create client, Application type Desktop app, name
youtube-music-mcp, Create. Keep the window with the Client ID and Client secret open.
3. Add the credentials
Copy .env.example to .env in the repo folder and paste your values:
YTM_CLIENT_ID=1234567890-abc.apps.googleusercontent.com
YTM_CLIENT_SECRET=GOCSPX-....env is gitignored. Never commit it.
4. Log in once
npm run authYour browser opens on Google's login page. Because the app is unverified, Google shows "Google hasn't verified this app": click Advanced, then Go to youtube-music-mcp (unsafe), then Continue. The terminal prints Logged in. and the token is saved to %USERPROFILE%\.youtube-music-mcp\token.json.
5. Connect it to Claude
Claude Code:
claude mcp add youtube-music -s user -- node "C:/full/path/to/youtube-music-mcp/dist/index.js"Claude Desktop: edit %APPDATA%\Claude\claude_desktop_config.json, then restart Claude Desktop:
{
"mcpServers": {
"youtube-music": {
"command": "node",
"args": ["C:/full/path/to/youtube-music-mcp/dist/index.js"]
}
}
}Then ask Claude things like "make me a private playlist of 90s French rap classics" or "remove every live version from my Workout playlist".
Development
npm testBuilds with tsc and runs the unit tests in src/*.test.ts.
Revoking access
Delete %USERPROFILE%\.youtube-music-mcp\token.json and remove the app at https://myaccount.google.com/permissions.
License
MIT
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
Search YouTube videos, read transcripts and get public video information in your AI assistant.
YouTube transcripts, search, channels, playlists and bulk transcript jobs for AI agents. 14 tools.
YouTube transcripts, search, channel/playlist listings and upload tracking for AI agents.
YouTube discovery, transcripts, library search, and monitors with API keys or OAuth.
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 Claude to interact with YouTube Data API for searching videos, channels, and playlists, and retrieving details and playlists.MIT
- FlicenseNot gradedqualityDmaintenanceEnables Claude to search YouTube for artists and manage playlists on your YouTube account.1-
- AlicenseAqualityCmaintenanceEnables conversational YouTube playlist management via Claude, allowing creation, pruning, cleanup, and deletion of playlists through the YouTube Data API v3.5224 npm1MIT