youtube-mcp
Provides tools for interacting with YouTube via the YouTube Data API v3, enabling users and AI agents to upload and manage videos, manage comments, search YouTube, view channel and video analytics, and manage playlists.
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-mcp
YouTube CLI and MCP tool for humans and AI agents. Upload videos, manage comments, search, view analytics, and more — from your terminal or via any MCP-compatible AI agent.
The CLI command is just yt — short and sweet.
Install
brew install virat-mankali/tap/youtube-mcpRelated MCP server: YouTube MCP Server
Setup
Go to console.cloud.google.com
Create a project and enable YouTube Data API v3
Create an OAuth 2.0 Client ID (Desktop App type)
Copy your Client ID and Client Secret, then run:
yt auth login --client-id YOUR_ID --client-secret YOUR_SECRETCLI Usage
# Auth
yt auth login
yt auth login --manual # SSH/headless environments
yt auth logout
yt auth status
# Videos
yt videos list
yt videos get <videoId>
yt videos upload ./video.mp4 --title "My Video" --privacy public
yt videos update <videoId> --title "New Title"
yt videos delete <videoId> --yes
# Comments
yt comments list <videoId>
yt comments reply <commentId> "Thanks!"
yt comments post <videoId> "Great video!"
yt comments delete <commentId>
# Search
yt search "typescript tutorials"
yt search "react hooks" --order viewCount --max-results 5
# Analytics
yt analytics channel
yt analytics video <videoId>
# Playlists
yt playlists list
yt playlists create "My Playlist"
yt playlists add <playlistId> <videoId>
# MCP Server
yt serveMCP Config
Add to your MCP client config (e.g. Claude Desktop, Kiro, Cursor):
{
"mcpServers": {
"youtube": {
"command": "yt",
"args": ["serve"]
}
}
}Or pass credentials via env vars for headless setups:
{
"mcpServers": {
"youtube": {
"command": "yt",
"args": ["serve"],
"env": {
"YOUTUBE_CLIENT_ID": "your_client_id",
"YOUTUBE_CLIENT_SECRET": "your_client_secret",
"YOUTUBE_ACCESS_TOKEN": "ya29.xxx",
"YOUTUBE_REFRESH_TOKEN": "1//xxx"
}
}
}
}Environment Variables
Variable | Description |
| Google OAuth2 Client ID |
| Google OAuth2 Client Secret |
| Access token (overrides saved token) |
| Refresh token (overrides saved token) |
MCP Tools
Tool | Description |
| List your uploaded videos |
| Get video details |
| Upload a video |
| Update video metadata |
| Delete a video |
| List comments on a video |
| Reply to a comment |
| Post a new comment |
| Delete a comment |
| Search YouTube |
| Get channel statistics |
| Get video statistics |
| List your playlists |
| Create a playlist |
| Add a video to a playlist |
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
YouTube for AI agents: transcripts, comments, video stats, channel monitor, Shorts captions.
YouTube transcripts, search, channel/playlist listings and upload tracking for AI agents.
YouTube transcripts, search, channels, playlists and bulk transcript jobs for AI agents. 14 tools.
Search YouTube videos, read transcripts and get public video information in your AI assistant.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with YouTube through the YouTube Data API, allowing users to search for videos, playlists, and channels, generate video titles using AI, and manage YouTube content through natural language commands.22ISC
- AlicenseAqualityDmaintenanceEnables AI models to interact with YouTube content including video details, transcripts, channel information, playlists, and search functionality through the YouTube Data API.732 npm11MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to search videos, read channels, browse playlists, fetch comments, and get transcripts from YouTube using the YouTube Data API v3 and InnerTube API for captions.2GPL 3.0
- AlicenseBqualityCmaintenanceProvides comprehensive access to YouTube Data, Analytics, and Reporting APIs, enabling AI assistants to manage videos, analyze performance, handle comments, and extract transcripts.40MIT