Artificial Intelligence

VideoDB MCP

VideoDB MCP lets agents upload, index, search, edit and stream video and audio, generate media, and manage collections in VideoDB.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Add subtitles

    Burn subtitles into a video from its transcript (requires an existing spoken-word index). Styling follows ASS subtitle conventions; unset fields keep VideoDB defaults. Returns a new stream + player URL with subtitles rendered.

  • Ask collection

    Answer a natural-language question from every indexed video in a collection (requires indexes built by create_index). Returns the answer and, optionally, the source moments.

  • Ask video

    Answer a natural-language question from one video's indexed content (requires an index built by create_index). Returns the answer and, optionally, the source moments.

  • Compile clips

    Stitch moments from one or more videos into a single new stream — e.g. turn search results or create_highlight_clip shots into a highlight reel. Returns immediately with {status:'processing', output_url}; poll output_url (~30 s apart) with an HTTP GET or with get_job_result until it returns stream_url and player_url.

  • Connect rtstream

    Register a live RTSP/RTMP/HLS stream with VideoDB and start ingesting it. Returns the rtstream ID used by every other rtstream tool. Set store=true if you will later export the recording (export_rtstream_recording).

  • Create collection

    Create a new VideoDB collection to organize videos. Returns the new collection with its ID.

  • Create event

    Define a reusable event (a natural-language condition such as 'a person enters the restricted area') that alerts can watch for on any stream index. Returns the event ID.

  • Create highlight clip

    Create a highlight clip of a video from a natural-language prompt: selects the moments that match the prompt and returns them as the clip's timestamped shots. Works on spoken content (requires an existing spoken-word index), visual content (requires an existing legacy scene index), or both. Returns immediately with {status:'processing', output_url}; poll output_url (~30 s apart) with an HTTP GET or with get_job_result until it returns the clip's shots with timestamps; pass those shots to compile_clips to render the clip as one playable stream.

  • Create index

    Build a retrieval-ready index from one analyzer's artifact of an understanding run; that analyzer must be done (get_understanding). v2 pipeline: understand_video (extract) → create_index (make retrievable) → semantic_search / query_index / aggregate_index / ask_video. With callback_url the call returns immediately. ## use_for — what the index may be used for | value | enables | | --- | --- | | semantic | semantic_search and search (embeddings) | | query | query_index — exact filters and ranges | | aggregate | aggregate_index — counts, group_by, facets | Omit it for all three. Drop semantic (e.g. ["query"]) to skip embeddings: cheaper, and ready instantly. get_index reports the index's EFFECTIVE capability, so it can be narrower than what you asked for — aggregate only appears once a field is groupable, and an index with no records reports []. ## fields — which artifact fields join which group fields maps a group to the field names in it, not the reverse: `{"semantic":["description"],"filter":["label"],"aggregate":["label"]}`. Groups are semantic (embedded), fts, filter, aggregate, sort, hydrate and return. A field may join several. Names may be dotted paths into nested data — `frames.detections.label` reaches inside every detection. A name that resolves nowhere fails with a 400 listing the fields that do exist. fields is optional per group: a group you declare is used verbatim, a group you omit is derived from the data. | artifact field | derived groups | | --- | --- | | text, scene_description | semantic | | language, brand_names | filter, aggregate | | activity, location | semantic, filter, aggregate | | frames.detections.label | filter, aggregate | | frames.detections.score | filter, sort | Anything else is classified by shape: prose to semantic, short strings and scalar lists to filter and aggregate, numbers also to sort, nested objects stored only. An explicitly empty group opts out and is not refilled — `{"filter":[]}` means no filter fields. ## After it returns The build is rows-first: records are stored before this returns, so query_index and aggregate_index already work while get_index reports "building". Only semantic_search waits for "ready". Reuse one index name across videos to form a logical group that collection-scoped search can target. Indexes sharing a name must share a field structure; a mismatch is rejected with a 400 showing both.

  • Create rtstream alert

    Attach an event (from create_event) to a stream index so VideoDB POSTs to callback_url each time the event is detected in a new window. Requires a running scene index or index; index_id is verified before the alert is created because alerts cannot be deleted. Returns the alert ID.

  • Create rtstream index

    Materialise an understanding output into a continuously updated searchable index (requires understand_rtstream with store=true). Returns the index; search it with search_rtstream and attach alerts with create_rtstream_alert (index_kind=index).

  • Create sandbox

    Start a GPU sandbox: VideoDB's managed runtime for open-weight models. Hosted models need none of this — a sandbox is required only when a workflow names a model from the catalog below, and is then passed as `config.sandbox_id` to understand_video. Returns as soon as the sandbox is registered, with status "provisioning". Poll get_sandbox until status is "active" before submitting any job to it — a job sent to a provisioning sandbox fails. ## Model catalog | Model | Use case | Minimum tier | | --- | --- | --- | | google/gemma-4-E2B-it | text generation | small | | Qwen/Qwen3-4B | text generation | small | | Qwen/Qwen3.5-9B | text and vision | small | | openai/whisper-large-v3-turbo | speech to text | small | | k2-fsa/OmniVoice | text to speech | small | | stabilityai/stable-audio-open-1.0 | audio generation | small | | rtdetr-v2-r50vd | object detection | small | | google/gemma-4-26B-A4B-it | text and vision | medium | | Qwen/Qwen3.5-27B | text and vision | medium | | black-forest-labs/FLUX.1-dev | image generation | medium | | google/gemma-4-31B-it | text and vision | medium | Pick the smallest tier that supports the largest model you need; one medium sandbox can serve both. Name exact models with `models`, or prepare a whole class with `model_categories` (vlm, object_detection, speech_to_text, text_to_speech, image_generation, audio_generation, text_generation). ## Cost Billing is runtime-based, recorded when the sandbox stops and measured from started_at to stopped_at: small $1/hour, medium $3.50/hour. A sandbox keeps billing until stop_sandbox runs, so reuse one across a workflow and stop it when the work is done. Limits: 5 concurrent small or 3 medium, 24 hours maximum runtime each.

  • Dataset search

    Search a hosted corpus of 30+ public robot-learning and human-activity datasets (robot and humanoid manipulation, real and simulated, drone flights, egocentric and exocentric human video) for training data. Use it when the user wants to find, count, sample, filter, verify or export episodes, demonstrations or clips for robotics, embodied AI, imitation learning, VLA or policy training, even if they name no dataset. It searches only this corpus, never the user's own VideoDB videos, and its result sets work only with get_result_set, list_result_shots and export_result_set. For which datasets exist and what fields they have, call list_datasets instead; it answers at once. A search agent does the work. It matches the meaning of each record's annotation sentence, filters on fields, counts episodes and, when asked, judges each sentence against the request (rows then carry tier: confirmed, partial, rejected or unjudged). It reads text and fields only and cannot see the footage: it cannot watch clips or classify what the frames show (blur, focus, lighting, image quality). Don't ask it to; it will say so. Write the message as the user's goal in plain language, one goal per message. State every restriction explicitly, naming datasets as list_datasets spells them ("only Ego-Exo4D", "human video only, no robot datasets", "real, not sim"). Ask for judging only when the user wants hits verified; it is slower. Returns at once with {session_id, msg_id, status:'running'}; this is not the answer. Poll get_search_status(msg_id) about every 10 s until status is 'success' or 'error'. A plain search takes seconds to a minute; judging or a multi-step request can take several minutes. One turn runs per session at a time; wait for it before sending the next message. Pass session_id on every follow-up ("of those, only kitchens", "verify them", "export the confirmed ones") so the agent refines its earlier sets; omit it only for a new, unrelated search.

  • Download stream

    Render any VideoDB stream URL (from generate_clip, compile_clips, add_subtitles or get_video) into a downloadable MP4 file. Returns immediately with {status:'processing', output_url}; poll output_url (~30 s apart) with an HTTP GET or with get_job_result until it returns download_url. A stream that was already exported answers with download_url at once.

  • Download timeline render

    Start an MP4 export of a stream produced by render_timeline. Returns immediately with {status:'processing', output_url}; poll output_url (~30 s apart) with an HTTP GET or with get_job_result until it returns download_url. Older backends answer with download_url directly.

  • Export reel

    MP4 export run by the player's reel view. Not for direct use.

  • Export rtstream recording

    Export the latest completed recording of a real-time stream as a regular VideoDB video (or audio) asset. Requires the stream to have been connected with store=true and to be stopped. Idempotent: repeated calls return the same asset.

  • Generate clip

    Cut a clip (or a supercut of several segments) from a single video without re-encoding. Returns immediately with {status:'processing', output_url}; poll output_url (~30 s apart) with an HTTP GET or with get_job_result until it returns stream_url and player_url (watchable in any browser).

  • Generate thumbnail

    Get the default thumbnail of a video, or generate one from a specific timestamp (in seconds).

  • Index rtstream audio

    Start a continuous spoken-word index on a real-time stream: the live transcript is chunked by segmenter/segment_value and summarised with the prompt. Requires audio in media_types; transcription auto-starts unless auto_start_transcript=false.

Page 1 / 2Next