Listed from the MCP registry; nobody on Odel publishes it.
Eyes and ears for AI agents: measured cuts, easing, palette, beats and transcripts from any video.
Runs on your machine from its package; the steps are below.

At most: creates or changes data: records, files, settings.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
npx -y framelens
MCP client config
{
"mcpServers": {
"frame-lens": {
"command": "npx",
"args": [
"-y",
"framelens"
]
}
}
}
Eyes and ears for AI agents. Give your agent any video or animation and a goal in plain words.
It gets back measurements, not retellings: cuts to the frame, exact easing curves, colour, beats and word-timed speech.
Website · Install · For agents · Accuracy · Changelog
Frame Lens is a free MCP server for Claude Code, Codex, Cursor, Claude Desktop, VS Code, Windsurf and any other MCP client. It runs on your computer, needs no API key, and the npm package has no runtime dependencies. It reads YouTube and hundreds of other sites, local files, live websites, Lottie, Rive and Figma, and turns what it finds into starter projects for HyperFrames, Remotion, CSS, After Effects and Lottie.
28 seconds, made in HyperFrames and then measured by Frame Lens itself. Watch with sound.
An agent that "watches" a video usually gets a handful of stills or the captions, and describes what it guesses: "a quick, smooth move". That is not something you can build from.
Frame Lens measures. We animated a square in HyperFrames with cubic-bezier(0.22, 1, 0.36, 1), 640 px in 18
frames at 30 fps, rendered it, and gave the video to Frame Lens. track measured
cubic-bezier(0.231, 0.951, 0.384, 0.996), starting at 10.600 s (0 frames off), never more than 0.18 px
from where the square really was on any frame, grade exact. A spring of stiffness 170 and damping 12 read back as
stiffness 170.01. export then writes that curve into CSS, Remotion, HyperFrames, After Effects or Lottie, and
compare checks your render against the reference. How the demo was measured:
scripts/demo/CHECK.md.
On the 33-second Big Buck Bunny trailer it finds 11 cuts to the frame (9.08 s, 11.20 s, 13.20 s, 13.88 s, 15.00 s, 16.00 s, 16.60 s, 24.92 s, 26.00 s, 29.96 s, 31.04 s), 10 fades and dissolves with their length (the opening dissolve runs 24 frames, 3.48–4.44 s), and 20 shots at 25 fps with a palette each.
measured, derived (fitted) or inferred.Real Frame Lens readings from the website: the Big Buck Bunny trailer and the demo film's own render.
The loupe. Every mark on the ruler is a measurement: red cuts, pale fades and dissolves, green moves, a palette per shot. |
The first pass. An overview of the whole piece, red where a cut falls (this sheet holds one frame a second; for a video this short the style plan takes one every 0.5 s). Dense frames come only after this, around the moments that matter. |
1. Install. In your project folder (needs Node.js 20+):
npx -y framelens init
This adds .mcp.json (the Frame Lens server, pinned to framelens@<version> on npm) and the agent skill to the
project. For Claude Code in every project, Codex, Cursor and other clients, see
Install in your client.
2. Ask your agent in plain words. Start a new session and paste a link or a file path:
Use this as a motion reference for my product promo: https://youtu.be/<video-id>
Turn this tutorial into a step-by-step guide. · Summarize this podcast and find where they talk about pricing. · Make my landing page animate like https://example.com
3. Open the results. Everything lands in .framelens/<id>/ in your project: contact sheets, STYLE.md,
TIMELINE.md, motion-spec.json, TRACK.md with the fitted curves, and a starter project for your renderer.
The agent quotes the numbers with their evidence label.
The first time a tool needs ffmpeg or yt-dlp and cannot find it, Frame Lens downloads a pinned, verified build and
says so. To check your machine ahead of time: npx -y framelens doctor --prepare.
| You want | Say something like | Frame Lens does |
|---|---|---|
| Listen: a podcast, lecture, interview | "Summarize this 3-hour podcast and find where they talk about pricing" | Word-timed transcript and one overview sheet; no wasted frames |
| Learn: a tutorial into steps | "Turn this tutorial into a step-by-step guide" | Finds every screen change, frames with the words spoken there, text read from the screen |
| Find a moment | "Where does he set up DNS?" | Frames around the phrase in the transcript |
| Style: replicate the motion | "Use this as a reference for my product promo" | Cuts to the frame, shots, palette, every move with its duration and easing; the exact curve of the moves that matter; a starter project; a check of your render |
| Sound design | "What is the sound design here?" | Loudness, silences, hits, tempo and beat grid, how many cuts land on the beat, a spectrogram |
| Production | "How was this shot?" | Shots with key frames for camera, light and source |
| A website's motion | "Make my landing animate like this site" | The page's real animation curves, durations, fonts and colours, then a CSS or Motion starter |
| A Lottie, Rive or Figma file | "Rebuild this Lottie in Remotion" | Exact keyframes and curves from the file, then a starter in any target |
Local and measured (ffmpeg on your computer, yt-dlp for links; set up automatically when missing):
| Tool | What it does |
|---|---|
plan | Start here for any video. Classifies it (talking head, screen, motion graphics, music video, live action), reads the goal from the request (listen, learn, find, style, sound, production) and lists the steps with an image-token estimate |
probe | Fetches the source; duration, size, frame rate (variable or not), HDR, audio, captions, workspace folder |
transcript | Word-timed transcript from captions (Gemini as a fallback for YouTube; only transcript and frames with around call it, never frame labels, plan or style) |
frames | Frames and contact sheets with time, frame number and the words spoken under each picture: at, every, fps, every_frame (every native frame with real timestamps) or around a phrase |
boundaries | Where the picture changes abruptly, scored, plus how dynamic the video is |
style | Cuts told apart from fast motion and flashes, dissolves, fades, dips through black or white and wipes (derived), shots split at them with palettes, moves with duration and easing family; writes motion-spec.json, STYLE.md, TIMELINE.md, ANALYSIS.md |
track | Follows one element (found automatically or from a box) and fits the exact curve of each property that moves (x, y, scale, opacity): cubic-bezier, spring (stiffness, damping, mass), linear or steps, with fit error, duration in frames, delay and a quality grade; writes TRACK.md, and export then uses the exact curve |
audio | Loudness (LUFS), silences, onsets, tempo and beats, cuts on the beat, spectrogram |
export | Starter project from the motion spec (see Exports) |
compare | Your render against the reference: duration, cuts matched within 3 frames, palette distance, picture similarity, the least similar moments side by side |
web | A live page's animations read exactly from the browser (CSS, Web Animations, Motion, GSAP), scroll-triggered ones too, plus real fonts and colours (needs Chrome or Edge and Node 22+). They are recorded from the first frame, so page-load animations that end before the page is read are caught too. Also takes a reading the browser extension saved |
exact | Lottie / dotLottie, Rive (.riv: artboards, timelines, curves, state machines) and Figma prototype transitions, read from the source's own data |
Gemini (YouTube links, your own GEMINI_API_KEY, work in cloud sessions without ffmpeg):
summarize_youtube_video, ask_about_youtube_video, extract_key_moments, get_video_transcript,
list_supported_models. Their timing and colour are described by the model, not measured.
| Source | How | Numbers are |
|---|---|---|
| YouTube, TikTok, Loom, Twitch, Google Drive, Dropbox, direct media links and hundreds of other sites | Public links through the pinned yt-dlp | Measured from pixels and sound |
| Local files: mp4, mov (ProRes), webm, mkv, GIF, APNG | A path | Measured |
| Your phone, a platform's own download button, the extension's tab recording | Drop the file in the inbox and use the source inbox | Measured |
| A live website | web with its address | Read exactly from the browser |
| A page behind your own login | The browser extension reads it in your browser, then web with inbox | Read exactly |
Lottie, dotLottie, Rive .riv, Figma prototypes | exact with the file, a direct link or a Figma URL (rive.app pages are not read) | Read exactly from the file |
| Public links yt-dlp has no extractor for | Your own self-hosted cobalt server, opt-in | Measured |
The inbox is Downloads/FrameLens (where the extension saves) or the folder in FRAMELENS_INBOX: each tool takes
the newest item it can use.
For Instagram, Facebook, X, Threads, LinkedIn, Vimeo or TikTok posts that need your login, use your own access, in this
order: save the video with the platform's own download button or record the tab with the extension, and use the
file or inbox; or opt in to your browser's cookies with FRAMELENS_COOKIES_FROM_BROWSER=firefox or
FRAMELENS_COOKIES_FILE=<cookies.txt> (Chrome and Edge on Windows encrypt cookies so they cannot be used); or run
npx framelens login instagram once: a browser window with a separate Frame Lens profile opens and you log in
yourself (a second account is wiser). framelens logout deletes that profile.
Self-hosted cobalt (opt-in). Set FRAMELENS_COBALT_URL to the API address of a
cobalt instance you run yourself (and FRAMELENS_COBALT_KEY if it asks for an
API key). A link goes there only when yt-dlp has no extractor for it, or fails for a reason that does not look like
access control. A failure that mentions a login, an age or bot check, a challenge, a block, a rate limit, a password,
DRM, a private, members-only or paid post, or HTTP 401, 403, 429 or 451 is never sent to cobalt. Every hop of the
download must be https to a public address, nothing on your computer or local network, and only video or audio is
kept. The official cobalt.tools hosts are refused: they are not for other projects. Nothing changes when it is unset.
Links given to exact. A Lottie, dotLottie or Rive link is downloaded from the host you name, even one on your
computer or local network (a dev server). Every redirect to another host must be https to a public address, never
your computer, the local network or a cloud metadata address, and a redirect may not add a user name or password.
Files sent gzip-, deflate- or br-encoded are decoded; other encodings (zstd, lists of encodings) are refused. At most
30 MB, after decoding, in 30 s.
Other links and web. Before yt-dlp fetches a link that is not YouTube, Frame Lens walks the redirects its
server answers with under the same rule, so a public link cannot send the download to your computer or local network;
the requests a site extractor makes on its own are not covered (see SECURITY.md). web refuses any
page or frame on your computer or local network, other than the host you gave, and says when the page was read at
another address than the one you gave.
Frame Lens never bypasses logins, CAPTCHAs or bot checks and never uses online downloader sites or scraping services. Platforms' terms may forbid automated downloading: analyze videos you are allowed to watch and use, for reference.
export turns a reference's motion-spec.json into a starter project; exact takes the same export option. It
carries structure, cut times, colours and move timing (the exact tracked curve where there is one) and leaves the
content to you: never the reference's footage, logos or people. Every move tracked in a shot is exported, each further
one as its own element at the tracked element's place with its own curve.
| Target | You get |
|---|---|
hyperframes | index.html and one scene per shot with GSAP eases |
remotion | Sequences per shot with Easing.bezier or spring({config}) |
css | Tokens, keyframes with cubic-bezier() / linear() / steps(), and a preview page |
after-effects | framelens-reference.jsx: run it in After Effects to build the comp with eased keyframes and cut and beat markers |
lottie | reference.json with solids, placeholder shapes and bezier easing |
hypit | ANALYSIS.md, TIMELINE.md, transcript.json and HANDOFF.md for the Hypit video tool |
Render it, then run compare with the reference: it names what drifted (missing or late cuts, palette, picture).
Measured with node scripts/benchmark.mjs on synthetic clips with known answers at 24, 30 and 60 fps. Full tables and
limits: docs/ACCURACY.md.
From video pixels (style, 36 moves, 33 cuts) | Result |
|---|---|
| Cuts found on the exact frame | 33 of 33 |
| Moves found | 36 of 36 |
| Easing family correct | 36 of 36 |
| Move start, mean error | 1.00 frame |
| Move duration, mean error | 1.83 frames |
Exact curves (track, 54 clips: clean, noisy, busy background) | Result |
|---|---|
| Curve model chosen right (bezier or spring) | 54 of 54 |
| Bezier control points, worst error | 0.036 |
| Duration, worst error | 0.46 frame |
| Spring stiffness and damping, mean error | 0.2 % or less |
On a real render, the demo film, track read a cubic-bezier(0.22, 1, 0.36, 1) move back within 0.18 px on every
frame with its start 0 frames off, and a spring's stiffness of 170 as 170.01 (scripts/demo/CHECK.md).
These clips are clean synthetic renders; real footage adds motion blur, rotation, occlusion and camera moves, and
track reports its fit error and a quality grade (exact, approximate, unreliable) for every curve so you can
judge it. Websites, Lottie, Rive and Figma need no estimate: their curves are read from the source.
This section is written so an agent can install and use Frame Lens from it alone. The same workflow ships as the
agent skill skills/framelens/SKILL.md; repository conventions are in
AGENTS.md; a short index is at llms.txt.
npx -y framelens starts the server on stdio. In the MCP Registry its name
is io.github.Makkov-design/framelens (server.json). Pin a version (framelens@2.2.0) when you want to choose when to
upgrade. On Windows, clients that start the server themselves need cmd /c in front of npx (in JSON:
"command": "cmd", "args": ["/c", "npx", "-y", "framelens"]). Add GEMINI_API_KEY only if you want the Gemini tools.
| Client | Install |
|---|---|
| Claude Code, plugin (server and skill) | /plugin marketplace add Makkov-design/framelens, then /plugin install framelens@framelens |
| Claude Code, every project | claude mcp add framelens --scope user -- npx -y framelens (Windows: -- cmd /c npx -y framelens) |
| One project, including Claude Code cloud sessions | npx -y framelens init in the project root, then commit .mcp.json and .claude/skills/framelens/ |
| Codex | ~/.codex/config.toml, below |
| Cursor | ~/.cursor/mcp.json (or .cursor/mcp.json in a project), generic JSON below |
| Claude Desktop | claude_desktop_config.json (Settings → Developer → Edit Config), generic JSON below |
| VS Code | .vscode/mcp.json, below |
| Windsurf | ~/.codeium/windsurf/mcp_config.json, generic JSON below |
Generic JSON (Cursor, Claude Desktop, Windsurf and most clients):
{
"mcpServers": {
"framelens": {
"command": "npx",
"args": ["-y", "framelens"],
"env": { "GEMINI_API_KEY": "<optional, for the Gemini tools>" }
}
}
}
Codex (~/.codex/config.toml):
[mcp_servers.framelens]
command = "npx"
args = ["-y", "framelens"]
VS Code (.vscode/mcp.json):
{
"servers": {
"framelens": { "type": "stdio", "command": "npx", "args": ["-y", "framelens"] }
}
}
npx -y framelens init writes .mcp.json with the server pinned to its own version on npm
("args": ["-y", "framelens@<version>"]), adds the skill, and replaces an old ytlens entry. The entry calls npx
directly, without the Windows cmd /c wrapper, because the file is shared with cloud sessions, which run Linux; on
your own Windows computer, add Frame Lens for every project as in the table above (-- cmd /c npx -y framelens).
From GitHub instead of npm. The same version also runs straight from its release tag, without the npm registry:
npx -y github:Makkov-design/framelens#v<version> (for example #v2.2.0; in JSON, "args": ["-y", "github:Makkov-design/framelens#v2.2.0"]). npm then downloads the tagged commit, a larger download than the
package.
inbox) → plan. A website → web. A Lottie, dotLottie, Rive file or a
Figma prototype link → exact.plan first. Pass the source and the user's request in their own words (or goal). Run the steps it returns,
in order: their args are ready to pass; a step with then says what to add first from an earlier step's result
(the change times boundaries found, or a box around the element to track). Its estimate tells you the
image-token cost before you spend it.style goal): style → track for the moves that matter (move: n, element: "auto"
or a box) → frames with every_frame ±0.5 s around them → export to the user's renderer → render → compare
with the reference, fix what it names.transcript (captions first). Sound: audio. A moment: frames with around: "<phrase>".Every local tool writes to a workspace folder, .framelens/<id>/ in the current directory, and returns a short
summary with absolute paths: open sheets and files by path (only the first sheets come inline). When the server
starts in a system folder (Claude Desktop on Windows starts it in C:\WINDOWS\system32, on macOS in /) or a folder
it cannot write to, workspaces go to ~/.framelens/; FRAMELENS_WORKSPACE overrides both. PROGRESS.md lists the
tool runs so a later session can continue.
| File | Holds |
|---|---|
motion-spec.json | Machine-readable cuts, shots, palette, moves, tracked curves and beats, each number with its evidence label |
STYLE.md, TIMELINE.md, ANALYSIS.md | The measured blocks, plus sections for you to complete (typography, systems, why it works) |
TRACK.md, tracks.json | Fitted curves per property with error and quality |
transcript.md, transcript.json | The words and their times |
Contact sheets, single frames, COMPARE.md, the export folder | As named in each tool result |
Every number in motion-spec.json carries one: measured (read from pixels, audio or the source's own data),
derived (fitted from measurements, such as an easing family or a tracked curve) or inferred (a model's
judgement, such as a font guess). The label sits on the object that holds the number ("evidence": "measured"), or,
where an object's numbers differ, one per field (audio: tempo and cuts on the beat derived, loudness measured).
Only range, the span that was asked for, has none. Quote the label with the number, quote a tracked curve's error
and grade, and keep facts apart from interpretation.
inbox, opt-in cookies, or framelens login <site> where the
user logs in themselves.GEMINI_API_KEY, quota, private video, login required) and how to fix it (framelens doctor). Never fall back to
guesses silently.web tool also needs Node 22+ and Chrome or Edge.winget install Gyan.FFmpeg, macOS brew install ffmpeg, Linux your package manager) is used first; when either is missing,
Frame Lens downloads a pinned build into ~/.framelens/tools/, checks its SHA-256 against the hash in the code,
and tells the agent. FRAMELENS_AUTO_INSTALL=0 turns this off.npx -y framelens doctor reports what is found, which workspace folder is used and why;
doctor --prepare fetches the pinned yt-dlp (and ffmpeg when missing) right away. npx -y framelens --help lists
the commands.C:\Windows\System32 on Windows and / on macOS, not your project.GEMINI_API_KEY from Google AI Studio.| Tool | Version | Windows x64 | macOS arm64 and x64, Linux x64 and arm64 (glibc) |
|---|---|---|---|
| ffmpeg, ffprobe | FFmpeg 9.0.2 | gyan.dev essentials build (GitHub release) | Martin Riedl's build server |
| yt-dlp | 2026.10.21 | github.com/yt-dlp/yt-dlp | same, also checked against the release's SHA2-256SUMS (Alpine and other musl Linux: the musllinux builds) |
Gyan Doshi's Windows builds are the ones ffmpeg.org's download page links; Martin Riedl's build server publishes release builds with a SHA-256 for each file and keeps the old ones, so a pinned address keeps working. Other platforms (Alpine and other musl systems, Windows on ARM) install ffmpeg from their own packages. Nothing that fails the check is kept.
| Variable | Default | Meaning |
|---|---|---|
FRAMELENS_WORKSPACE | ./.framelens, or ~/.framelens from a system or read-only folder | Where workspaces go (a relative path is taken from the home folder) |
FRAMELENS_INBOX | — | Folder for the source inbox, besides Downloads/FrameLens |
FRAMELENS_DOWNLOADS | ~/Downloads | The browser's download folder, where the extension saves into FrameLens/ |
FRAMELENS_AUTO_INSTALL | on | 0 stops Frame Lens from downloading a missing ffmpeg or yt-dlp |
FRAMELENS_HOME | ~/.framelens | Where downloaded ffmpeg and yt-dlp builds and the fallback workspaces live |
FRAMELENS_FFMPEG, FRAMELENS_FFPROBE, FRAMELENS_YTDLP | found automatically | Paths to the tools |
FRAMELENS_MAX_DOWNLOAD_MB | 2048 | Largest download. When a site gives no size up front (HLS, DASH), the download is measured as it runs and stopped once past the limit, so it can overshoot by a few seconds' worth |
FRAMELENS_COOKIES_FROM_BROWSER, FRAMELENS_COOKIES_FILE | — | Opt-in cookies for sites that need your login |
FRAMELENS_BROWSER, FRAMELENS_BROWSER_PROFILE | found automatically, ~/.framelens/browser-profile | Chrome or Edge for web and login, and where the login profile lives |
FRAMELENS_COBALT_URL, FRAMELENS_COBALT_KEY | — | Your own cobalt instance and its API key |
FIGMA_TOKEN | — | A read-only Figma personal access token for exact on Figma links (or pass the Figma MCP's get_motion_context output as figma_json) |
GEMINI_API_KEY (or GOOGLE_API_KEY) | — | Enables the Gemini tools |
GEMINI_MODEL_NAME | gemini-flash-lite-latest | Flash-Lite has the largest free daily quota |
FRAMELENS_FALLBACK_MODELS | gemini-flash-latest | Tried when the main model's daily quota is used up; empty turns this off |
FRAMELENS_TIMEOUT_MS, FRAMELENS_MAX_RETRIES, FRAMELENS_CACHE_TTL_MINUTES, FRAMELENS_LOG_LEVEL | 300000, 3, 60, info | Gemini call limits, cache and logging |
Settings named YTLENS_* from the earlier name still work.
Gemini free tier. Limits count per Google Cloud project and reset at midnight Pacific time; on Flash they are
small (about 20 requests a day), which is why Flash-Lite is the default. One request holds about 40 minutes of video;
analyze longer videos in parts with start / end. Quota errors name the exact limit.
The Frame Lens extension for Chrome and Edge works in your own browser, where you are already logged in:
web tool's own page reader on the open tab (animations, curves, fonts,
colours, a scroll pass) and saves a .framelens.json.Both land in Downloads/FrameLens; then web with inbox reads the page reading, and any video tool with inbox
takes the recording. The extension makes no network requests and has no host permissions. Install it with Load
unpacked: extension/README.md.
measured, derived or inferred.Yes, it is free and MIT-licensed. The local tools need no key. Only the optional Gemini tools need your own
GEMINI_API_KEY, and Gemini's free tier covers light use.
A model looking at a few frames or the captions describes; Frame Lens measures the real frames at their real timestamps and labels every number with how it was obtained. It finds cuts on their exact frame and fits the exact curve of a move, which a description cannot give you. See docs/ACCURACY.md.
No. Results go to disk; only the first sheets come inline, and plan estimates the image tokens before you spend
them. Dense frames are taken only around the moments that matter.
Yes, through npx -y framelens init committed to the repository and GEMINI_API_KEY in the cloud environment's
variables. Cloud sessions have no ffmpeg by default, so the agent uses the Gemini tools and captions and says that
timing and colour are described, not measured. Measured analysis runs on your own computer.
Only with your own access: the file you saved, a tab recording from the extension, your opt-in cookies, or a login you type yourself in Frame Lens's separate browser profile. It never gets around a login.
All three. Automatic ffmpeg setup covers Windows x64, macOS (arm64 and x64) and Linux x64 and arm64 with glibc; elsewhere,
install ffmpeg from your package manager. On Windows, start the server with cmd /c npx … in client configs.
If Frame Lens saved you from describing a video by hand, star the repository: it is the simplest way to help other people (and their agents) find it. Ideas, bug reports and readings that went wrong are welcome in issues.
npm ci
npm run typecheck
npx vitest run --maxWorkers=2 # unit, media (real ffmpeg fixtures) and in-memory MCP tests
npm run bundle # writes dist/framelens.mjs; commit it with the source change
node scripts/benchmark.mjs # the accuracy benchmark
Start with CONTRIBUTING.md; by taking part you agree to the Code of Conduct.
Read AGENTS.md for the repository's rules (evidence labels, honest access, tests) and
docs/DESIGN.md for the module layout. Inside this repository, npx framelens resolves to the
checkout itself; point an MCP client at dist/framelens.mjs while developing.
MIT © Makkov.
Trailer frames on the website and in this README: Big Buck Bunny, © Blender Foundation,
CC BY 3.0, peach.blender.org.
Fonts on the website and banner: Panchang and General Sans from Fontshare, JetBrains Mono.
Frame Lens uses ffmpeg and yt-dlp, downloaded separately on
your machine, and speaks the Model Context Protocol. The one-file bundle includes
code from the MCP TypeScript SDK, Zod and Google's Gen AI SDK (@google/genai, Apache-2.0) with their dependencies,
under their own licences: THIRD_PARTY_NOTICES.md.