youtube-video-analyzer MCP Server
MCP stdio server for analyzing YouTube videos with Google Gemini
youtube-video-analyzer scores 54 (Fair), licensed MIT and written in TypeScript. It installs as a local process. It declares 11 tools. Filed under Media. GitHub shows 5 stars. Package registries report about 50 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
54 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade A
90/100 for listing completeness. Lost points: short summary, no docs link.
How quality is graded
Where the 54 comes from
22 + 5 + 3 + 10 + 4 + 10 = 54. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 5 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 3 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "ludmila-omlopes-youtube-video-analyzer-mcp": { "command": "npx", "args": [ "-y", "@ludylops/youtube-video-analyzer-mcp@0.2.1" ], "env": { "GEMINI_API_KEY": "YOUR_GEMINI_API_KEY", "GEMINI_MODEL": "", "YT_DLP_PATH": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
GEMINI_API_KEYSecret | Required | Google Gemini API key. |
GEMINI_MODEL | Optional | Optional Gemini model override. |
YT_DLP_PATH | Optional | Optional path to a yt-dlp executable. |
Tools11Tool docs quality grade C
All capabilitiesanalyzes long videos or VODs as a required MCP task.
analyzes short videos or bounded clip windows.
analyzes speech-focused videos using audio-first instructions.
cancels a background long-video job.
asks follow-up questions for a previous long-video session as a required MCP task.
fetches a completed background long-video job result.
polls a background long-video job.
inspects local support for long-video strategies.
extracts a high-resolution JPEG frame at a timestamp, with optional Gemini timestamp refinement before local extraction.
fetches normalized public YouTube metadata.
starts a background long-video job and returns a jobId.
About
YouTube Video Analyzer MCP
MCP stdio server for analyzing public YouTube videos with Google Gemini.
Use it from any MCP-compatible client to summarize videos, extract timestamped insights, analyze spoken content, inspect metadata, work with long VODs, and ask follow-up questions against reusable long-video sessions.
What It Can Do
- Analyze public YouTube videos with Gemini.
- Analyze speech-focused videos with audio-first instructions.
- Fetch normalized YouTube metadata through the YouTube Data API.
- Extract high-resolution JPEG frames from YouTube videos with
yt-dlpandffmpeg. - Analyze long videos and VODs through required MCP tasks.
- Analyze long videos and VODs through compatibility background jobs for clients without MCP task support.
- Reuse long-video sessions for follow-up questions.
- Fall back to URL chunking when local download tools are unavailable.
- Return structured JSON when you provide a custom response schema.
Requirements
- Node.js 20 or newer.
- A Gemini API key.
- Optional: a YouTube Data API key for metadata lookup.
- Optional for best long-video support:
yt-dlpandffmpeg.
Quick Start
Use the published package directly from your MCP client with npx:
{
"mcpServers": {
"youtube-analyzer": {
"command": "npx",
"args": ["-y", "@ludylops/youtube-video-analyzer-mcp"],
"env": {
"GEMINI_API_KEY": "your_gemini_key_here",
"YOUTUBE_API_KEY": "optional_youtube_key_here"
}
}
}
}
GEMINI_API_KEY is required. YOUTUBE_API_KEY is only required for get_youtube_video_metadata.
Global Setup
You can also install the package globally and store reusable config:
npm install -g @ludylops/youtube-video-analyzer-mcp
youtube-video-analyzer-mcp setup
Then your MCP client can use:
{
"mcpServers": {
"youtube-analyzer": {
"command": "youtube-video-analyzer-mcp"
}
}
}
Packages
This repository is a small npm workspace:
@ludylops/video-analysis-core: reusable transport-agnostic video analysis logic inpackages/video-analysis-core.@ludylops/youtube-video-analyzer-mcp: MCP stdio server adapter in the repository root.
The MCP server depends on the core package, so SaaS apps, CLIs, skills, and other integrations can reuse the same analysis logic without depending on MCP.
Local Development
npm install
npm run build
npm test
npm start
Copy .env.example to .env for local runs:
GEMINI_API_KEY=your_gemini_api_key_here
YOUTUBE_API_KEY=your_youtube_api_key_here
GEMINI_MODEL=gemini-2.5-pro
YT_DLP_PATH=yt-dlp
MCP_LOG_LEVEL=warn
Tools
get_youtube_analyzer_capabilities: inspects local support for long-video strategies.get_youtube_video_metadata: fetches normalized public YouTube metadata.get_youtube_video_frame: extracts a high-resolution JPEG frame at a timestamp, with optional Gemini timestamp refinement before local extraction.analyze_youtube_video: analyzes short videos or bounded clip windows.analyze_youtube_video_audio: analyzes speech-focused videos using audio-first instructions.analyze_long_youtube_video: analyzes long videos or VODs as a required MCP task.start_long_youtube_analysis: starts a background long-video job and returns ajobId.get_long_youtube_analysis_status: polls a background long-video job.get_long_youtube_analysis_result: fetches a completed background long-video job result.cancel_long_youtube_analysis: cancels a background long-video job.continue_long_video_analysis: asks follow-up questions for a previous long-video session as a required MCP task.
For detailed inputs, strategies, and examples, see docs/tools.md.
Long Videos
For VODs and long videos, call get_youtube_analyzer_capabilities first.
The native long-video tools require MCP task execution. If your client only supports synchronous tool calls with a fixed timeout such as 120 seconds, use the compatibility job workflow: start_long_youtube_analysis, poll get_long_youtube_analysis_status, then fetch get_long_youtube_analysis_result. You can also analyze shorter bounded windows with analyze_youtube_video.
When yt-dlp, ffmpeg, and a writable temp directory are available, use analyze_long_youtube_video with strategy=auto or strategy=uploaded_file. This path can create a reusable Gemini file session and return a sessionId.
When local download tools are unavailable, use strategy=url_chunks. It avoids local media downloads, but can require more Gemini calls.
Read the full guide in docs/long-videos.md.
Documentation
Privacy And Limitations
This server sends the YouTube URL, prompts, and relevant media or derived chunks to Google Gemini. With strategy=uploaded_file, local tools may download temporary media before uploading it to Gemini. get_youtube_video_frame downloads a small temporary high-quality video window and returns an exact JPEG frame; if timestamp refinement is requested, Gemini is used only to choose a timestamp, not to create image pixels. With strategy=url_chunks, the server avoids local media downloads but may make more Gemini calls.
Private, deleted, age-restricted, member-only, DRM-protected, or region-blocked videos may fail depending on YouTube and Gemini access. Users are responsible for complying with YouTube terms, Gemini API terms, copyright rules, and local law.
Project Layout
packages/video-analysis-core/src: reusable video analysis core.src/server.ts: MCP server and tool registration.src/mcp-server-main.ts: stdio transport entry point.src/platform-runtime: runtime adapters used by the MCP server.bin/youtube-video-analyzer-mcp.js: CLI wrapper and setup flow.src/test: test suite.
Contributing
Contributions are welcome. Start with CONTRIBUTING.md, run npm test before opening changes, and update CHANGELOG.md for user-visible behavior changes.
License
MIT. See LICENSE.
Frequently asked questions
What is youtube-video-analyzer MCP Server?
MCP stdio server for analyzing YouTube videos with Google Gemini
How do I install youtube-video-analyzer MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. youtube-video-analyzer MCP Server runs locally from the npm package @ludylops/youtube-video-analyzer-mcp with the command npx -y @ludylops/youtube-video-analyzer-mcp@0.2.1.
Is youtube-video-analyzer MCP Server free and open source?
Yes. youtube-video-analyzer MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does youtube-video-analyzer MCP Server support remote (HTTP) connections?
No remote endpoint is listed for youtube-video-analyzer MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does youtube-video-analyzer MCP Server provide?
youtube-video-analyzer MCP Server provides 11 tools, including analyze_long_youtube_video, analyze_youtube_video, analyze_youtube_video_audio, and cancel_long_youtube_analysis. See the full tool list for descriptions and parameters.
How is youtube-video-analyzer MCP Server's trust score calculated?
youtube-video-analyzer MCP Server scores 54 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.