botanical-flux-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
botanical-flux-mcp
An MCP server that lets an AI assistant (Claude Code, Claude Desktop, any MCP client) generate plants by species and by season or growth stage with FLUX.1 [dev] and one fine-tuned LoKr / LoRA per species, through ComfyUI.
You ask "wisteria in bloom on a granite house, seed 7" or "turn this facade to autumn". The server picks the right model, writes the prompt in the vocabulary the model was trained on, builds the ComfyUI workflow and returns the image.
Left: generate("wisteria", "bloom"). Middle and right: generate("boston_ivy", "summer"), then make_autumn() on that image (same building, only the foliage is repainted).
Tools
Tool | What it does |
| Lists the species, their stages / seasons, trigger words and the vocabulary seen in training |
| One image from scratch (txt2img, about 1 min on a 16 GB GPU) |
| Grows a species on your own photo, inside the white area of a mask (inpainting); the rest of the photo is pasted back unchanged |
| Boston ivy: same facade, summer → autumn. The foliage mask is computed from the green pixels, and the denoise strength works as a "season slider" (1.0 = full autumn, 0.92 = early autumn) |
Species: wisteria, clematis (Clematis armandii), boston_ivy, english_ivy (climbing plants, by season); lavender (bloom / foliage); strawberry (garden strawberry) and wild_strawberry (Fragaria vesca), by growth stage: bloom, unripe, ripe, foliage. French names work too (glycine, lierre, lavande, fraise, fraise des bois…).
Related MCP server: Comfy Cozy
Why a server and not just a workflow
The models only work well when the prompt reuses the words and the order of their training captions (glcn_zc, a wisteria vine in bloom, with … pinnate leaves …). The server keeps that knowledge in one place:
one entry per species in
SPECIES, with its trigger, stages, prompt template and defaults;settings validated in my training tests: 28 steps,
euler/simple, CFG 1, FluxGuidance 3.5, the training resolution;per-species choices that came out of comparisons, for example English ivy uses the LoRA by default, because on wide facades the LoKr tends to draw a tree trunk, and the garden strawberry only has a LoKr, because its LoRA did no better than FLUX alone.
It only uses core ComfyUI nodes. The workflow is built in code for each request and sent through the ComfyUI API, so no workflow file or custom node is needed.
generate("lavender", "bloom", setting="gravel"), 768 px. Lavender and the strawberries use a close-up prompt template.
Seed 42, 768 px. Left: generate("strawberry", "ripe"). Middle: generate("wild_strawberry", "unripe"). Right: generate("wild_strawberry", "ripe", model="lora").
Setup
ComfyUI running locally, with:
models/diffusion_models/flux1-dev.safetensors(FLUX.1 [dev], loaded as fp8);models/text_encoders/clip_l.safetensorsandt5xxl_fp8_e4m3fn.safetensors;models/vae/ae.safetensors.
The species models, from the Botanical LoRA / LoKr collection, in
ComfyUI/models/loras/botanical/, keeping their file names:wisteria_glcn_zc_lokr.safetensors,clematis_armandii_clmts_zc_lokr.safetensors,boston_ivy_vgn3vrs_zc_lokr.safetensors,english_ivy_lrre_zc_lora.safetensors,lavender_lvnd_zc_lokr.safetensors,strawberry_frs_zc_lokr.safetensors,wild_strawberry_frsbs_zc_lokr.safetensors, plus the_lora/_lokrvariant if you want to switch withmodel=.Python 3.11+:
python -m venv .venv .venv/bin/pip install -r requirements.txt # Windows: .venv\Scripts\pipRegister the server in your MCP client.
Claude Code:
claude mcp add botanical-flux -e COMFYUI_URL=http://127.0.0.1:8188 -- /path/to/.venv/bin/python /path/to/server.pyClaude Desktop (
claude_desktop_config.json):{ "mcpServers": { "botanical-flux": { "command": "/path/to/.venv/bin/python", "args": ["/path/to/server.py"], "env": { "COMFYUI_URL": "http://127.0.0.1:8188" } } } }
Settings (environment variables)
Variable | Default | |
|
| ComfyUI server (Comfy Desktop uses port 8000) |
|
| subfolder of |
|
| where generated images are saved |
| see above | model file names, if yours differ |
Images and masks are sent to ComfyUI and fetched back through its API, so ComfyUI can run on another machine.
Example requests
"Generate wisteria in bloom on a Breton granite house, seed 7"
"Make this facade autumnal: C:/…/facade_summer.png"
"Grow English ivy on my photo C:/…/house.jpg using the mask C:/…/mask.png"
"Lavender foliage on bare soil, medium shot"
"Ripe wild strawberries on moss"
Adding a species
Add one entry to SPECIES in server.py: trigger word, name as written in the captions, model file prefix, a prompt template (CLIMBER for facades, or your own), the stages with their caption wording, and defaults (framing, light, resolution).
How it was built
Built with Claude Code. I designed the tools and the pipeline behind them: which model to use for each species, the settings validated by my training tests, the prompt templates taken from my captions, and the foliage mask used for season changes. The code was written by Claude Code under my direction, and I extend it myself.
The models themselves (datasets from iNaturalist / Wikimedia Commons, captions, training with kohya_ss, LoRA vs LoKr comparisons) are documented on their Hugging Face model cards.
License
Code: MIT (see LICENSE).
FLUX.1 [dev] and models derived from it are under the FLUX.1 [dev] Non-Commercial License: generated images are for demonstration and non-commercial use.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Identify plants, mushrooms and insects, and keep your garden’s records and jobs, from your AI.
Image and video AI tools and your own pipelines, run from any AI assistant.
Generate, edit, and explore AI images. Flux, Imagen, LoRA identity swap, upscale, and more.
Generate images, videos, music & lip sync with 200+ AI models (Flux, Veo 3, Kling, Suno)
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables comprehensive ComfyUI workflow automation including image generation, workflow management, node discovery, and system monitoring through natural language interactions with local or remote ComfyUI servers.3163 PyPI14MIT
- AlicenseNot gradedqualityDmaintenanceA plain-English co-pilot for ComfyUI that lets you describe image generation changes in natural language, automatically loading workflows, swapping models, tweaking parameters, and running generations while learning your preferences.23MIT
- FlicenseBqualityDmaintenanceConnects AI assistants to ComfyUI for image, video, and audio generation, providing full control over ComfyUI through 40+ tools including quick generation, cloud API nodes, and custom workflow building.46-
- AlicenseBqualityCmaintenanceEnables discovery of ComfyUI nodes and building/managing workflows with real-time execution via WebSocket. Provides 50+ tools for node discovery, workflow building, template usage, model management, and batch/chain execution.6192 npm5MIT