Skip to main content
Glama

video-analyzer

tests PyPI

Let Claude watch short videos from a link: Instagram Reels, YouTube Shorts, X and TikTok (anything yt-dlp supports). Free, local, no API keys.

demo

Paste a link into Claude and ask anything: "summarise this Reel", "why does the hook work?", "fact-check her stock claim", "what do this channel's 10 most-viewed Shorts have in common?"

How it works

link ─► yt-dlp download ─► ffmpeg ─┬─► audio ─► Whisper (local) ─► timestamped transcript
                                   └─► keyframes spread over the video, snapped to scene cuts (first = hook, last = ending)
                                                │
              caption + views/likes + transcript + keyframe images ─► Claude analyses
  • Runs on your machine. Transcription is local (faster-whisper); no API keys, no server.

  • Claude does the thinking. The tool returns raw material; Claude reads the transcript and looks at the keyframes, so music-only Reels with text overlays work too.

  • Whole channels. List a YouTube channel's or TikTok profile's videos (by views) and compare them.

  • Cached. The same link isn't processed twice.

Example

From the demo video (a 15s Reel with text cards and a voice-over), the tool returns a transcript plus these keyframes, one per text card:

keyframes

Claude then answers from both, e.g.:

Gist: a productivity listicle: "3 habits that save 2 hours a day". Hook (0–3s): the promise "save 2 hours a day" spoken and on screen at once. Structure: hook → 3 numbered tips (email twice a day, 2-minute rule, plan tomorrow tonight) → "Follow for more" CTA, about 3s per card.

Related MCP server: mediasense

Install

You need uv and ffmpeg. On macOS: brew install uv ffmpeg (Linux: your package manager's ffmpeg, plus uv). The first run downloads the Whisper speech model (about 1.6 GB).

Claude Code (plugin)

/plugin marketplace add Mahanteshambi/video-analyzer
/plugin install video-analyzer@video-analyzer

Start a new session, then paste a link, or run /video-analyzer:analyze-reel <url> hook.

Claude Desktop (or any MCP client)

Add this to ~/Library/Application Support/Claude/claude_desktop_config.json and restart Claude (use the full path from which uvx; desktop apps don't see your shell PATH):

{
  "mcpServers": {
    "video-analyzer": {
      "command": "/opt/homebrew/bin/uvx",
      "args": ["--from", "video-analyzer-local", "video-analyzer-mcp"]
    }
  }
}

Terminal

uvx --from video-analyzer-local video-analyzer "https://www.instagram.com/reel/XXXXXXXXX/"
uvx --from video-analyzer-local video-analyzer "https://www.youtube.com/@somechannel" --list 10 --popular

Tools

Tool

Returns

analyze_video(url, max_frames=None, refresh=False)

metadata, caption, timestamped transcript, keyframe images

get_transcript(url)

metadata, caption and transcript as JSON (no images, cheaper)

list_videos(url, limit=10, sort="recent")

a YouTube channel's Shorts (or playlist, TikTok profile) with views; sort="popular" for most viewed. Not Instagram/X profiles

Settings (environment variables)

Variable

Default

Purpose

VIDEO_ANALYZER_WHISPER_MODEL

large-v3-turbo

small = 480 MB download but slower and much worse on mixed-language speech; tiny/base = smallest

VIDEO_ANALYZER_COOKIES_BROWSER

unset

chrome, safari or firefox: use your logged-in session when a site asks for login or rate-limits

VIDEO_ANALYZER_CACHE

~/.cache/video-analyzer

where results and keyframes are stored

VIDEO_ANALYZER_MAX_DURATION

900

refuse videos longer than this (seconds)

For Claude Desktop, put these in an "env": { ... } block next to "args".

Troubleshooting

  • Instagram says login required / rate-limited: set VIDEO_ANALYZER_COOKIES_BROWSER=chrome and be logged in to Instagram in that browser. Update yt-dlp often: uv lock --upgrade-package yt-dlp && uv sync.

  • ffmpeg not found: brew install ffmpeg.

  • Transcript of a music-only video is empty: expected. Claude uses the keyframes and caption.

Development

git clone https://github.com/Mahanteshambi/video-analyzer && cd video-analyzer
uv sync --group dev
uv run pytest                                      # unit tests on generated sample videos
uv run python scripts/smoke_mcp.py <url-or-file>   # end-to-end through the MCP protocol

Responsible use

This tool downloads publicly accessible videos for personal analysis, on your machine, with your connection. Platforms' terms of service (including Instagram's) restrict automated access. You are responsible for how you use it. Respect creators' copyright; don't republish their content. For personal use.

MIT licensed.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables Claude to fetch TikTok, Instagram and YouTube videos and playlists and summarize them, pulling metadata and engagement stats, timestamped transcripts via site subtitles or local Whisper, and key frames starting with the hook. Supports saved playlist notebooks and multiple per-platform accounts for private content, with cookies kept on the user's machine.
      MIT