# Video URL Analyzer [Health: Active]

**Category:** 🌐 Social Media  
**Repository:** https://github.com/u2n4/video-url-analyzer-mcp  
**GitHub Stars:** 6  
**Views:** 4  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/video-url-analyzer

## Description
Analyze YouTube/TikTok/Instagram videos: transcripts, AI insights, tutorial extraction

## Tools
Capabilities this server exposes over MCP:

- **analyze_video** — Analyze a video or photo/slideshow post from YouTube, TikTok, or Instagram.

Provides comprehensive audio + visual analysis using Gemini AI.
Works with videos AND photo/slideshow posts on TikTok, Instagram, and
YouTube community posts.
YouTube videos are analyzed directly and return the result immediately.
TikTok and Instagram videos are processed in the background — the tool
returns a job_id. Use check_analysis_job(job_id) to poll for the result.
- **get_transcript** — Extract speech transcript from a video or slideshow audio track.

YouTube returns the result immediately. TikTok/Instagram return a job_id —
use check_analysis_job(job_id) to poll for the result.
Slideshows without audio return a structured slideshow_no_audio response.
- **ask_about_video** — Ask a specific question about a video or photo/slideshow post.

Works with videos AND photo/slideshow posts on TikTok, Instagram, and
YouTube community posts.
YouTube returns the answer immediately. TikTok/Instagram return a job_id —
use check_analysis_job(job_id) to poll for the result.
- **prepare_slideshow_assets** — Return slideshow images as ordered MCP image blocks for client-side vision.

This tool does not call Gemini. It downloads TikTok Photo Mode,
Instagram photo/carousel posts, or YouTube community post images, then
returns each image directly to the MCP client with an explicit
image_index label. Use it when you want Claude/the client AI to inspect
the images itself instead of receiving a Gemini-generated analysis.
- **find_video_moments** — Find moments in a video matching a semantic query.

Gemini performs the video/audio/visual reasoning.
detail controls model + max_output_tokens + thinking/media config.
compact is default and returns concise structured JSON.
- **analyze_video_segment** — Analyze only a selected video segment.

Uses Gemini video_metadata clipping when available.
Gemini performs video/audio/visual reasoning.
detail controls model + max_output_tokens + thinking/media config.
- **prepare_video_context** — Analyze a whole video once and save a local structured context.
- **ask_video_context** — Answer a question from saved video context without Gemini by default.
- **list_video_contexts** — List saved local video context files.
- **delete_video_context** — Delete one saved local video context file.
- **get_video_frame** — Extract a local still frame and return compact asset metadata.
- **get_video_clip** — Extract a local video clip under 30 seconds and return metadata.
- **get_video_evidence_asset** — Find saved visual evidence and return a local frame/clip reference.
- **list_video_sources** — List cached video sources, contexts, and assets. Never calls Gemini.
- **cleanup_video_cache** — Inspect or clean managed video cache files. Safe dry-run by default.
- **watch_and_analyze** — Watch a video tutorial and extract all technical steps, commands, and code.

Downloads the video, analyzes it with Gemini AI, and returns structured
JSON with every command, code snippet, file path, and tool mentioned.
YouTube returns the result immediately. TikTok/Instagram return a job_id —
use check_analysis_job(job_id) to poll for the result.

This tool ONLY analyzes — it does NOT execute anything.
Use execute_tutorial_steps to run the extracted steps after review.
- **check_analysis_job** — Check the status of a background video analysis job.

When analyze_video, get_transcript, ask_about_video, or watch_and_analyze
returns a job_id (for TikTok/Instagram videos), use this tool to poll
for the result. Keep calling until status is "completed" or "failed".
- **execute_tutorial_steps** — Review or execute tutorial steps extracted by watch_and_analyze.

SAFETY: By default (confirm=false), this only shows a summary of what
WOULD be executed. Set confirm=true ONLY after reviewing the steps.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "video-url-analyzer": {
    "command": "uvx",
    "args": ["video-url-analyzer-mcp"],
    "env": {
      "GEMINI_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `GEMINI_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Video URL Analyzer does

Video URL Analyzer brings video and slideshow understanding into an MCP client through Google Gemini, yt-dlp, platform-specific retrieval methods, and local media utilities. It accepts YouTube, TikTok, and Instagram URLs, including TikTok Photo Mode posts, Instagram carousels or single-image posts, and YouTube community post images.

The analysis tools combine audio and visual reasoning. Agents can request a full analysis, obtain a timestamped transcript, ask targeted questions, search for semantically matching moments, or focus analysis on a selected time range. Technical videos receive a specialized workflow that identifies commands, code, paths, tools, and other tutorial steps without executing them automatically.

## How it works

YouTube videos are sent to Gemini through the platform's direct video path, so analysis can return without downloading the complete video. TikTok and Instagram content is retrieved through fast-path services or scraping with yt-dlp fallback, then processed asynchronously to avoid client timeouts. These operations return a `job_id`; `check_analysis_job` should be called until the job is completed or failed.

Slideshow handling varies by platform. Images can be analyzed together by Gemini, or `prepare_slideshow_assets` can return ordered MCP image blocks for the client model to inspect itself. Local workflows can save a structured context from a full analysis, use that context for follow-up questions, and retrieve related frames or short clips. Cache and source listing tools expose local metadata without invoking Gemini.

## Setup and configuration

The server uses stdio transport and supports Python 3.10 or newer. It can be run with `uvx video-url-analyzer-mcp`, installed from a checkout with `pip install -e .`, or launched as a Python module. A Google Gemini API key must be available as `GEMINI_API_KEY`.

Windows users can use the provided installer or wizard to register the server with supported MCP clients. The setup flow can also store the key in the user environment or a local gitignored key file. `VIDEO_ANALYZER_MODEL` can be used to select a default model. Local frame and clip extraction uses ffmpeg when available.

## Tools and capabilities

- Run full multimodal analysis with custom prompts using `analyze_video`.
- Extract speech transcripts and ask content questions with `get_transcript` and `ask_about_video`.
- Search for semantic moments or analyze only a chosen segment.
- Save, query, list, and delete reusable local video contexts.
- Extract still frames, clips capped at 30 seconds, and saved evidence references.
- Inspect or clean managed cache files, with cleanup defaulting to a dry run.
- Extract tutorial commands and code, then review or optionally execute the resulting steps.

`execute_tutorial_steps` is review-first: without confirmation it reports what would run. Setting confirmation is required before execution.

## Limitations and notes

TikTok and Instagram operations may be asynchronous and require repeated status checks. Instagram posts containing mixed video slides may skip those video slides while retaining metadata. Slideshow posts without an audio track produce a structured no-audio response.

The tutorial workflow analyzes extracted instructions but does not run them unless a separate execution request is confirmed. Gemini-backed analysis requires the API key, while saved-context, cache, frame, clip, and source operations can use local data. YouTube frame and clip extraction may use stream URLs and ffmpeg rather than the direct analysis path.

_Full upstream README: https://allmcps.com/mcp/video-url-analyzer/readme_

