# Kokon

> Generate and edit images on your local GPU.

- **URL**: https://followmcp.com/en/servers/gabrielelozupone-mcp
- **Category**: Other
- **Origin**: Official
- **Stars**: 528
- **FMRS Score**: 59/100 (Grade C)
- **Source**: https://github.com/GabrieleLozupone/kokon/tree/master/mcp
- **Transports**: stdio (local process)
- **Runtimes**: Node.js 22+
- **Auth**: No credential needed

## Overview
Kokon is a local image generation and editing app with a built-in MCP server. It uses Qwen-Image 2.1 to generate or edit images on the computer's GPU and requires the Kokon desktop app. The MCP server communicates with the local service over stdio.

## Best for
- Users who have installed the Kokon desktop app and have a compatible GPU.
- Local workflows where users want images to stay on their computer and use a local model.

## Not for
- Users without the Kokon desktop app installed.
- Users who need cloud generation, default model licensing for commercial use, or custom node workflows.

## Required permissions
- The server can read and write the project directory, Kokon's output directory, and additional directories configured in QLS_MCP_ALLOWED_DIRS.
- By default, images are saved to disk and not returned to the model; setting include_preview: true returns a small JPEG preview.
- The server communicates with the local service, and file access is limited to allowed paths.

## Risks
- Model-generated edits may not match the request; review output before using it.
- The default Qwen-Image 2.1 model license permits research and evaluation only, not commercial use; the code's AGPL-3.0 license is separate from the model license.
- Allowing additional directories expands the files the server can read and write.

## Client config (JSON)
```json
{"mcpServers":{"kokon":{"type":"stdio","command":"npx","args":["-y","kokon-mcp"]}}}
```

## Tools (8)
- `generate_image`: Generate an image from a prompt.
- `edit_image`: Edit a single image from a prompt.
- `edit_images`: Combine or edit multiple images from a prompt.
- `inpaint_image`: Edit a specified area of an image.
- `outpaint_image`: Extend an image canvas and generate content in the added area.
- `upscale_image`: Upscale an image by a factor or to specified dimensions.
- `get_image_info`: Get information about an image.
- `get_generator_status`: Get the generator status.
