Comprehensive YouTube data extraction with 26 tools. Extract transcripts, search comments, track engagement, and find implementation details from technical tutorials.
*Transcript downloads via OAuth cost 0 quota units!
git clone https://github.com/username/youtube-mcp.git
cd youtube-mcp
pip install -e .
client_secrets.json to ~/.youtube-mcp/# Add your Google account
youtube-mcp-auth add
# Verify it works
youtube-mcp-auth list
youtube-mcp-auth test <account-alias>
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"youtube": {
"command": "/path/to/venv/bin/python",
"args": ["-m", "youtube_mcp"],
"env": {
"YOUTUBE_MCP_CONFIG_DIR": "/Users/username/.youtube-mcp"
}
}
}
}
Automatic token refresh and multi-account support for unlimited quota scaling.
Zero quota cost via OAuth! Smart chunking for long videos, multiple formats supported.
Extract comments with threads, search for issues, find solutions in replies.
Track view velocity, engagement rates, viral indicators, comment timelines.
Cross-account search, concept tracking, code block detection with language filters.
90% quota reduction with intelligent caching system. Fast repeated queries.
Extract video transcripts with intelligent size handling. Long videos return lightweight index, short videos return full transcript.
# Get transcript index for long video
get_video_transcript(video_id="abc123")
# Get specific time range
get_video_transcript(
video_id="abc123",
time_range=["00:10:00", "00:20:00"]
)
# Get chunked full transcript
get_video_transcript(
video_id="abc123",
chunk_size=100,
chunk_index=0
)
Check transcript availability before fetching. Lists available languages, manual vs auto-captions.
check_transcript_availability(video_id="abc123")
# Returns: {available: true, languages: ["en", "es"], has_auto_captions: true}
Search within transcripts with regex support and code block detection. Context enrichment for implementation details.
# Text search
search_transcript(
video_id="abc123",
search_query="authentication",
context_lines=2
)
# Code search with language filter
search_transcript(
video_id="abc123",
search_type="code",
code_language_filter="python"
)
# Enhanced with implementation context
search_transcript(
video_id="abc123",
search_query="API call",
context_type="implementation"
)
Get comprehensive video metadata. Lightweight by default (~2-3KB), optional transcript/comments.
# Metadata only
get_video_context(video_id="abc123")
# With transcript status
get_video_context(
video_id="abc123",
include_transcript_status=True
)
# Full context
get_video_context(
video_id="abc123",
include_transcript=True,
include_comments=True
)
Generate intelligent video summaries from transcript analysis with three detail levels.
get_video_summary(
video_id="abc123",
summary_length="standard" # brief/standard/detailed
)
Search YouTube with advanced filters and sorting options.
search_videos(
query="machine learning tutorial",
duration="medium",
caption="closedCaption",
published_after="2024-01-01T00:00:00Z",
order="viewCount"
)
Cross-account search with automatic deduplication. Powerful for quota balancing.
search_all_accounts(
query="python async tutorial",
max_results_per_account=25
)
Track concepts across multiple videos in a channel or playlist.
# Search across channel
search_concept_across_videos(
concept="async/await",
channel_id="UCxxx",
max_videos=20
)
Extract video comments with thread support and search filtering.
Search for specific comments within a video.
Extract common errors and bugs from comments with solution extraction.
Calculate statistics across multiple videos with channel breakdown.
Analyze video engagement patterns, view velocity, viral indicators.
How this MCP server delivers measurable value for developers and AI-powered workflows
80%+
Automated video research that would take hours manually. Extract transcripts, analyze comments, and find implementation details in minutes instead of hours of manual watching.
90%
Quota savings through OAuth transcript downloads (0 quota units). Multi-account support enables parallel processing without hitting daily limits.
356
Passing tests ensure production reliability. Comprehensive error handling and well-documented API make integration straightforward and maintainable.
Extract implementation details from coding tutorials. Search transcripts for specific functions, libraries, or patterns mentioned in videos.
Analyze engagement patterns, track comment sentiment, and understand what resonates with audiences across multiple channels.
Monitor competitor channels, track trending topics, and identify gaps in content coverage within your industry.
Build knowledge bases from video content. Extract structured data for fine-tuning domain-specific AI models or RAG systems.
Dual-vault knowledge management with AI assistant integration.
Combine YouTube knowledge extraction with structured note-taking for comprehensive research workflows.
AI-powered e-commerce with 7,105 products and knowledge pipeline.
Planned: YouTube MCP curator agent builds self-maintaining knowledge base from installation videos.
Production-ready MCP server with comprehensive documentation and 100% test coverage.