About raveenb/fal-mcp-server
raveenb/fal-mcp-server is an MCP server published by luminarylane in the Browser category: mCP server for Fal.ai - Generate images, videos, music and audio with Claude. Conduid read 18 tools from its source: compose_images, edit_image, generate_image, generate_image_from_image, generate_image_structured, generate_music and 12 more. No package is published for it, so it installs from a source checkout.
The repository has 65 stars and 16 forks, is licensed MIT, and its last commit was on 4 May 2026. The latest release is v1.18.0 (23 Dec 2025): Add pillow and httpx dependencies for compose_images (#104, 4d28122) Address PR review issues for compose_images (#104, 4d28122) Features Add… It follows v1.17.1 (23 Dec 2025), and the 5 most recent releases go back to v1.16.3 (23 Dec 2025). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include browser.
Install
git clone https://github.com/luminarylane/fal-mcp-serverTools (18)
compose_imagesOverlay one image on top of another (e.g., add watermark, logo). Uses PIL for precise positioning - no AI needed.| Parameter | Type | Description |
|---|---|---|
| base_image_url * | string | URL of the background/base image |
| opacity | number | Overlay opacity (0.0=transparent, 1.0=opaque) |
| output_format | string | Output image format |
| overlay_image_url * | string | URL of the image to overlay (e.g., logo, watermark). Use upload_file for local images. |
| padding | integer | Padding from edges in pixels (for preset positions) |
| position | string | Where to place the overlay. Use 'custom' with x,y for exact positioning. |
| scale | number | Scale overlay relative to base image width (0.01-1.0). Default 0.15 = 15% of base width. |
| x | integer | Custom X position in pixels (required if position='custom') |
| y | integer | Custom Y position in pixels (required if position='custom') |
edit_imageEdit an image using natural language instructions. Describe what changes you want and the AI will apply them.| Parameter | Type | Description |
|---|---|---|
| image_url * | string | URL of the image to edit (use upload_file for local images) |
| instruction * | string | Natural language description of the edit (e.g., 'make the sky more dramatic', 'change the car color to red') |
| model | string | Editing model. Options: fal-ai/flux-2/edit, fal-ai/flux-2-pro/edit (higher quality) |
| seed | integer | Seed for reproducible edits |
| strength | number | How much to change the image (0=minimal, 1=maximum) |
generate_imageGenerate images from text prompts. Use list_models with category='image' to discover available models.| Parameter | Type | Description |
|---|---|---|
| enable_safety_checker | boolean | Enable safety checker to filter inappropriate content |
| image_size | string | |
| model | string | Model ID (e.g., 'fal-ai/flux-pro') or alias (e.g., 'flux_schnell'). Use list_models to see options. |
| negative_prompt | string | What to avoid in the image |
| num_images | integer | |
| output_format | string | Output image format |
| prompt * | string | Text description of the image to generate |
| seed | integer | Seed for reproducible generation |
generate_image_from_imageTransform an existing image into a new image based on a prompt. Use for style transfer, editing, variations, and more. Use upload_file first if you have a local image.| Parameter | Type | Description |
|---|---|---|
| enable_safety_checker | boolean | Enable safety checker to filter inappropriate content |
| image_url * | string | URL of the source image to transform (use upload_file for local images) |
| model | string | Image-to-image model. Options: fal-ai/flux/dev/image-to-image, fal-ai/flux-2/edit |
| negative_prompt | string | What to avoid in the output image |
| num_images | integer | |
| output_format | string | Output image format |
| prompt * | string | Text description of desired transformation (e.g., 'Transform into a watercolor painting') |
| seed | integer | Seed for reproducible generation |
| strength | number | How much to transform (0=keep original, 1=ignore original) |
generate_image_structuredGenerate images with detailed structured prompts for precise control over composition, style, lighting, and subjects. Ideal for AI agents that need fine-grained control.| Parameter | Type | Description |
|---|---|---|
| background | string | Background description |
| camera | object | Camera settings for photographic style control |
| color_palette | array | Hex color codes for the palette (e.g., ['#000033', '#6A0DAD', '#FFFFFF']) |
| composition | string | Compositional rules (e.g., 'Rule of thirds', 'Centered', 'Golden ratio') |
| effects | array | Visual effects (e.g., ['Bokeh', 'Light rays', 'Lens flare', 'Motion blur']) |
| enable_safety_checker | boolean | Enable safety checker to filter inappropriate content |
| image_size | string | |
| lighting | string | Lighting description (e.g., 'Soft golden hour lighting', 'Dramatic chiaroscuro') |
| model | string | Model ID or alias. Use list_models to see options. |
| mood | string | Emotional mood of the image (e.g., 'Serene', 'Dramatic', 'Mysterious') |
| negative_prompt | string | What to avoid in the image (e.g., 'blurry, low quality, distorted') |
| num_images | integer | |
| output_format | string | Output image format |
| scene * | string | Overall scene description - the main subject and setting |
| seed | integer | Seed for reproducible generation |
| style | string | Art style (e.g., 'Digital art painting', 'Photorealistic', 'Watercolor', 'Oil painting') |
| subjects | array | List of subjects with their positions and descriptions |
generate_musicGenerate music from text descriptions. Use list_models with category='audio' to discover available models.| Parameter | Type | Description |
|---|---|---|
| duration_seconds | integer | Duration in seconds |
| lyrics_prompt | string | Lyrics for vocal music generation. Only used with models that support lyrics (e.g., MiniMax). Format: [verse]\nLyric line 1\n[chorus]\nChorus line |
| model | string | Model ID (e.g., 'fal-ai/lyria2', 'fal-ai/stable-audio-25/text-to-audio'). Use list_models to see options. |
| negative_prompt | string | What to avoid in the audio (e.g., 'vocals, distortion, noise') |
| prompt * | string | Description of the music (genre, mood, instruments) |
generate_videoGenerate videos from text prompts (text-to-video) or from images (image-to-video). Use list_models with category='video' to discover available models.| Parameter | Type | Description |
|---|---|---|
| aspect_ratio | string | Video aspect ratio (e.g., '16:9', '9:16', '1:1') |
| cfg_scale | number | Classifier-free guidance scale (0.0-1.0). Lower values give more creative results. |
| duration | integer | Video duration in seconds |
| image_url | string | Starting image URL for image-to-video models. Optional for text-to-video models. |
| model | string | Model ID. Use 'fal-ai/kling-video/v2/master/text-to-video' for text-only, or image-to-video models like 'fal-ai/wan-i2v'. |
| negative_prompt | string | What to avoid in the video (e.g., 'blur, distort, low quality') |
| prompt * | string | Text description for the video (e.g., 'A slow-motion drone shot of Tokyo at night') |
generate_video_from_imageAnimate an image into a video. The image serves as the starting frame and the prompt guides the animation. Optionally provide tail_image_url to interpolate to an end frame (Kling first-last-frame transition models). Use upload_file first if you have a local image.| Parameter | Type | Description |
|---|---|---|
| aspect_ratio | string | Video aspect ratio (e.g., '16:9', '9:16', '1:1') |
| cfg_scale | number | Classifier-free guidance scale (0.0-1.0). Lower values give more creative results. |
| duration | integer | Video duration in seconds |
| image_url * | string | URL of the image to animate (use upload_file for local images) |
| model | string | Image-to-video model. Options: fal-ai/wan-i2v, fal-ai/kling-video/v2.1/standard/image-to-video. For first-last-frame transitions, use a Kling model that supports it (e.g., fal-ai/kling-video/v3/4k/image-to-video, fal-ai/kling-video/o3/standard/image-to-video) and pass tail_image_url. |
| negative_prompt | string | What to avoid in the video (e.g., 'blur, distort, low quality') |
| prompt * | string | Text description guiding how to animate the image (e.g., 'camera slowly pans right, gentle breeze moves the leaves') |
| tail_image_url | string | [Kling first-last-frame] URL of the image for the END frame. When set with a compatible Kling model (v3/4k, o3, v1.6 pro, v2.x pro), generates a smooth transition from image_url to tail_image_url. |
generate_video_from_videoTransform an existing video using AI. Supports restyling (Lucy models) and motion transfer (Kling motion control). Use upload_file first if you have a local video.| Parameter | Type | Description |
|---|---|---|
| aspect_ratio | string | Aspect ratio of the generated video |
| cfg_scale | number | Classifier Free Guidance scale - how closely to follow the prompt (0.0-1.0) |
| character_orientation | string | [Kling motion control] 'video': orientation matches reference video (max 30s). 'image': orientation matches reference image (max 10s). |
| duration | integer | Duration of generated video in seconds |
| generate_audio | boolean | [Kling v2.6 Pro] Generate native audio for video (supports Chinese/English). |
| image_url | string | [Kling motion control] Reference image URL. The character in this image will be animated using motion from video_url. |
| keep_original_sound | boolean | [Kling motion control] Whether to keep original sound from reference video. |
| model | string | Video-to-video model. Options: decart/lucy-edit/dev (restyle), decart/lucy-edit/pro, decart/lucy-restyle, fal-ai/kling-video/v2.6/standard/motion-control (motion transfer), fal-ai/kling-video/v2.6/pro/motion-control |
| negative_prompt | string | What to avoid in the output (default: 'blur, distort, and low quality') |
| num_frames | integer | [Lucy models] Number of frames to process |
| prompt * | string | Text description of the transformation (e.g., 'transform into anime style', 'a woman dancing gracefully') |
| strength | number | [Lucy models] How much to transform (0=keep original, 1=full transformation) |
| tail_image_url | string | [Kling Pro] URL of image for the end of the video (for transitions). |
| video_url * | string | URL of the source video to transform (use upload_file for local videos) |
get_pricingGet pricing information for Fal.ai models. Returns cost per unit (image/video/second) in USD. Use this to check costs before generating content.| Parameter | Type | Description |
|---|---|---|
| models * | array | Model IDs or aliases to get pricing for (e.g., ['flux_schnell', 'fal-ai/kling-video']) |
get_usageGet usage and spending history for your Fal.ai workspace. Shows quantity, cost, and breakdown by model. Requires admin API key.| Parameter | Type | Description |
|---|---|---|
| end | string | End date (YYYY-MM-DD format). Defaults to today. |
| models | array | Filter by specific model IDs/aliases (optional) |
| start | string | Start date (YYYY-MM-DD format). Defaults to 7 days ago. |
inpaint_imageEdit specific regions of an image using a mask. White areas in the mask will be regenerated based on the prompt.| Parameter | Type | Description |
|---|---|---|
| image_url * | string | URL of the source image (use upload_file for local images) |
| mask_url * | string | URL of the mask image (white=edit, black=keep). Use upload_file for local masks. |
| model | string | Inpainting model. Options: fal-ai/flux-kontext-lora/inpaint, fal-ai/flux-krea-lora/inpainting |
| negative_prompt | string | What to avoid in the generated area |
| prompt * | string | What to generate in the masked area (e.g., 'a red sports car', 'green grass') |
| seed | integer | Seed for reproducible results |
list_modelsDiscover available Fal.ai models for image, video, and audio generation. Use 'task' parameter for intelligent task-based ranking (e.g., 'portrait photography'), or 'search' for simple name/description filtering.| Parameter | Type | Description |
|---|---|---|
| category | string | Filter by category (image, video, or audio) |
| limit | integer | Maximum number of models to return |
| search | string | Simple search query to filter models by name or description (e.g., 'flux'). Use 'task' for better semantic matching. |
| task | string | Task description for intelligent ranking (e.g., 'anime illustration', 'product photography'). Uses Fal.ai's semantic search and prioritizes featured models. |
recommend_modelGet AI-powered model recommendations for a specific task. Describe what you want to do (e.g., 'generate portrait photo', 'anime style illustration', 'product photography') and get the best-suited models ranked by relevance. Featured models by Fal.ai are prioritized.| Parameter | Type | Description |
|---|---|---|
| category | string | Optional category hint to narrow search |
| limit | integer | Maximum number of recommendations |
| task * | string | Description of your task (e.g., 'generate professional headshot', 'create anime character', 'transform photo to watercolor') |
remove_backgroundRemove the background from an image, creating a transparent PNG. Great for product photos, portraits, and creating composites.| Parameter | Type | Description |
|---|---|---|
| image_url * | string | URL of the image to remove background from (use upload_file for local images) |
| model | string | Background removal model. Options: fal-ai/birefnet/v2 (recommended), fal-ai/birefnet |
| output_format | string | Output format (PNG recommended for transparency) |
resize_imageResize/reformat images for different platforms (like Canva Magic Resize). Uses AI outpainting to intelligently extend content for new aspect ratios. Note: 'crop' and 'letterbox' modes coming soon.| Parameter | Type | Description |
|---|---|---|
| background_color | string | For 'letterbox' mode: hex color for bars (e.g., '#FFFFFF' for white) |
| background_prompt | string | For 'extend' mode: prompt to guide AI-generated extended areas (e.g., 'continue the beach scenery') |
| height | integer | Custom height in pixels (required if target_format='custom') |
| image_url * | string | URL of the source image (use upload_file for local images) |
| mode | string | How to handle aspect ratio change: extend (AI outpainting - recommended), crop (coming soon), letterbox (coming soon) |
| target_format * | string | Target platform format, or 'custom' to specify dimensions |
| width | integer | Custom width in pixels (required if target_format='custom') |
upload_fileUpload a local file to Fal.ai storage and get a URL. Use this to upload images, videos, or audio files that can then be used with other Fal.ai tools (e.g., image-to-video, audio transform).| Parameter | Type | Description |
|---|---|---|
| file_path * | string | Absolute path to the local file to upload (e.g., '/path/to/image.png') |
upscale_imageUpscale an image to higher resolution while preserving quality. Use for enhancing low-resolution images.| Parameter | Type | Description |
|---|---|---|
| image_url * | string | URL of the image to upscale (use upload_file for local images) |
| model | string | Upscaling model. Options: fal-ai/clarity-upscaler (high quality), fal-ai/aura-sr (fast) |
| scale | integer | Upscale factor (2x or 4x) |
Security checks
Static checks derived from the repository 11 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.8K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock.
- ✓No dynamic code executionScanned 24 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdio and HTTP with SSEsrc/fal_mcp_server/server.py:13, src/fal_mcp_server/server_dual.py:25
- Starts other programs
- No calls that start other programs
- Outbound network calls
- 16 callssrc/fal_mcp_server/handlers/image_editing_handlers.py:633, src/fal_mcp_server/handlers/image_editing_handlers.py:697, src/fal_mcp_server/handlers/utility_handlers.py:197
- Writes or deletes files
- 1 callsrc/fal_mcp_server/handlers/image_editing_handlers.py:717
- Lockfile
- uv.lock
Pattern matches on the source text of 24 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 1.8K words, fetched a month ago. The original in the repository is authoritative.
Read full README