yt-playlist-organizer-mcp
Allows managing YouTube playlists and playlist items, including creating, listing, updating, and deleting playlists and their items via the YouTube Data API.
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., "@yt-playlist-organizer-mcpCreate a new playlist called 'Study Mix'"
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.
yt-playlist-organizer-mcp
An MCP server for organizing YouTube playlists via the YouTube Data API v3.
It does exactly one thing and nothing more: create, list, update, and delete playlists and their playlist items. It does not touch videos, channels, captions, comments, subscriptions, or any other YouTube Data API resource.
Built with the official @modelcontextprotocol/sdk
and the YouTube Data API v3 REST endpoints (no heavy googleapis dependency).
Tools
Everything this server does. There are no other tools.
Playlists (/playlists)
Tool | HTTP | Quota | Description |
| GET | 1 | List playlists by |
| POST | 50 | Create a playlist (requires |
| PUT | 50 | Modify a playlist (requires |
| DELETE | 50 | Delete a playlist (requires |
PlaylistItems (/playlistItems)
Tool | HTTP | Quota | Description |
| GET | 1 | List items by |
| POST | 50 | Add a |
| PUT | 50 | Modify a playlist item (e.g. its |
| DELETE | 50 | Remove a playlist item (requires |
Plus auth_status to check which credentials are configured.
Related MCP server: youtube-mcp
Configuration
This server only ever calls the /playlists and /playlistItems endpoints.
The rest of the YouTube Data API is out of scope.
The server reads two environment variables:
Variable | Purpose |
| Google API key. Enables public reads ( |
| OAuth2 access token. Required for write tools and |
See .env.example.
Reads (
..._list) work with just an API key (or an access token).Writes (
insert/update/delete) andmine=truerequire an OAuth2 access token with the scopesyoutube,youtube.force-ssl, oryoutubepartner.
Getting OAuth2 credentials
Create a project in Google Cloud Console.
Enable the YouTube Data API v3.
Create an OAuth2 client ID (Desktop app) and download the JSON.
Exchange credentials for an access token (e.g. via
google-auth-oauthlibon Python, or a local OAuth flow service). SetYOUTUBE_ACCESS_TOKEN=<token>.(Optional) Create an API key for simpler read-only use.
Nix
This is NixOS-friendly. Both a flake and a shell.nix are provided.
# Enter the dev shell (node + typescript toolchain)
nix develop
# or, non-flake:
nix-shellBuild
npm install # install node deps (zod + MCP SDK)
npm run build # emits dist/
npm run typecheck # tsc --noEmitRun locally
# Reads only (API key):
YOUTUBE_API_KEY=... node dist/index.js
# Reads + writes/mine (OAuth access token):
YOUTUBE_ACCESS_TOKEN=... node dist/index.jsWiring into opencode
Add the following to ~/.config/opencode/opencode.jsonc under mcp:
"mcp": {
"yt-playlist-organizer-mcp": {
"type": "local",
"command": ["node", "<path-to-repo>/dist/index.js"],
"enabled": true,
"environment": {
"YOUTUBE_API_KEY": "{file:~/.secrets/yt-api-key}",
"YOUTUBE_ACCESS_TOKEN": "{file:~/.secrets/yt-access-token}"
}
}
}Replace <path-to-repo> with the absolute path where you cloned it, or install
it via npm to run it by name:
npm install -g .
# then use: "command": ["yt-playlist-organizer-mcp"]To run it through the Nix shell instead, use the same key but change command:
"command": ["nix", "develop", "<path-to-repo>", "--command", "node", "dist/index.js"],Notes
Quota costs are per the official API docs and documented per tool.
partvalues are validated against the valid sets for each resource.playlists_list/playlistItems_listrequire exactly one filter parameter; otherwise input validation rejects the call.Update tools (
playlists_update,playlistItems_update) read the existing resource first and preserve any omitted fields (e.g.description,privacyStatus,position,contentDetails), rather than clearing them. Each update therefore costs an extra read against your quota.startAt/endAtare provided in seconds and converted to ISO 8601 durations (PT1M30S) before being sent to the API.
Development
npm install
npm test # vitest unit tests
npm run typecheck
npm run buildLicense
MIT
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
- FlicenseNot gradedqualityDmaintenanceAn MCP server that enables interaction with the YouTube Data API, allowing users to search videos, get video and channel details, analyze trends, and fetch video transcripts.
- FlicenseBqualityCmaintenanceMCP server for YouTube Data API v3 enabling video search, channel lookup, trending content, comments, and playlist management.11
- FlicenseNot gradedqualityBmaintenanceAn MCP server for managing YouTube Music playlists via Claude. Add and remove songs, create playlists, and ask Claude to suggest music — all through conversation.
- FlicenseNot gradedqualityCmaintenanceA simple MCP server to manage YouTube playlists built in TypeScript.
Related MCP Connectors
YouTube MCP — wraps the YouTube Data API v3 (BYO API key)
MCP server for generating rough-draft project plans from natural-language prompts.
A MCP server built for developers enabling Git based project management with project and personal…
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/Thib-ai/yt-playlist-organizer-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server