mcp-youtube
Provides tools for managing YouTube playlists, including searching, listing, creating, adding to, pruning, and deleting playlists through the YouTube Data API v3.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-youtubeClean up tombstones and duplicates in my 'Favorites' playlist."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
▶️ MCP server for the full YouTube Data API v3 — playlists, videos, channels, community, captions, and media, conversationally from any MCP client
Website · Documentation
Features
Full YouTube Data API v3 coverage — 52 tools spanning playlists, videos, channels & sections, subscriptions, comments, captions, thumbnails, watermarks, playlist cover images, and read-only reference data, all under the
youtube.force-sslscopeQuota-aware by design — every tool documents its cost up front, from 1-unit reads to the 1600-unit
upload-videoGuarded destructive actions — every delete, unsubscribe, moderation action, or other irreversible/outward tool refuses to run without
confirm: trueFull-replace done safely — YouTube's
updatemethods overwrite an entire resource part; tools likeupdate-video,update-playlist,update-channel, andupdate-channel-sectionread the current resource first so an update that only changes one field never silently blanks the restSafe bulk cleanup —
clean-playlistscans for[Deleted video]/[Private video]tombstones, duplicates, and videos from named channels, then defaults to a dry run so you see the plan before anything is removedLocal-file media uploads — videos, captions, thumbnails, watermarks, and playlist cover images all upload from a local file path via resumable upload where the API requires it
One-time OAuth setup — a desktop-flow
npm run setuphandles Google authorisation and prints a refresh token; you supply it (and the client id/secret) to the server via environment variables, from any store you likeTyped end to end — Zod-validated tool schemas and a Vitest suite covering every handler
Related MCP server: youtube-research
Install
The server works with any MCP-compatible client — Claude Desktop, Claude Code, Cursor, Cline, Zed, Continue, and others.
Install the package:
npm install -g @kud/mcp-youtubeIn Claude Code or Claude Desktop you can instead install it as a plugin, which wires up the registration for you:
/plugin install youtube@kudEither way, run the one-time OAuth setup before first use:
npm run setupThis walks you through creating a Google Cloud OAuth client (Desktop app type), opens a browser to authorise the youtube.force-ssl scope, and prints the resulting credentials — it writes nothing to disk. Stash them wherever you keep secrets (keychain, secrets manager, your MCP client's env block) and expose them to the server as environment variables:
Variable | Holds |
| OAuth client ID |
| OAuth client secret |
| long-lived refresh token |
The server reads these three from the environment only — it's store-agnostic, so how they get there is up to you. A keychain-backed export works well:
export MCP_YOUTUBE_REFRESH_TOKEN=$(security find-generic-password -s mcp-youtube-refresh-token -w)Tip: set the OAuth app's publishing status to In production in Google Cloud.
youtube.force-sslis a sensitive scope, and while the app sits in Testing the refresh token expires after 7 days.
Configuration
Register the server with your MCP client. The exact config file and its location depend on the client — Claude Desktop, for example, uses claude_desktop_config.json (Settings → Developer → Edit Config); Cursor, Cline, Zed, and Continue each have their own. The registration follows the standard mcpServers shape:
{
"mcpServers": {
"youtube": {
"command": "npx",
"args": ["-y", "@kud/mcp-youtube"],
"env": {
"MCP_YOUTUBE_CLIENT_ID": "your-client-id",
"MCP_YOUTUBE_CLIENT_SECRET": "your-client-secret",
"MCP_YOUTUBE_REFRESH_TOKEN": "your-refresh-token"
}
}
}
}If you installed via /plugin install youtube@kud, the plugin handles registration — you only need to supply the three environment variables above.
Usage
YouTube's Data API v3 gives every project a fixed 10,000 quota units/day. A single careless search, bulk delete, or video upload can burn through a meaningful chunk of that, so every tool documents its cost up front — and every destructive or outward-irreversible tool requires an explicit confirm: true.
52 tools cover the full read/write surface reachable under the youtube.force-ssl scope:
Category | Tools | Docs |
Searching |
| |
Playlists |
| |
Cleaning |
| |
Deleting |
| |
Videos |
| |
Channels & sections |
| |
Community |
| |
Captions & media |
| |
Reference data |
|
Once installed, just ask your MCP client:
> Clean up the tombstones in my "Focus" playlist
Scanned 214 items — found 6 tombstones ([Deleted video]/[Private video]).
This is a dry run, no changes made. Estimated cost to delete: 300 units.
Want me to go ahead?
> Yes, and dedupe it too
Deleted 6 tombstones and 3 duplicates (9 items, 450 units).clean-playlist always returns its plan first — pass dryRun: false (or just confirm in conversation) to actually delete.
Development
git clone https://github.com/kud/mcp-youtube.git
cd mcp-youtube
npm install
npm run devScript | Purpose |
| Run the server directly from source ( |
| Compile to |
| Run the Vitest suite |
| Type-check without emitting |
| Launch the MCP Inspector against source |
📚 Full documentation → mcp-youtube/docs
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceEnables Claude to access and manage YouTube channel data through the YouTube Data API v3 and YouTube Analytics API. Provides tools for reading analytics, fetching video metadata, searching uploads, and updating video SEO directly from Claude.Last updated9MIT
- AlicenseAqualityDmaintenanceEnables YouTube integration with Claude Code, including video search, metadata retrieval, transcript fetching, channel exploration, and trending videos.Last updated81MIT
- Flicense-qualityDmaintenanceEnables Claude to interact with YouTube Data API for searching videos, channels, and playlists, and retrieving details and playlists.Last updated31
- Flicense-qualityDmaintenanceEnables Claude to search YouTube for artists and manage playlists on your YouTube account.Last updated1
Related MCP Connectors
Provide token-optimized, structured YouTube data to enhance your LLM applications. Access efficien…
WHOOP recovery, strain, sleep and workouts in Claude via official WHOOP OAuth. Free, open source.
YouTube MCP — wraps the YouTube Data API v3 (BYO API key)
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kud/mcp-youtube'
If you have feedback or need assistance with the MCP directory API, please join our Discord server