Framefetch

io.github.MarvinRey7879由 GitHub 帳號 MarvinRey7879 發布v1.9.1更新於 Oct 24, 2026

Any social-video URL → transcript, metadata, frames, OCR, summary, search, Q&A. MCP server + x402.

已驗證Streamable HTTP可網頁執行網頁搜尋與抓取媒體與設計

概覽

AI 產生的概覽

遠端 MCP 伺服器,可將單一公開社群影片網址轉成逐字稿、中繼資料、畫面影格、OCR 文字、摘要與問答,供助理使用。

可以做什麼
從單一公開影片網址擷取:中繼資料、互動洞察、逐字稿、取樣畫面影格、畫面文字(OCR)、LLM 摘要、結構化 JSON、留言與情緒,或針對影片問題的有依據回答,涵蓋 YouTube、Shorts、TikTok、Instagram Reels、Pinterest 與 Reddit。擷取前可先查詢各平台支援的資料類型。沒有網址時可用關鍵字搜尋 YouTube 影片。以唯讀方式查看帳戶的額度餘額與用量。
適用情境
適合助理需要理解自己無法觀看的影片時:做摘要、回答問題、引用原話、讀取畫面文字或蒐集觀眾留言。也適合先用關鍵字找到候選影片再擷取。
執行需求
遠端 Streamable HTTP 端點 framefetch.net/mcp,另提供本機 stdio 橋接套件。呼叫工具需要 API 金鑰,透過 Authorization 標頭傳送(橋接使用 FRAMEFETCH_API_KEY),或以 x402 用 USDC 按次付費。列出工具不需金鑰;需要網路存取。
安裝前請注意
付費服務:擷取會消耗額度,搜尋按次計費,建議先查餘額;回傳 402 表示額度已用盡。API 金鑰屬於憑證,須妥善保密。僅支援公開、免登入的單一網址,服務會在其伺服器上抓取並處理第三方影片內容。publish 選項可能產生公開的單一影片頁面。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Framefetch,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.MarvinRey7879%2Fframefetch/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "framefetch": {
      "type": "http",
      "url": "https://framefetch.net/mcp"
    }
  }
}

README

[FrameFetch logo]

FrameFetch

Any social-video URL → answers, transcript, metadata, insights, frames & on-screen text (OCR).
Agent-first video data API + MCP server. Pay per call, or with x402 (USDC) — no account.

[npm] [website] [status] [MIT]


FrameFetch turns one YouTube, YouTube Shorts, TikTok, Instagram Reels, Pinterest, or Reddit video URL into a single JSON response: a direct answer to a question about the video, metadata, engagement insights, a transcript (captions or Whisper), an LLM digest (text or spoken mp3), structured JSON (chapters/entities/products/claims), comments + sentiment, parametrically-sampled frames (every Nth / 1-per-second / a time range, at any width), and the on-screen text burned into those frames (OCR — captions, price tags, signage). Plus keyword search when you don't have a URL yet, and batch for up to 10 URLs in one call. Built API-first and MCP-first for AI agents.

This repo is the open-source client + docs. The service itself runs at framefetch.net — you bring a free API key (or pay per call with x402); the backend stays hosted.

Why

An LLM can't watch a video. To reason about one it needs the video turned into text and images first — an answer, a transcript, metadata, a few frames. FrameFetch returns all of that from a URL, across six platforms, through one schema.

Install

bash
npm install framefetch

Node 18+ (uses built-in fetch). Get a free key: framefetch.net.

Version note. This repo is at 0.4.0. The newest version currently on npm is 0.3.0 — npm install framefetch still gives you that one, and it has only extract/metadata/transcript/frames/platforms/status/demo/createKey. Everything else documented below is live on the API today and available from this repo; from npm 0.3.0 you can reach the same data through extract({ fields: [...] }).

Ask a question — get an answer, not a transcript dump

A direct question about a video returns a short, grounded answer with timestamped quotes, instead of you parsing a 25,000-token transcript yourself.

js
import { FrameFetch } from 'framefetch';
const ff = new FrameFetch({ apiKey: process.env.FRAMEFETCH_API_KEY });
const { ask } = await ff.ask(  'https://www.youtube.com/watch?v=jNQXAC9IVRw',  'What does the presenter say to do first?',);
console.log(ask.answer);          // short, direct answerconsole.log(ask.confidence);      // 'high' | 'medium' | 'low'for (const q of ask.quotes) {     // verbatim, timestamped supporting quotes  console.log(`[${q.t_sec}s] ${q.text}`);}console.log(ask.coverage);        // which part of the transcript was analyzed

Charged only when an answer is actually produced. A repeat question about an already-extracted video reuses the cached transcript, so it answers fast without a re-download or re-transcription — but the answer itself is always freshly generated, never cache-served.

Frames-based answers: when a video has no transcript (e.g. Pinterest, or transcription failed), the answer is grounded in sampled keyframe images instead. Then coverage.mode is "frames", quotes is [] (no transcript text to quote), and confidence is capped at "medium".

Quick start

js
import { FrameFetch } from 'framefetch';
const ff = new FrameFetch({ apiKey: process.env.FRAMEFETCH_API_KEY });
const r = await ff.extract({  url: 'https://www.youtube.com/watch?v=jNQXAC9IVRw',  fields: ['metadata', 'transcript', 'frames', 'text_overlay'],  frames: { mode: 'fps', fps: 1, width: 480 },});
console.log(r.metadata.title);         // "Me at the zoo"console.log(r.transcript.text);        // "All right, so here we are, in front of the elephants…"console.log(r.frames.length);          // 19 — frames is an arrayconsole.log(r.textOverlay?.[0]?.text); // on-screen text detected in the first frame, if any

Note the two spellings: text_overlay is the request field name, textOverlay is the response key.

Scoped helpers

js
await ff.metadata(url);          // title, author, duration, views, likes…await ff.transcript(url);        // captions, else Whisperawait ff.frames(url, { mode: 'fps', fps: 1, width: 512 });await ff.ask(url, 'What product is being reviewed?'); // grounded Q&A, see aboveawait ff.digest(url);            // LLM summary of the transcriptawait ff.audioDigest(url, { voice: 'nova' }); // spoken mp3 briefing (signed URL, 24h)await ff.structured(url);        // chapters/entities/products/claims/key_momentsawait ff.comments(url, { comments_cap: 50 }); // top-level commentsawait ff.commentSentiment(url);  // aggregated audience-mood rollup (+ the comments)await ff.platforms();            // capability matrix (no key)await ff.status();               // live service health (no key)
// on-screen text (OCR) — requires "frames" alongside it, use extract() directly:await ff.extract({ url, fields: ['frames', 'text_overlay'], frames: { mode: 'fps', fps: 1 } });

Every helper above is a thin wrapper over extract(), so anything extract() accepts (translate, format, extra fields, …) can be passed as the last argument and is forwarded unchanged.

Search for videos, extract many at once

js
// Find something to extract when you don't have a URL yetconst s = await ff.search('how to make sourdough', { limit: 5 });for (const hit of s.results) {  console.log(hit.title, hit.url, hit.durationSec);}
// Then extract up to 10 of them in ONE call. Shared options apply to every url.const b = await ff.batch(s.results.slice(0, 3).map((r) => r.url), {  fields: ['metadata', 'digest'],});for (const item of b.results) {  if (!item.ok) { console.error(item.url, item.error?.code); continue; }  console.log(item.metadata.title, '→', item.digest.gist);}

One failing URL never fails the batch — each entry carries its own ok flag and, when ok is false, an error with code/message/hint. Per-URL frames specs are not accepted in a batch; use extract() for those.

Translate the transcript, export subtitles

js
// translate the transcript into 1 of 25 languages (surfaced as transcript_translated)const r = await ff.transcript(url, { translate: 'ja' });console.log(r.transcript_translated.text);
// export subtitles directly — format is sent as a query param, response comes back as a stringconst srt = await ff.transcript(url, { format: 'srt' });         // source-language subtitlesconst vttJa = await ff.transcript(url, { translate: 'ja', format: 'vtt' }); // translated subtitles

No signup

js
const ff = new FrameFetch();                              // no keyawait ff.demo('https://youtu.be/jNQXAC9IVRw');            // instant metadata, rate-limitedconst { key } = await ff.createKey('[email protected]');    // self-serve key + free credit

Use it from an MCP agent

FrameFetch ships an MCP server (Streamable HTTP) with four tools: framefetch_extract, framefetch_platform_capabilities, framefetch_search and framefetch_account. Add it to Claude, Cursor, or any MCP client:

json
{  "mcpServers": {    "framefetch": {      "url": "https://framefetch.net/mcp",      "headers": { "Authorization": "<YOUR_FRAMEFETCH_KEY>" }    }  }}

Or one line:

bash
claude mcp add --transport http framefetch https://framefetch.net/mcp \  --header "Authorization: <YOUR_FRAMEFETCH_KEY>"

MCP lives at https://framefetch.net/mcp and speaks JSON-RPC over Streamable HTTP. REST lives under /v1/* and takes plain JSON ({"url": "…"}). Crossing the two is the single most common first-call mistake, so both directions answer clearly: a REST body POSTed to /mcp comes back as a JSON-RPC parse error, and a JSON-RPC body POSTed to /v1/extract comes back as 400 WRONG_ENDPOINT naming the right URL for your client.

Local stdio bridge

Prefer a local stdio server (Claude Desktop, sandboxes, no inbound HTTP)? This package ships framefetch-mcp, a zero-dependency stdio↔HTTP bridge that exposes the same tools and forwards calls to framefetch.net:

json
{  "mcpServers": {    "framefetch": {      "command": "npx",      "args": ["-y", "framefetch-mcp"],      "env": { "FRAMEFETCH_API_KEY": "<YOUR_FRAMEFETCH_KEY>" }    }  }}

tools/list works with no key; tool calls use FRAMEFETCH_API_KEY (or x402). Override the endpoint with FRAMEFETCH_MCP_URL.

Pay without an account (x402)

Autonomous agents can pay per call in USDC via x402 on Base — no signup, no human in the loop. Discoverable in the x402 Bazaar and at /.well-known/x402.json. Humans can use a free tier, prepaid credits, or a Stripe card.

Errors

Failed calls throw FrameFetchError with .status, .code, and .hint:

js
import { FrameFetchError } from 'framefetch';try {  await ff.transcript(url);} catch (e) {  if (e instanceof FrameFetchError && e.status === 402) {    // out of credit — top up at framefetch.net or via x402  }}

API surface

MethodEndpointAuth
extract({ url, fields, frames, … })POST /v1/extractkey
ask(url, question)POST /v1/extract (ask param)key
metadata(url)POST /v1/metadatakey
transcript(url, { translate, format })POST /v1/transcriptkey
frames(url, spec)POST /v1/frameskey
digest(url)POST /v1/extract (digest)key
audioDigest(url, { voice })POST /v1/extract (audio_digest)key
structured(url)POST /v1/extract (structured)key
comments(url, { comments_cap })POST /v1/extract (comments)key
commentSentiment(url)POST /v1/extract (comment_sentiment)key
search(query, { limit })POST /v1/searchkey
batch(urls, { fields })POST /v1/batchkey
platforms()GET /v1/platforms—
status()GET /v1/status—
demo(url)POST /v1/demo—
createKey(email)POST /v1/keys—

Full extract() request shape

ts
ff.extract({  url: string,  fields?: Field[],            // 'metadata' | 'insights' | 'transcript' | 'frames' | 'text_overlay'                               // | 'digest' | 'audio_digest' | 'structured' | 'comments'                               // | 'comment_sentiment' | 'delta'  frames?: { mode, n, fps, from, to, format, width },  translate?: string,          // ISO-639-1 target language (25 supported)  voice?: string,              // TTS voice for audio_digest  comments_cap?: number,       // 1-200, default 100  ask?: string,                // 3-500 char question — see ff.ask() above  publish?: boolean,           // opt in to a public per-video SEO page  format?: 'md' | 'markdown' | 'srt' | 'vtt', // alternate egress rendering (returns a string, not JSON)});

See index.d.ts for the complete typed response shape (ExtractResult, Ask, VideoStructured, VideoComments, CommentSentiment, AudioDigest, SearchResult, BatchResult, …).

Full OpenAPI: framefetch.net/openapi.json · Docs: framefetch.net/docs

Links

Website · Docs · Pricing · Status · Guide: giving an agent video data · Compare vs alternatives

License

MIT

來源:README.md,提交 3864fc2

工具

4

framefetch_extract

Extract data from ONE public social-video URL (YouTube incl. Shorts, TikTok, Instagram Reels, Pinterest, Reddit): metadata/insights/transcript/frames/digest/comments/etc — see `fields`. When NOT to use: non-video pages, private/login-walled content, or bulk crawling (one URL per call). Returns one JSON object with only the requested fields + a `cost` block (micro-USD); shapes: https://framefetch.net/docs. Cost scales with what you request (frames/transcript cost more than metadata). No key? POST /v1/keys {email} -> instant key (~100 free calls); or x402 (USDC), no account. Example: {"url":"https://www.youtube.com/watch?v=...","fields":["metadata","transcript"]}.

輸入參數askurl必填cachevoicefieldsframestranslatecomments_capsubtitle_format

framefetch_platform_capabilities

JSON matrix of data types (metadata, insights, transcript, frames, comments) per platform — YouTube (+Shorts), TikTok, Instagram Reels, Pinterest, Reddit. Call before framefetch_extract to confirm support. No input.

無需輸入參數。

framefetch_account

Check this account's credit balance/usage. Read-only — never charges; works at zero balance (unlike framefetch_extract). Purpose: check balance before expensive framefetch_extract calls — at session start, periodically, or after a 402. When NOT to use: before every single framefetch_extract call in a tight loop. Returns: balance_micros, spend_7d_micros, calls_7d — micro-USD (1,000,000 = $1). Low balance: top up via x402 (USDC) at POST /v1/topup, or card at POST /v1/checkout.

無需輸入參數。

版本歷史

1
  1. v1.9.1最新Sep 16, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分