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 directiontask:text_to_video,image_to_video,reference_to_video, oreditaspect_ratio:16:9or9:16duration_seconds: optional preview field,3to10reference_image_paths: up to 6 local image pathsinput_video_path: local MP4 to upload and editdelivery:uriorinlineprevious_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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0841b7eab573041121afc158a52885069ea367c98392886442102c4285343ce0
|
|
| MD5 |
d3879facc735549ae170792085c51cd0
|
|
| BLAKE2b-256 |
27305c2fb588e09f30e5ef316b7ea727a806d0bcd4076bd7708713079c94319f
|
File details
Details for the file gemini_omni_mcp-1.0.1-py3-none-any.whl.
File metadata
- Download URL: gemini_omni_mcp-1.0.1-py3-none-any.whl
- Upload date:
- Size: 25.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33caa32cfe7591e3f95a20984c83ef54d53c50e4322076b5f828397eeea26cfe
|
|
| MD5 |
e70b744facf4042a9ed8bd7cc779c314
|
|
| BLAKE2b-256 |
75d30d4356394411005b9483f40687ff3ded2acef9629e282d644cf499faeae0
|