Google · imagic Max

Connect imagic to Gemini CLI

Add imagic to Gemini CLI in one command and cull, style and export a shoot from the terminal. Watch the scope flag, or it only applies to one folder.

1Install imagic and start the trial

The MCP server ships with imagic Max, and the free 500-export trial unlocks everything with no card. Download it from the desktop page first, because Gemini CLI needs something to talk to.

2Add imagic to Gemini CLI

The -s user flag matters. Without it the server is added to the current project only.

gemini mcp add -s user imagic imagic-mcp

Configuration

Gemini CLI reads ~/.gemini/settings.json (user) or .gemini/settings.json (project). The top-level key is mcpServers.

{
  "mcpServers": {
    "imagic": {
      "command": "imagic-mcp"
    }
  }
}

Installed the packaged app from this site? Then there is no imagic-mcp command on your machine: the app itself is the server. Point command at it and pass --mcp (Windows shown; on macOS the command is /Applications/imagic.app/Contents/MacOS/imagic):

{
  "mcpServers": {
    "imagic": {
      "command": "C:\\Program Files\\imagic\\imagic.exe",
      "args": ["--mcp"]
    }
  }
}

Where that file lives

All platforms~/.gemini/settings.json

3Ask for a cull

Restart Gemini CLI if it was already running, then point it at a shoot:

Cull the shoot in D:/Shoots/eva_tom, apply my style, and export the keepers.

Gemini CLI will call scan_directory, analyze_photos, apply_my_style and export_photos in turn. Every one of those runs on your machine: the agent sends instructions, never your photos.

Things that catch people out

What imagic can do once it is connected

scan_directory analyze_photos apply_my_style export_photos

That is 21 tools in total, covering the library, culling, editing and your learned style. See the full tool reference, or the workflows for what to actually ask for.

Setting up a different client?

Windsurf (Devin Desktop) Zed Continue Goose Warp LM Studio

Try it on a real shoot

The 500-export trial includes imagic Max, the MCP server and every tool on this page. No card required.

Configuration verified against Google's documentation. If Gemini CLI changes its setup and this page falls behind, tell us and we will fix it.