vunm-youtube-mcp
Provides tools for interacting with a YouTube channel, including retrieving channel statistics and analytics, managing video metadata and privacy settings, extracting transcripts, and fetching video comments.
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.
vunm-youtube-mcp
A custom, quota-efficient Model Context Protocol (MCP) server that empowers AI assistants (Antigravity, Claude Desktop, Cursor, Cline) to interact directly with your YouTube channel.
Built with Python and FastMCP, it supports channel analytics, video metadata updates (SEO), high-speed subtitle/transcript extraction, and comment management via official Google APIs with OAuth 2.0.
Key Capabilities
Channel Analytics: Query private metrics directly via YouTube Analytics API v2 (watch time, viewer retention, subscriber gain/loss, demographics).
Video Management: Update titles, descriptions, keyword tags, category, and privacy status (
public,unlisted,private) on YouTube Studio.Quota Efficiency: Uses channel upload playlist indexing (1 API unit) instead of expensive global searches (100 API units).
Zero-Quota Transcripts: Extracts timestamped captions across multiple languages without consuming YouTube Data API quota.
Audience Feedback: Fetches and evaluates recent video comments for sentiment analysis and drafting responses.
Related MCP server: YouTube MCP Server
Tools Catalog
Tool | Category | Description |
| Channel Overview | Retrieve subscriber count, view count, total videos, and channel metadata. |
| Analytics | Query detailed performance metrics by date range (watch time, retention, views, subs). |
| Video Analytics | Fetch deep performance metrics for a specific video ID. |
| Video Management | List uploaded videos (including unlisted/private) with 1-unit quota usage. |
| Video Management | Read full video snippet (title, description, tags, category, privacy, stats). |
| Video Studio | Update title, description, tags, category, and/or privacy status. |
| Content / SEO | Extract formatted subtitles with timestamps |
| Community | Retrieve recent comments on a video for evaluation or reply drafting. |
Quick Start
1. Prerequisites
Python 3.10 or higher.
A Google Cloud Project with:
YouTube Data API v3 enabled.
YouTube Analytics API enabled.
2. Google OAuth 2.0 Credentials Setup
Open Google Cloud Console.
Create or select a project.
Enable YouTube Data API v3 and YouTube Analytics API under APIs & Services $\rightarrow$ Library.
Configure OAuth consent screen (User type: External, add your channel email under Test users).
Go to Credentials $\rightarrow$ Create Credentials $\rightarrow$ OAuth client ID (Application type: Desktop app).
Download the client secret JSON, rename it to
client_secret.json, and place it in:vunm-youtube-mcp/credentials/client_secret.json(Note: The
credentials/folder is strictly ignored by.gitignoreand will never be committed).
3. Installation & First-Time Authentication
# Clone the repository
git clone https://github.com/vunm-io/vunm-youtube-mcp.git
cd vunm-youtube-mcp
# Create virtual environment and install dependencies
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
# Run initial authorization (opens browser to grant permissions)
python authenticate.pyUpon successful login, credentials/token.json is generated and automatically refreshed on subsequent runs.
Integration with AI Clients
Antigravity (Gemini CLI / Antigravity IDE)
Add the server to ~/.gemini/config/mcp_config.json:
{
"mcpServers": {
"vunm-youtube-mcp": {
"command": "/absolute/path/to/vunm-youtube-mcp/.venv/bin/python",
"args": ["-m", "src.server"],
"cwd": "/absolute/path/to/vunm-youtube-mcp"
}
}
}Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"vunm-youtube-mcp": {
"command": "/absolute/path/to/vunm-youtube-mcp/.venv/bin/python",
"args": ["-m", "src.server"],
"cwd": "/absolute/path/to/vunm-youtube-mcp"
}
}
}Security & Privacy
All credentials (
client_secret.json,token.json) remain 100% local on your machine.Scopes requested are strictly limited to YouTube management and read-only analytics.
For security questions or vulnerability reports, please see SECURITY.md.
Contributing & License
Contributions are welcome! Please review CONTRIBUTING.md before submitting a pull request.
Released under the MIT License.
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
Your YouTube channels’ private analytics for AI assistants: revenue, views, retention. Read-only.
YouTube for AI agents: transcripts, comments, video stats, channel monitor, Shorts captions.
Fetch YouTube transcripts, monitor channels and track keyword matches from your AI assistant.
Search YouTube videos, read transcripts and get public video information in your AI assistant.
Related MCP Servers
- 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
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage YouTube channels directly, including video publishing, SEO optimization, playlist curation, community interaction, and traffic analytics, all through local OAuth.2MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to retrieve YouTube channel overviews, Studio analytics, video performance, traffic source breakdowns, and comments for sentiment analysis using natural language prompts.82MIT