Figma Context MCP
Give your coding agent access to your Figma data. Implement designs in any framework in one-shot.
作者提供的说明(英文原文)
MCP server that lets image-only models look at video: timecoded frames, measurable properties.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"video-frames": {
"command": "uvx",
"args": [
"mcp-video-frames"
]
}
}
}在终端中运行这条命令
claude mcp add video-frames -- uvx mcp-video-frames粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"video-frames": {
"command": "uvx",
"args": [
"mcp-video-frames"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"video-frames": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-video-frames"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 Azzy-H 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.1.1)于40天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:Figma Context MCP, Claude Real Video, Figma MCP Server
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Give your coding agent access to your Figma data. Implement designs in any framework in one-shot.
Let any LLM watch a video locally — and search everything it has ever watched.
The Figma MCP server brings Figma design context directly into your AI workflow.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
An MCP server that lets image-only models look at video: frames with timecodes, plus measurable video properties.
The server provides these tools:
view_frames - Sample a time range and return frames as images, each preceded by its timecodevideo_info - Container metadata, optionally with a whole-file scene/silence/loudness scanThe model you are talking to must accept image input. Without it, the returned frames are dropped or degraded to text.
This is a local server: it is not hosted anywhere, and a client has to be pointed at it. See Self-Hosted below.
pip install mcp-video-frames # or run it without installing: uvx mcp-video-frames
That installs one console script, and the console script is the server. Point a client at it:
{
"mcpServers": { "video-frames": { "command": "mcp-video-frames" } } }
With no subcommand and piped stdio it speaks MCP; on a terminal it prints help instead of hanging. mcp-video-frames doctor checks the environment it will run in.
This path expects ffmpeg and ffprobe on PATH. If you would rather have them installed into a private virtual environment, along with a ready-made client config, use Self-Hosted below instead.
Installs nothing into your system Python: dependencies go into the project's own .venv/, and the client config points at that interpreter directly.
git clone https://github.com/Azzy-H/mcp-video-frames.git
cd mcp-video-frames
python setup_mcp.py
setup_mcp.py only does three things:
.venv/ in this directory (run it with any Python 3.10+ interpreter);requirements.txt into that .venv/;mcp-config.json, with the paths already filled in.Options:
python setup_mcp.py --max-images 12 # match your client's image limit
python setup_mcp.py --print # print the config only; write nothing python setup_mcp.py --ffmpeg # ffmpeg is not on PATH
If ffmpeg is missing the script offers to download a prebuilt build into .venv/ (Windows), to point at one you installed, or to skip. Nothing is ever installed system-wide.
.venv/Scripts/python run_server.py doctor # Windows
.venv/bin/python run_server.py doctor # macOS / Linux
This reports the ffmpeg/ffprobe paths and versions, whether the required filters are present, and whether the cache directory is writable — naming whatever is missing rather than leaving you to guess. It finds a venv-local ffmpeg on its own, so nothing has to be exported first.
test_server.py goes further and speaks real MCP to the server over stdio, so the whole path can be verified before any client is configured:
.venv/Scripts/python test_server.py connect <video file path> # Windows
.venv/bin/python test_server.py connect # macOS / Linux
It checks the handshake, the tool list, the 2n + 1 content-block ordering, whether a single-frame request comes back as PNG, and that an over-limit request is refused — and that stdout stays clean for the JSON-RPC stream.
Merge the generated mcp-config.json into your client's config. If an mcpServers section already exists, just add the video-frames entry to it. run_server.py puts src/ on sys.path itself, so no `PYTHONPATH` is needed and nothing has to be pip installed anywhere.
Replace /path/to/mcp-video-frames with the actual path to this repository on your system. On Windows the interpreter is .venv\Scripts\python.exe.
Uninstall: delete .venv/ and remove that config entry. Nothing else was written.
ffmpeg and ffprobe. setup_mcp.py installs (or downloads) them into the project's own .venv/, and the server looks for them beside its own interpreter first, then on `PATH` — so a venv-local install needs no FFMPEG_PATH to be exported. ffmpeg is required; without ffprobe, metadata falls back to parsing ffmpeg's own header output (fewer fields), and doctor says so explicitlyview_framesSamples a time range and returns an interleaved timecode + image sequence. Set start and end to the same value to look at a single moment.
| Parameter | Type | Default | Notes | |
|---|---|---|---|---|
video | string | — | absolute path (required) | |
start | number | 0 | start in seconds | |
end | number | start + interval | end in seconds | |
interval | number | 1.0 | sampling interval, 0.05–600 s | |
max_frames | integer | 12 | frames for this call; may be raised up to the image limit | |
max_edge | integer | 768 | long-edge size in pixels, 64–4096 | |
format | jpeg \ | png | jpeg for a range, png for one frame | |
quality | integer | 85 | jpeg quality, 1–100 |
The result is 2n + 1 content blocks:
text: {"n":0,"t":0.0}
image: text: {"n":1,"t":1.0} image: ... text: {"video":"...","frames":12,"range":[0.0,11.0],"interval":1.0, "format":"jpeg","max_edge":768,"clamped":false,"cached":9, "limits":{"max_images_per_call":20,"max_image_bytes":10485760, "max_total_bytes":41943040}}
The block order is load-bearing: an image without its timecode cannot be reasoned about in time. clamped reports whether the range was trimmed to the video's length, cached how many frames came from disk, and limits repeats the budget in force so the numbers do not have to be discovered by being rejected.
A range defaults to jpeg because at equal edge length it is about an order of magnitude smaller, which fits many more frames inside a client's byte budget. Ask for a single frame as png when detail matters.
Over a limit the call fails: nothing is truncated and the interval is never widened. Silently coarsening the sampling grid would invalidate the caller's assumption about time precision, so the whole call fails instead. If any single frame fails validation, no frames are returned.
video_infoReturns video metadata. detail="basic" reads container headers only and returns immediately; detail="full" adds an exhaustive whole-file scan for scene cuts, silences and EBU R128 loudness.
{
"path": "", "sha256": "", "size_bytes": 0, "duration": 0.0, "fps": 0.0, "width": 0, "height": 0, "video_codec": "", "pix_fmt": "", "color_range": "", "color_space": "", "is_hdr": false, "audio_tracks": [], "subtitle_tracks": [], "chapters": [], "detail": "full", "scene_cuts": [1.23, 5.67], "silences": [{"start": 12.0, "end": 14.5, "duration": 2.5}], "loudness": {"integrated_lufs": -23.0, "true_peak_dbfs": -1.2, "lra": 5.0}, "scan": {"ffmpeg_version": "", "computed_at": "", "cached": false} }
With detail="basic" the scene_cuts / silences / loudness / scan fields are absent rather than empty — "no value" and "not scanned" mean different things. The first full call scans the whole file; later calls reuse the cache. force=true recomputes.
Environment variables take precedence over defaults.
| Variable | Default | Purpose |
|---|---|---|
MCP_VIDEO_MAX_IMAGES | 20 | maximum images per call (the one that matters most) |
MCP_VIDEO_CACHE_DIR | .cache/ as generated by setup_mcp.py; /mcp-video-frames-cache otherwise | cache root |
FFMPEG_PATH / FFPROBE_PATH | auto-detected | checked before PATH |
MCP_VIDEO_MAX_IMAGE_BYTES | 10485760 | per-frame byte limit |
MCP_VIDEO_MAX_TOTAL_BYTES | 41943040 | per-result total byte limit |
MCP_VIDEO_MAX_IMAGE_DIM | 8192 | per-frame edge limit |
MCP_VIDEO_CACHE_MAX_BYTES | 5368709120 | cache size limit |
MCP_VIDEO_FRAME_MAX_AGE_DAYS | 14 | frame age limit |
MCP_VIDEO_SCENE_THRESHOLD | 0.3 | scene-change sensitivity |
MCP_VIDEO_MAX_IMAGES caps how many frames one call may return. Set it to match your client: limits differ between clients, and while too low is merely conservative, too high makes the entire batch unusable. max_frames defaults to 12 and may be raised only up to this limit.
The effective limits are also stated in the tool descriptions and repeated in every view_frames result, so a caller can see them without being rejected first.
The same package ships a CLI for troubleshooting and batch work:
mcp-video-frames doctor # environment self-check
mcp-video-frames info video.mp4 # basic metadata mcp-video-frames scan video.mp4 # pre-build the full scan mcp-video-frames scan --dir ./videos # process a whole directory mcp-video-frames frames video.mp4 --start 0 --end 5 # frames, as content-block JSON mcp-video-frames cache --stats # cache usage mcp-video-frames cache --prune # evict cache entries
Without installing the project (Self-Hosted above), use the launcher for the same subcommands:
.venv/Scripts/python run_server.py doctor # Windows
.venv/bin/python run_server.py info video.mp4 # macOS / Linux
Running it with no arguments prints help; as an MCP server it takes no arguments. When stdin is a pipe (as an MCP client provides) a bare invocation starts the server, which is how nothing has to be configured for the stdio case.
doctor prints its JSON report and then a one-line human verdict ("Self-check passed" / "Self-check failed"), so it is the one subcommand whose stdout is not pure JSON. The CLI and the MCP tools call the same core functions, so behaviour cannot drift between what works in a terminal and what works for a model.
Location: depends on how the server was started.
| Deployment | Cache root |
|---|---|
setup_mcp.py (the recommended one) | .cache/ inside this project |
A plain package install with no MCP_VIDEO_CACHE_DIR | /mcp-video-frames-cache |
The setup script configures the project-local .cache/ deliberately, together with cwd. A relative path resolves against the *client's* working directory, so without cwd the cache would land wherever the client happened to start — less predictable than the temp default, not more. It is already in .gitignore.
MCP_VIDEO_CACHE_DIR overrides either default, and the resolved path is printed to stderr at startup.
Everything in the cache is reproducible — deleting the directory is always safe, and only costs a re-probe.
Entries are keyed by content hash (size + mtime + the first and last 1 MB), and frames are stored individually by absolute timestamp, so overlapping views reuse work: look at 0–20 s, then 10–30 s, and 10–20 s is already on disk.
If you left the cache in the system temp directory, do not rely on the operating system to clean it up — the platforms differ too much:
| Platform | Temp-directory cleanup |
|---|---|
| Windows | Essentially none. Storage Sense runs only under disk pressure and skips files in use |
| Linux | systemd-tmpfiles ages out /tmp (~10 days); /tmp is often tmpfs and is cleared on reboot |
| macOS | $TMPDIR is cleaned by the system at unspecified times |
So the server cleans up after itself, evicting whole video entries by LRU once MCP_VIDEO_CACHE_MAX_BYTES (default 5 GB) is exceeded, plus a
只显示了开头部分;其余内容请在仓库中阅读