Kokon

Design and media

Generate and edit images offline with Qwen-Image 2.1 on your GPU. Needs the Kokon desktop app.

Your AI app calls the Kokon MCP server, which does the design and media work and sends the result back to the chat.

About Kokon

Kokon is a community MCP server from GabrieleLozupone, filed in our directory under design and media. Generate and edit images offline with Qwen-Image 2.1 on your GPU. Needs the Kokon desktop app.

Kokon runs on your own machine: your AI app starts it with the command npx -y kokon-mcp@0.13.0 and talks to it over standard input and output.

Kokon is listed in the official MCP registry as io.github.GabrieleLozupone/kokon, version 0.13.0.

At a glance

Publisher
GabrieleLozupone (community)
Runs
Locally on your machine
Install from
Node.js package on npm: kokon-mcp
Written in
Rust
License
AGPL-3.0
GitHub stars
524
Official MCP registry
io.github.GabrieleLozupone/kokon

How to set up Kokon

  1. Install Node.js on the machine that runs your AI app, because Kokon starts with npx and downloads its package on first run.
  2. Check the Kokon README for keys or settings; the registry lists none that Kokon requires.
  3. Add Kokon to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Kokon tools to confirm the connection.
  5. Run one read-only task with Kokon first, and keep your app asking before each tool call until the results look right.

Kokon compared with similar servers

  • Unprompted by mocasus has fewer GitHub stars than Kokon (524 against 524); both are community servers, and both run locally.
  • Usb Rea by emirmrkaljevic has more GitHub stars than Kokon (528 against 524); both are community servers, and both run locally.
  • Seedance 2 5 API by SamurAIGPT has fewer GitHub stars than Kokon (519 against 524); both are community servers, and both run locally.

Before you connect Kokon

  • Give Kokon its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Kokon tool call until you trust what it does with them.
  • Treat text that Kokon fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Kokon on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Kokon

How marketing and sales teams put Kokon to work, by company size. Pick the size closest to yours and start Kokon on one use case.

Small business

  • A small business can use Kokon to resize and adapt one design for every channel instead of hiring for each version.
  • Owners can ask Kokon to pull brand assets and make quick ad and social variations that still look on brand.
  • Kokon runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Creative teams can connect Kokon so agents produce variants for testing while designers keep control of the master files.
  • Marketing teams can use Kokon to hand off designs to web and ads with specs attached, cutting review rounds.
  • Start Kokon on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can use Kokon with brand rules and approved assets only, so generated work stays inside the brand system.
  • Large creative ops teams can use Kokon to localize and version assets for many markets with review built in.
  • Kokon is a community server, so have security review the code and pin a version before Kokon touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Kokon README

From GabrieleLozupone/kokon on GitHub, shared under its AGPL-3.0 license. Images are left out; the original has them.

README.md

kokon-mcp

MCP server for Kokon. It lets Claude Code, Cursor, Claude Desktop and other MCP clients generate and edit images with Qwen-Image 2.1, running offline on your own GPU. No API key, no cloud. Everything stays on 127.0.0.1.

Requires the Kokon desktop app (Windows with a 12 GB+ GPU: NVIDIA, or AMD/Intel in beta; or an Apple Silicon Mac, beta, 16 GB+). Download it from kokon.app, open it once and finish the setup so the model is downloaded. This package is only the bridge between your AI agent and the app. The app doesn't need to be open: the server starts the engine on demand.

Setup

Claude Code:

claude mcp add --scope user kokon -- npx -y kokon-mcp

Any client that takes the standard JSON config (.mcp.json, Claude Desktop, Cursor...):

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

Needs Node.js 22 or newer. The Kokon installer also ships the same server as a standalone executable (kokon-mcp.exe / kokon-mcp inside the app), if you prefer not to use Node. See the main README.

Then ask: "Generate a hero image for this README and save it in docs/" or "Remove the background clutter from screenshot.png". The first call takes about a minute while the model loads.

Tools

Prompts are used exactly as your assistant writes them: Kokon's own prompt writer (Prompt+) does not run for MCP, so the assistant writes the full description. The tool descriptions tell it how.

Tool What it does
generate_image Text to image, optionally with up to 10 reference images (a person, a product, a style) in a new scene. Size chosen automatically, or set width/height or aspect ratio.
edit_image Edit an image with an instruction. Keeps its size; never overwrites the input.
edit_images Edit image 1 with the help of up to 9 more images ("image 1", "image 2"...).
inpaint_image Change only a masked area: edit, remove, replace or add something.
outpaint_image Extend an image beyond its borders.
upscale_image Enlarge an image (default 2x, up to 8192 px).
get_image_info Size, type and, for Kokon images, the prompt, seed and settings.
get_generator_status Engine state, GPU, VRAM and job queue.

Behavior and safety

  • Every result returns the absolute path of the saved file, its size, seed and metadata.
  • Reads and writes are limited to the project folder (CLAUDE_PROJECT_DIR or the working directory), Kokon's output folder and folders listed in QLS_MCP_ALLOWED_DIRS (separated by semicolons). Existing files are never overwritten.
  • Images are not sent back to the model by default. Pass include_preview: true for a small JPEG.
  • Progress is reported through MCP progress notifications.

License

AGPL-3.0-only. The Qwen-Image 2.1 model weights the app downloads are under the Qwen Research License (non-commercial). Source: github.com/GabrieleLozupone/kokon.

Questions about Kokon

What is the Kokon MCP server?

Generate and edit images offline with Qwen-Image 2.1 on your GPU. Needs the Kokon desktop app. Kokon is maintained by GabrieleLozupone on GitHub at GabrieleLozupone/kokon, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Kokon MCP server?

Add Kokon to your AI app's MCP config with the command npx -y kokon-mcp@0.13.0. In Claude Code, run claude mcp add --transport stdio gabrielelozupone -- npx -y kokon-mcp@0.13.0. To run Kokon this way you need Node.js installed.

Does Kokon need an API key?

The registry lists no required keys for Kokon. Check the Kokon README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Kokon an official MCP server?

No. Kokon is a community server maintained by GabrieleLozupone. Community servers can be excellent; read the code and the open issues before you give Kokon access to company data.

What license is Kokon under?

Kokon is released under the AGPL-3.0 license, according to its GitHub repository. The license covers the code of Kokon; the service it connects to has its own terms.