Skip to main content

Gemini Omni Flash MCP server for text-to-video, image-to-video, reference-guided video, and conversational video editing

Project description

Gemini Omni MCP

FastMCP server for Google's gemini-omni-flash-preview video model. It supports text-to-video, image-to-video, multiple reference images, uploaded-video edits, stateful edits with previous_interaction_id, URI delivery, inline delivery, and batch generation.

Install

uvx gemini-omni-mcp

Or from source:

uv sync --all-extras
uv run gemini-omni-mcp

Configuration

export GEMINI_API_KEY=your_key_here
export OUTPUT_DIR=~/gemini_omni_videos

Optional settings include REQUEST_TIMEOUT, FILE_POLL_INTERVAL, FILE_POLL_TIMEOUT, MAX_BATCH_SIZE, DEFAULT_ASPECT_RATIO, DEFAULT_DELIVERY, and DEFAULT_DURATION_SECONDS.

Tools

generate_video

Generates one MP4 and returns JSON with video.path, interaction_id, and metadata.

Important arguments:

  • prompt: scene, motion, camera, lighting, mood, and audio direction
  • task: text_to_video, image_to_video, reference_to_video, or edit
  • aspect_ratio: 16:9 or 9:16
  • duration_seconds: optional preview field, 3 to 10
  • reference_image_paths: up to 6 local image paths
  • input_video_path: local MP4 to upload and edit
  • delivery: uri or inline
  • previous_interaction_id: continue editing a generated video

batch_generate

Runs multiple prompts in conservative parallel batches, capped at 4.

Prompting tips

  • Use "single continuous shot" and "no scene cuts" for one-scene outputs.
  • Include audio direction, for example "gentle ambient sound, no dialogue".
  • For edits, keep the prompt short and add "Keep everything else the same".
  • Use <FIRST_FRAME> and <IMAGE_REF_N> tags to bind reference-image roles.
  • Timing cues like [0-3s], [3-6s], and [6-10s] work well.

Development

uv sync --all-extras
uv run ruff format .
uv run ruff check .
uv run mypy gemini_omni_mcp/
uv run pytest
uv build

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gemini_omni_mcp-1.0.1.tar.gz (24.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gemini_omni_mcp-1.0.1-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

Details for the file gemini_omni_mcp-1.0.1.tar.gz.

File metadata

  • Download URL: gemini_omni_mcp-1.0.1.tar.gz
  • Upload date:
  • Size: 24.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for gemini_omni_mcp-1.0.1.tar.gz
Algorithm Hash digest
SHA256 0841b7eab573041121afc158a52885069ea367c98392886442102c4285343ce0
MD5 d3879facc735549ae170792085c51cd0
BLAKE2b-256 27305c2fb588e09f30e5ef316b7ea727a806d0bcd4076bd7708713079c94319f

See more details on using hashes here.

File details

Details for the file gemini_omni_mcp-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for gemini_omni_mcp-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 33caa32cfe7591e3f95a20984c83ef54d53c50e4322076b5f828397eeea26cfe
MD5 e70b744facf4042a9ed8bd7cc779c314
BLAKE2b-256 75d30d4356394411005b9483f40687ff3ded2acef9629e282d644cf499faeae0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page