mcp-youtube-analyzer
Provides tools to fetch YouTube video metadata, extract transcripts with fallback and pagination, capture frames at intervals or scene changes, and interleave transcript with frames for chronological video analysis.
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.
mcp-youtube-analyzer
An MCP server that lets AI assistants analyze YouTube videos — fetch metadata, extract transcripts, and capture frames.
Features
get_video_info — Fetch video metadata (title, channel, duration, views, available subtitles)
get_transcript — Extract transcripts with timestamps, with automatic fallback (captions → yt-dlp subtitles → Whisper)
extract_frames — Capture frames at regular intervals or on scene changes, returned as base64 JPEG
analyze_video — Combined transcript + frames interleaved chronologically
Related MCP server: youtube-mcp
Quick Start
Prerequisites
Python 3.11+
Install from source
git clone https://github.com/TommasoBagassi/mcp-youtube-analyzer.git
cd mcp-youtube-analyzer
uv syncMCP Configuration
Claude Code
claude mcp add youtube-analyzer -- uvx mcp-youtube-analyzerOr from a local clone:
claude mcp add youtube-analyzer -- uv run --directory /path/to/mcp-youtube-analyzer mcp-youtube-analyzerClaude Desktop
Add to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"youtube-analyzer": {
"command": "uvx",
"args": ["mcp-youtube-analyzer"]
}
}
}Or from a local clone:
{
"mcpServers": {
"youtube-analyzer": {
"command": "uv",
"args": ["run", "--directory", "/path/to/mcp-youtube-analyzer", "mcp-youtube-analyzer"]
}
}
}Tools
get_video_info
Get video metadata without downloading.
Parameter | Type | Required | Description |
| string | yes | YouTube video URL or video ID |
get_transcript
Extract transcript/subtitles with a 3-step fallback chain.
Parameter | Type | Required | Default | Description |
| string | yes | — | YouTube video URL or video ID |
| string | no |
| Preferred language code |
| boolean | no |
| Include |
| string | no |
| Pagination cursor from a previous response |
Returns paginated text (50,000 char chunks). Use the returned next_cursor value to fetch subsequent pages.
extract_frames
Extract frames as base64 JPEG images.
Parameter | Type | Required | Default | Description |
| string | yes | — | YouTube video URL or video ID |
| integer | no |
| Seconds between captures (interval mode) |
| string | no |
|
|
| integer | no |
| Maximum frames to return |
| integer | no |
| Max height in pixels |
| integer | no |
| JPEG quality (1-100) |
| integer | no |
| Start of segment in seconds |
| integer | no |
| End of segment in seconds |
analyze_video
Combined transcript + frames, interleaved chronologically. Uses tighter defaults to manage output size.
Parameter | Type | Required | Default | Description |
| string | yes | — | YouTube video URL or video ID |
| string | no |
| Preferred transcript language |
| integer | no |
| Seconds between frame captures |
| integer | no |
| Maximum frames to return |
| integer | no |
| JPEG quality (1-100) |
| integer | no |
| Start of segment in seconds |
| integer | no |
| End of segment in seconds |
Authentication
By default, only public videos are accessible. For private or age-restricted videos, configure cookie-based authentication via environment variables:
Variable | Description |
| Browser to extract cookies from (e.g., |
| Path to a Netscape-format cookies.txt file |
YOUTUBE_COOKIE_SOURCE takes precedence if both are set.
Example (Claude Code):
claude mcp add youtube-analyzer -e YOUTUBE_COOKIE_SOURCE=firefox -- uvx mcp-youtube-analyzerExample (Claude Desktop):
{
"mcpServers": {
"youtube-analyzer": {
"command": "uvx",
"args": ["mcp-youtube-analyzer"],
"env": {
"YOUTUBE_COOKIE_SOURCE": "firefox"
}
}
}
}Configuration
Variable | Default | Description |
|
| Maximum allowed video duration in seconds |
|
| faster-whisper model name for local transcription fallback |
Whisper (optional)
The Whisper transcription fallback is only used when no captions or subtitles are available. Install with:
uv sync --extra whisperTesting
Run unit tests:
uv run pytest tests/ -v -m "not integration"Run integration tests (requires network access, hits real YouTube):
uv run pytest tests/ -v --integrationLicense
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.
Search YouTube videos, read transcripts and get public video information in your AI assistant.
YouTube transcripts, search, channels, playlists and bulk transcript jobs for AI agents. 14 tools.
YouTube transcripts, search, channel/playlist listings and upload tracking for AI agents.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables AI assistants to analyze and summarize YouTube videos by extracting captions, subtitles, and comprehensive metadata including title, description, and duration in multiple languages.145 npm62MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to watch YouTube videos by extracting frames at scene changes and visual references, pairing each frame with the exact words spoken at that timestamp. Provides dense frame-transcript interleaving for any model.7MIT
- FlicenseNot gradedqualityDmaintenanceEnables LLMs to interact with YouTube videos by fetching transcripts, summarizing content, and answering questions based on video context.-
- FlicenseAqualityDmaintenanceEnables AI assistants to analyze YouTube channels, videos, transcripts, and content strategy through structured tool calls.17-