← Back to directory
K

Kokon

Official
Generate and edit images on your local GPU.
Category
Other #109 of 678
Stars
★ 528 Very popular
Transport
stdio (local process)
Runtime
Node.js 22+
Credentials
No credential needed
License
AGPL-3.0
Last commit
Tools
8
59FMRS · C

The Kokon MCP server exposes image generation and editing through the local Kokon app over stdio. It requires the desktop app and model downloads; image processing runs on the local GPU.

Strongest · Documentation 14/20 Weakest · Reliability 9/20

Reliability
9/20
Security and permissions
13/20
Maintenance
10/20
Documentation
14/20
Setup experience
13/20
Why each score
Reliability 9/20
The supplied materials list eight image generation, editing, and status tools, specify stdio transport and dependence on the Kokon desktop app, and describe path restrictions, no-overwrite behavior, and optional previews. The README also mentions MCP and stdio protocol tests. However, only the README and manifest are available here: there is no test source, CI evidence, or tool parameter definition to verify initialization, implementations, or error handling, so the score is conservative.
Security and permissions 13/20
The materials say MCP requests use a local HTTP service and token, reads and writes are limited to the project folder, Kokon's output folder, and explicitly configured extra folders, existing files are not overwritten, and images are not returned by default unless previews are requested. They also disclose model downloads and daily update-check requests. No implementation evidence verifies these controls, token protection, or path validation, and extra allowed directories expand access. The supplied evidence does not show a red-line behavior.
Maintenance 10/20
The manifest identifies version 0.13.0, and the README describes cross-platform updates, a code license, contribution entry points, and issue reporting. The provided material lacks release dates, commit history, issue response evidence, a security-response process, and dependency update evidence, so maintenance continuity is uncertain and the score is limited.
Documentation 14/20
The README covers installation platforms and hardware requirements, MCP client configuration, tool names, path limits, preview behavior, timeout and model-loading time, local API use, network privacy behavior, and common troubleshooting. It loses points because it does not document parameters and errors for each tool, provide evidence of an MCP handshake or actual calls, and the server depends on the Kokon app and local model setup.
Setup experience 13/20
The README provides local MCP commands for Windows and Mac and an npx route requiring Node.js 22+; the manifest also specifies an npm package and stdio transport, making the mainstream connection path fairly clear. Kokon desktop software is still required, with about 12 GB of models downloaded on first run. No CI and committed tests covering the server's key paths are evidenced, so the static-calibration cap keeps the score at or below 15.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local filesUses the network

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 and side effects

  • 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.

Setup

Before you start

Runtime:Node.js 22+

Other optional settings (1)
QLS_MCP_ALLOWED_DIRS optional Optional semicolon-separated list of extra folders the server may read and write; the project folder and Kokon output folder are always allowed.

Install the Kokon desktop app and complete the initial model setup. With Node.js 22 or newer, configure an MCP client that supports stdio to run command npx with arguments -y kokon-mcp. You can also use the executable bundled with the app. The app does not need to remain open; the first call may take about a minute while the model loads.

.mcp.json
{"mcpServers":{"kokon":{"type":"stdio","command":"npx","args":["-y","kokon-mcp"]}}}

Shown for Claude Code. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "kokon": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "kokon-mcp"
      ]
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.kokon]
command = "npx"
args = ["-y", "kokon-mcp"]

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add kokon -- npx -y kokon-mcp

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

Confirm Kokon tools such as `get_generator_status` appear in your MCP client's tool list. Then request an image generation; the first call may take about a minute while the model loads.

Troubleshooting

  1. Confirm the Kokon desktop app is installed and model setup is complete.
  2. Confirm Node.js 22 or newer is installed and the MCP client supports stdio.
  3. Allow time for the first model load; check that GPU, VRAM, and RAM meet the selected model preset.
  4. Check that input files are in the project directory, Kokon's output directory, or a directory listed in QLS_MCP_ALLOWED_DIRS.

Things to try

Once connected, you can ask your AI assistant things like:

  • Generate a lighthouse image at dusk and save it in the project folder.
  • Remove the background clutter from screenshot.png.
  • Upscale this image to 4K.

Tools 8

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

Use cases

Generate images from text prompts.
Edit, inpaint, outpaint, or upscale local images.
Run image tasks on a local GPU through an AI assistant.

Supported clients

Claude Code

Listed from the project's documentation, not tested by this site.

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.

Similar servers

Source revision b21a42534eb6 Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/gabrielelozupone-mcp.svg)](https://followmcp.com/en/servers/gabrielelozupone-mcp)