Metadata-Version: 2.5
Name: reel-lens-mcp
Version: 0.2.0
Summary: Local MCP server that lets Claude watch videos: download with yt-dlp, still frames, Whisper transcript.
Project-URL: Homepage, https://github.com/selim163/reel-lens-mcp
Project-URL: Issues, https://github.com/selim163/reel-lens-mcp/issues
License-Expression: MIT
License-File: LICENSE
Keywords: claude,instagram,mcp,tiktok,transcript,video,whisper,youtube,yt-dlp
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: End Users/Desktop
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Multimedia :: Video
Requires-Python: >=3.10
Requires-Dist: av>=14
Requires-Dist: faster-whisper<2,>=1.1
Requires-Dist: imageio-ffmpeg>=0.5
Requires-Dist: mcp<3,>=2.3
Requires-Dist: numpy>=1.24
Requires-Dist: pillow>=10
Requires-Dist: yt-dlp>=2025.1.1
Provides-Extra: dev
Requires-Dist: pytest>=8; extra == 'dev'
Description-Content-Type: text/markdown

![reel-lens: a glowing lens turns a video into still frames, audio and a timestamped transcript. Let Claude watch any video: TikTok, Instagram, YouTube, X and local files, free and on your PC.](https://raw.githubusercontent.com/selim163/reel-lens-mcp/v0.2.0/docs/banner.jpg)

🌐 **English** · [Deutsch](https://github.com/selim163/reel-lens-mcp/blob/v0.2.0/README.de.md) · [简体中文](https://github.com/selim163/reel-lens-mcp/blob/v0.2.0/README.zh-CN.md) · [Español](https://github.com/selim163/reel-lens-mcp/blob/v0.2.0/README.es.md) · [हिन्दी](https://github.com/selim163/reel-lens-mcp/blob/v0.2.0/README.hi.md) · [العربية](https://github.com/selim163/reel-lens-mcp/blob/v0.2.0/README.ar.md) · [Português](https://github.com/selim163/reel-lens-mcp/blob/v0.2.0/README.pt-BR.md) · [Français](https://github.com/selim163/reel-lens-mcp/blob/v0.2.0/README.fr.md) · [Русский](https://github.com/selim163/reel-lens-mcp/blob/v0.2.0/README.ru.md) · [日本語](https://github.com/selim163/reel-lens-mcp/blob/v0.2.0/README.ja.md) · [한국어](https://github.com/selim163/reel-lens-mcp/blob/v0.2.0/README.ko.md)

# reel-lens 🎬 — let Claude watch videos

[![CI](https://github.com/selim163/reel-lens-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/selim163/reel-lens-mcp/actions/workflows/ci.yml)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/selim163/reel-lens-mcp/blob/v0.2.0/LICENSE)
[![PyPI](https://img.shields.io/pypi/v/reel-lens-mcp)](https://pypi.org/project/reel-lens-mcp/)
![Python 3.10+](https://img.shields.io/badge/python-3.10%2B-blue)
![MCP](https://img.shields.io/badge/MCP-server-black)

**Paste a link to a TikTok, Instagram Reel, YouTube video or X post and ask Claude about it.**
reel-lens is a local [MCP](https://modelcontextprotocol.io) server that gives Claude what it needs to understand a video:

- 📝 **What is said:** a timestamped transcript, made on your machine with [faster-whisper](https://github.com/SYSTRAN/faster-whisper)
- 🖼️ **What is shown:** still frames across the whole video, plus any moment you ask for
- 🏷️ **The context:** creator, caption, date, views and likes

Free, no API keys, no extra cloud service: downloading, still frames and transcription run on your own computer.

```text
You:    What's the trick in this reel? https://www.instagram.com/reel/...
Claude: [watch_video] The creator shows how to ... At 0:12 you can see ...
```

## Supported sites

**Tested** (Windows 11, December 2026): TikTok, Instagram Reels, YouTube and X, each with download, still frames and transcript.

**Through yt-dlp, not tested by us:** Facebook, Reddit, Vimeo, Twitch clips, Bilibili and [every other site yt-dlp supports](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md). Some posts can only be seen when logged in (in our test a Reddit video); see [Troubleshooting](https://github.com/selim163/reel-lens-mcp/blob/v0.2.0/README.md#troubleshooting).

Local video files work too (mp4, mov, m4v, mkv, webm, avi, 3gp).

## Quick start

You need [uv](https://docs.astral.sh/uv/getting-started/installation/) (Windows: `winget install astral-sh.uv`, macOS: `brew install uv`). ffmpeg ships with reel-lens.

**Claude Code**

```bash
claude mcp add reel-lens --scope user -- uvx reel-lens-mcp
```

**Claude Desktop**: add this to `claude_desktop_config.json` (Settings → Developer → Edit Config) and restart Claude Desktop:

```json
{
  "mcpServers": {
    "reel-lens": {
      "command": "uvx",
      "args": ["reel-lens-mcp"]
    }
  }
}
```

If Claude Desktop can't find `uvx`, write its full path instead (Windows: `C:\\Users\\<you>\\.local\\bin\\uvx.exe`).

The same JSON works in Cursor, VS Code, Windsurf and other MCP clients. The first start takes a minute while uv installs everything. The first transcript downloads the Whisper model once (`small`: about 480 MB); if the connection stalls, the download resumes where it stopped.

> reel-lens is a local (stdio) server: it works in desktop apps and CLIs on your computer, not in the Claude mobile app or on claude.ai in the browser.

## Install with your AI assistant

Prefer not to type commands? Paste this prompt into Claude Code or another coding agent. It checks uv, sets up reel-lens, asks before it changes anything outside the setup and tells you at the end whether everything works.

```md
Install the reel-lens MCP server for me: https://github.com/selim163/reel-lens-mcp
It lets you watch videos from links or local files: still frames plus a local Whisper transcript.

Work step by step and tell me in plain words what you are doing:
1. Check my operating system and whether uv is installed (`uv --version`). If it is missing, show me the
   official install command for my system (Windows: `winget install astral-sh.uv`, macOS:
   `brew install uv`, otherwise https://docs.astral.sh/uv/getting-started/installation/) and run it
   only after I say yes.
2. If you are Claude Code, run:
   claude mcp add reel-lens --scope user -- uvx reel-lens-mcp
   Then run `claude mcp list` and confirm that reel-lens is connected. Tell me that the tools appear
   in new sessions.
3. If I use Claude Desktop instead: find claude_desktop_config.json (Claude Desktop: Settings ->
   Developer -> Edit Config), make a backup copy, show me the exact change as a diff and change the
   file only after I say yes. If Claude Desktop cannot find a plain "uvx", use its full path.
   Then tell me to restart Claude Desktop.
4. Never ask me for passwords, tokens or cookies. Change nothing outside this setup without asking.
5. At the end, tell me whether everything works and give me one example to try, like
   "Summarize this video: <link>".
```

## Tools

| Tool | What it does |
|---|---|
| `watch_video(url, frames?, language?, transcribe?)` | Fetch a link and return metadata, caption, transcript and still frames |
| `watch_file(path, frames?, language?, transcribe?)` | The same for a video file on your computer, e.g. a screen recording |
| `frames_at(path, seconds, crop?)` | Still frames at exact moments, to look closer at something; `crop` zooms into part of the picture, e.g. to read a small error message |

Ideas for prompts:

- *"Summarize this TikTok and list every product shown."*
- *"Is the claim in this reel true? Check the transcript."*
- *"Translate what is said in this video into English."*
- *"Write down the recipe from this Short with amounts."*
- *"Show me the moment at 0:42 again, what does the screen say?"*

**Quick look without transcript:** for screen recordings or clips without speech, ask for a few frames and no transcript, for example *"Look at C:\Videos\bug.mp4 with 6 frames and no transcript."* It answers in seconds because Whisper does not run.

**Bug reports from screen recordings:** the prompt `bug_report` turns a screen recording into a bug report: steps to reproduce with timestamps, expected and actual behaviour, and every visible error message word for word. Claude is asked to zoom in to read small text and to replace passwords, e-mail addresses and other private data with `[redacted]`. In Claude Code, type `/mcp__reel-lens__bug_report`; other apps that support MCP prompts list it under reel-lens. Without prompt support, just ask: *"Turn this screen recording into a bug report: C:\Users\me\Videos\bug.mp4"*.

## How fast is it?

Measured on one Windows 11 PC, CPU only, with the default model `small`:

| Video | Download | Transcript |
|---|---|---|
| 16 s Instagram Reel | 3–5 s | 4 s |
| 41 s X video | 2–4 s | 4 s |
| 9:38 min YouTube video (1080p) | 51 s | 130 s |

On computer-generated German test speech (53 s, once clean and once with loud noise), `small` got 0 % and 4 % of the words wrong, `medium` 1 % and 3 %. `medium` took 2.5 times as long and is a 1.5 GB download instead of 480 MB. That is why `small` is the default. Try `medium` for dialects, fast speech or noisy audio.

## Configuration

Set environment variables in the `env` block of your MCP config.

| Variable | Default | Meaning |
|---|---|---|
| `REEL_LENS_WHISPER_MODEL` | `small` | `tiny`, `base`, `small`, `medium`, `large-v3`. Bigger is more accurate but slower. |
| `REEL_LENS_WHISPER_DEVICE` | `auto` | `auto` uses an NVIDIA GPU if its CUDA 12 libraries are installed, otherwise the CPU. Or set `cpu` or `cuda`. |
| `REEL_LENS_WHISPER_COMPUTE` | `int8` | Precision; `int8` is fastest on CPU |
| `REEL_LENS_COOKIES_FROM_BROWSER` | – | e.g. `firefox`, for sites that need you to be logged in |
| `REEL_LENS_COOKIES_FILE` | – | Path to a `cookies.txt` instead |
| `REEL_LENS_KEEP_HOURS` | `24` | Downloaded videos are deleted after this many hours (`0` keeps them) |
| `REEL_LENS_MAX_MINUTES` | `20` | Longer videos are refused |
| `REEL_LENS_MAX_FILESIZE_MB` | `500` | Larger files are not downloaded |
| `REEL_LENS_FRAME_MAX_SIDE` | `1024` | Longest side of still frames in pixels |
| `REEL_LENS_CACHE` | `~/.cache/reel-lens` | Where videos, transcripts and models are kept (Windows: `%USERPROFILE%\.cache\reel-lens`) |

Example:

```json
"env": { "REEL_LENS_WHISPER_MODEL": "medium", "REEL_LENS_COOKIES_FROM_BROWSER": "firefox" }
```

## Troubleshooting

**"login required" or "rate-limit" (Instagram, X, Reddit, …)** Log in to the site in Firefox and set `REEL_LENS_COOKIES_FROM_BROWSER=firefox`. On Windows yt-dlp often can't read Chrome's cookies. Or save the video yourself and use `watch_file`. Cookies are credentials: never share or commit a `cookies.txt`.

**A site suddenly stops working** Sites change often and yt-dlp follows quickly. With uvx, run `uvx --refresh reel-lens-mcp` once to pick up the newest version.

**Transcription is slow** Use `REEL_LENS_WHISPER_MODEL=base`, or an NVIDIA GPU with `REEL_LENS_WHISPER_DEVICE=cuda` (needs NVIDIA's CUDA 12 and cuDNN 9 libraries).

**The transcript is nonsense** Over music without speech Whisper sometimes invents words. reel-lens marks such lines as `(unsure)` and tells Claude to rely on the frames and caption.

## How it works

```text
link ──► yt-dlp ──► video in local cache ──┬─► PyAV ───────────► still frames (JPEG)
                                           ├─► faster-whisper ─► transcript with timestamps
                                           └─► metadata ───────► creator, caption, stats
                                                   │
                                     MCP (stdio) ◄─┘──► Claude
```

Downloading, still frames and transcription run on your computer. Your AI client receives the frames, transcript and metadata and sends them to its AI provider, like everything else in the chat. Downloaded videos are deleted after 24 hours by default; transcripts are cached so follow-up questions are instant.

Captions and spoken words come from other people. reel-lens marks them as untrusted content and asks the AI to report instructions hidden in them instead of following them. This lowers the risk of prompt injection, but cannot rule it out.

## Privacy and limitations

- **Stays on your computer:** downloading, still frames and transcription. Apart from the video download and a one-time download of the Whisper model, reel-lens sends nothing anywhere.
- **Goes to your AI provider:** your AI client passes the frames, transcript, metadata and local file path to its model, like any other chat content. Don't use reel-lens on recordings you wouldn't share in a chat.
- **Stays on disk:** downloaded videos are deleted after 24 hours (`REEL_LENS_KEEP_HOURS`). Transcripts and Whisper models stay in the cache folder until you delete it.
- **Limits:** videos up to 20 minutes and 500 MB by default. Still frames are samples (by default 4 to 12 per video), so a short moment between two frames can be missed; ask for it with `frames_at`. Transcripts can contain mistakes, especially over music.
- **Logins:** some posts can only be seen when logged in. reel-lens can use your own browser login if you set it up (see [Configuration](https://github.com/selim163/reel-lens-mcp/blob/v0.2.0/README.md#configuration)), but it never gets around logins or paywalls.

## Development

```bash
git clone https://github.com/selim163/reel-lens-mcp
cd reel-lens-mcp
uv sync
uv run --extra dev pytest -q
```

The test suite runs offline and creates its own test clips. See [CONTRIBUTING.md](https://github.com/selim163/reel-lens-mcp/blob/v0.2.0/CONTRIBUTING.md). Pull requests are welcome!

**Helping with an AI assistant?** [CONTRIBUTING.md](https://github.com/selim163/reel-lens-mcp/blob/v0.2.0/CONTRIBUTING.md#contributing-with-an-ai-assistant) lets you choose how to help (report a problem, test on your computer, small fix, new feature) and has a ready-made prompt for each. [AGENTS.md](https://github.com/selim163/reel-lens-mcp/blob/v0.2.0/AGENTS.md) prepares any AI coding assistant for this repository.

## Responsible use

reel-lens is made for understanding videos, not for collecting or redistributing them. Only use it with content you are allowed to access, respect the creators' rights and the terms of the sites you use, and don't share downloaded material. You are responsible for how you use it.

## License

[MIT](https://github.com/selim163/reel-lens-mcp/blob/v0.2.0/LICENSE). Dependencies have their own licenses (yt-dlp: Unlicense, faster-whisper: MIT, PyAV: BSD, Pillow: MIT-CMU, NumPy: BSD, MCP SDK: MIT); the ffmpeg binary shipped by imageio-ffmpeg is LGPL/GPL.

## Support

reel-lens is free and stays free. If it saves you time, you can support its development on [GitHub Sponsors](https://github.com/sponsors/selim163). A star on GitHub helps too.

<!-- mcp-name: io.github.selim163/reel-lens-mcp -->
