mcp-server

v0.4.3
com.ffmpeg-micro/mcp-server Checked 4 days ago Published 1 month ago

MCP 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.

ParameterTypeDescription
inputs *arrayOne to ten input videos. Multiple inputs are concatenated in order.
outputFormat *stringContainer format for the output file
optionsarrayAdvanced mode — raw FFmpeg options or virtual options. Overrides `preset`.
presetobjectSimple 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.

ParameterTypeDescription
id *stringTranscode 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).

ParameterTypeDescription
limitintegerPage size (max 100)
pageinteger1-indexed page number
sincestringISO timestamp — only return jobs created at/after this time
statusstringFilter by job status
untilstringISO 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.

ParameterTypeDescription
id *stringTranscode 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.

ParameterTypeDescription
id *stringCompleted 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.

ParameterTypeDescription
inputs *arrayOne to ten input videos. Multiple inputs are concatenated in order.
outputFormat *stringContainer format for the output file
optionsarrayAdvanced mode — raw FFmpeg options or virtual options. Overrides `preset`.
pollIntervalSecondsintegerPolling interval in seconds. Default 3.
presetobjectSimple mode — quality/resolution presets. Ignored if `options` is provided.
timeoutSecondsintegerMax 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.

ParameterTypeDescription
media_url *stringAudio or video URL to transcribe. gs://bucket/object (preferred, from the upload flow) or a public https:// URL.
languagestringOptional BCP-47 language hint (e.g. 'en', 'es'). Auto-detected when omitted.
taskstring'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`.

ParameterTypeDescription
id *stringTranscribe 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.

ParameterTypeDescription
id *stringCompleted 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.

ParameterTypeDescription
contentType *stringMIME type of the file (e.g. 'audio/mp4', 'video/mp4', 'image/png'). Must be a supported media type.
fileSize *integerFile size in bytes (positive integer). Max 1.9GB.
filename *stringOriginal 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`.

ParameterTypeDescription
fileSize *integerFile size in bytes — must match the size declared in `request_upload_url`.
filename *stringStorage object name returned by `request_upload_url` (the `result.filename` field), NOT the original local filename.
uploadIdstringOptional 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…

ParameterTypeDescription
inputs *objectBlueprint input fields keyed by name — see the tool description for each blueprint's fields
slug *stringBlueprint 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.

ParameterTypeDescription
id *stringBlueprint 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…

ParameterTypeDescription
inputs *objectBlueprint input fields keyed by name — see the tool description for each blueprint's fields
slug *stringBlueprint to run
pollIntervalSecondsintegerPolling interval in seconds. Default 5.
timeoutSecondsintegerMax 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.

ParameterTypeDescription
id *stringBlueprint run ID (must be in status awaiting_review)
srt_text *stringThe reviewed/edited SRT transcript to burn into the video