mcp-server
v0.4.3MCP server for the FFmpeg Micro video transcoding API — create, monitor, download transcodes.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
transcode_video Transcode Video
Create a video transcode job on FFmpeg Micro. Accepts one or more input videos (gs:// or https://) and an output format. Returns immediately with a pending job — use `get_transcode`, `list_transcodes`, or `transcode_and_wait` to follow progress.
| Parameter | Type | Description |
|---|---|---|
inputs * | array | One to ten input videos. Multiple inputs are concatenated in order. |
outputFormat * | string | Container format for the output file |
options | array | Advanced mode — raw FFmpeg options or virtual options. Overrides `preset`. |
preset | object | Simple mode — quality/resolution presets. Ignored if `options` is provided. |
get_transcode Get Transcode
Fetch the current state of a single transcode job by ID, including status (pending/processing/completed/failed/canceled) and `output_url` when completed.
| Parameter | Type | Description |
|---|---|---|
id * | string | Transcode job UUID |
list_transcodes List Transcodes
List transcode jobs for the authenticated account, with optional filters for status and time range. Paginated (default page 1, limit 20).
| Parameter | Type | Description |
|---|---|---|
limit | integer | Page size (max 100) |
page | integer | 1-indexed page number |
since | string | ISO timestamp — only return jobs created at/after this time |
status | string | Filter by job status |
until | string | ISO timestamp — only return jobs created at/before this time |
cancel_transcode Cancel Transcode
Cancel a pending or processing transcode job. Jobs that are already completed, failed, or canceled cannot be canceled and return an error.
| Parameter | Type | Description |
|---|---|---|
id * | string | Transcode job UUID to cancel |
get_download_url Get Download URL
Generate a short-lived (10 minute) signed HTTPS URL for a completed transcode's output file. The job must be in `completed` status. Use this instead of the `output_url` field on the job object, which is a `gs://` URL that HTTP clients cannot fetch directly.
| Parameter | Type | Description |
|---|---|---|
id * | string | Completed transcode job UUID |
transcode_and_wait Transcode and Wait
One-shot convenience tool: creates a transcode job, polls until it reaches a terminal state (completed/failed/canceled) or the timeout expires, and returns the final job plus a signed download URL if completed. Use this when you want the full transcode in one step without managing polling yourself.
| Parameter | Type | Description |
|---|---|---|
inputs * | array | One to ten input videos. Multiple inputs are concatenated in order. |
outputFormat * | string | Container format for the output file |
options | array | Advanced mode — raw FFmpeg options or virtual options. Overrides `preset`. |
pollIntervalSeconds | integer | Polling interval in seconds. Default 3. |
preset | object | Simple mode — quality/resolution presets. Ignored if `options` is provided. |
timeoutSeconds | integer | Max time to wait for the job to complete, in seconds. Default 600 (10 min). Max 1800. |
transcribe_audio Transcribe Audio
Generate an SRT subtitle file from an audio or video URL using Whisper. Returns a pending job envelope immediately — poll with `get_transcribe` until status is `completed`, then fetch the signed SRT URL with `get_transcribe_download`. The SRT URL can be dropped directly into a transcode's `subtitles='<url>'` filter to burn captions into a video.
| Parameter | Type | Description |
|---|---|---|
media_url * | string | Audio or video URL to transcribe. gs://bucket/object (preferred, from the upload flow) or a public https:// URL. |
language | string | Optional BCP-47 language hint (e.g. 'en', 'es'). Auto-detected when omitted. |
task | string | 'transcribe' keeps the source language; 'translate' outputs English regardless of source. Defaults to 'transcribe'. |
get_transcribe Get Transcribe
Fetch the current state of a single transcribe job by ID, including status (pending/processing/completed/failed/canceled) and `output_url` when completed. Mirrors `get_transcode` but for SRT generation jobs created via `transcribe_audio`.
| Parameter | Type | Description |
|---|---|---|
id * | string | Transcribe job UUID |
get_transcribe_download Get Transcribe Download URL
Generate a short-lived (10 minute) signed HTTPS URL for a completed transcribe job's SRT file. The job must be in `completed` status. The returned URL can be dropped directly into a transcode's `subtitles='<url>'` filter to burn captions into a video.
| Parameter | Type | Description |
|---|---|---|
id * | string | Completed transcribe job UUID |
request_upload_url Request Upload URL
Step 1 of the direct-upload flow. Returns a short-lived presigned HTTPS URL that the caller PUTs the file bytes to (with the same Content-Type that was passed in). After the PUT succeeds, call `confirm_upload` with the same filename and fileSize to receive the final `gs://` URL for use as a transcode/transcribe input. The presigned URL expires in ~15 minutes.
| Parameter | Type | Description |
|---|---|---|
contentType * | string | MIME type of the file (e.g. 'audio/mp4', 'video/mp4', 'image/png'). Must be a supported media type. |
fileSize * | integer | File size in bytes (positive integer). Max 1.9GB. |
filename * | string | Original filename, e.g. 'webinar.m4a'. Used as the suffix of the storage object name. |
confirm_upload Confirm Upload
Step 2 of the direct-upload flow. Call after PUTting the file bytes to the URL returned by `request_upload_url`. Returns the final `gs://...` `fileUrl` plus probe metadata (duration, format, codecs). Use the `fileUrl` directly as a `media_url` for `transcribe_audio` or as an `inputs[].url` for `transcode_video`.
| Parameter | Type | Description |
|---|---|---|
fileSize * | integer | File size in bytes — must match the size declared in `request_upload_url`. |
filename * | string | Storage object name returned by `request_upload_url` (the `result.filename` field), NOT the original local filename. |
uploadId | string | Optional upload tracking ID, if the gateway returned one with the presigned URL. |
run_blueprint Run Blueprint
Start a blueprint run — a pre-built video workflow (captioning, resizing, watermarking, ads, and more). Returns the new run ({id, status, blueprint, tokens_charged}); poll it with get_blueprint_run, or use run_blueprint_and_wait to do both in one step. Per-blueprint input fields (* = required): - product-ad: logo_url*, photo_url*, music_url? — GENERATIVE, costs 200 tokens - caption-video: video_url*, language?, style? (bold-bottom|clean-lower|center-pop|top-title) — pauses at awaiting_review with srt_text for transcript review; resume with continue_blueprint_run - viral-short: video_url…
| Parameter | Type | Description |
|---|---|---|
inputs * | object | Blueprint input fields keyed by name — see the tool description for each blueprint's fields |
slug * | string | Blueprint to run |
get_blueprint_run Get Blueprint Run
Fetch the current state of a blueprint run: status (pending/processing/awaiting_review/completed/failed), current step, and outputs when completed. Multi-output blueprints (listing-kit, hook-variants) return an `outputs` array of {label, url}; single-output blueprints return `output_url`. Download URLs are signed with a 10-minute TTL — re-fetch this run for fresh links. A caption-video run in status awaiting_review includes `srt_text`; review/edit it and resume with continue_blueprint_run.
| Parameter | Type | Description |
|---|---|---|
id * | string | Blueprint run ID |
run_blueprint_and_wait Run Blueprint and Wait
One-shot convenience tool: starts a blueprint run and polls until it completes, fails, or pauses for review. Returns the final run with `output_url` (or `outputs` [{label, url}] for multi-output blueprints — prefer `outputs` when present). Download URLs are signed with a 10-minute TTL; re-fetch with get_blueprint_run for fresh links. NOTE: caption-video pauses in status awaiting_review — this tool then returns early with `awaitingReview: true` and the run's `srt_text`; review/edit the transcript and resume with continue_blueprint_run. If your MCP client enforces a short per-request timeout…
| Parameter | Type | Description |
|---|---|---|
inputs * | object | Blueprint input fields keyed by name — see the tool description for each blueprint's fields |
slug * | string | Blueprint to run |
pollIntervalSeconds | integer | Polling interval in seconds. Default 5. |
timeoutSeconds | integer | Max time to wait for the run to finish, in seconds. Default 600 (10 min). Max 1800. |
continue_blueprint_run Continue Blueprint Run
Resume a caption-video blueprint run that paused in status awaiting_review for transcript review. Pass the approved (optionally edited) SRT text; the run continues to render the captioned video. Poll with get_blueprint_run afterwards.
| Parameter | Type | Description |
|---|---|---|
id * | string | Blueprint run ID (must be in status awaiting_review) |
srt_text * | string | The reviewed/edited SRT transcript to burn into the video |