Kokon
Lets your AI agent create and edit images on your own GPU with Qwen-Image 2.1, without uploading your photos.
286 stars on GitHubby Gabriele LozuponeLicense AGPL-3.0Updated 18 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add kokon -- npx -y kokon-mcp
What to fill in
| Name | What it is | Required |
|---|---|---|
QLS_MCP_ALLOWED_DIRS | Extra folders the server may read and write, separated by semicolons. The project folder and Kokon's output folder are always allowed. | No |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Remove all the people from the beach in this photo.
Change the gold sign text to KOKON CAFE and keep the rest of the picture.
What it is
Kokon is a desktop app that edits photos from a written description, and it has a built-in MCP server and local HTTP API. Your agent can ask it to create or edit images on your computer. Photos stay on your machine and there is no daily limit.
What it can do
- Edit a photo by describing the change
- Paint an area and choose Change, Remove, Replace or Add
- Expand an image beyond its frame
- Enlarge images with an AI upscaler
- Split an image into layers and export a PSD (experimental)
- Local HTTP API for scripts and agents
When to use
- βΊWhen you want an agent to edit photos without uploading them to a cloud service
- βΊWhen you need to remove, replace or restyle parts of a picture by describing it
- βΊWhen you want to split an image into layers and export it for Photoshop, GIMP or Photopea
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
fal-image-editLets your agent edit images with AI, removing backgrounds or objects. It's useful for refining photos and creating new versions of existing images.remove-bg-automationAllows your agent to automate background removal from images in Remove Bg. It speeds up photo editing for various uses.generate-imageHelps your agent create and edit images using AI. It can generate photos, illustrations, and art from descriptions.Frequently asked questions
Is Kokon free?
Yes. The readme says it is free and open source, with no daily limit because it runs on your own GPU.
Do my photos leave my computer?
No. Everything runs on your own GPU, with no account, uploads or telemetry. After setup it only checks once a day for a new version, which you can turn off.
What hardware do I need?
A 12 GB graphics card (8 GB in beta), AMD or Intel 12 GB or more through Vulkan (beta), or an Apple Silicon Mac. The readme lists 16 GB RAM and 15 GB free disk as the minimum on Windows.
Can I use the images commercially?
The readme says the images are for non-commercial use because of the model license.
Does it work offline?
Yes, after the first setup has downloaded the models.
How does my agent connect?
Through the MCP server and local HTTP API built into the app, so the Kokon app has to be installed on the same machine.
If it does not work
- βΊIf the models download is interrupted, start it again. It resumes and checks every file against its checksum.
- βΊOn a Mac, if macOS blocks the app because it is not notarized, open System Settings, Privacy & Security and click Open Anyway.
- βΊOn Linux with an NVIDIA card, install the proprietary driver; AMD and Intel cards use Mesa's Vulkan driver.
5 new skills a week. 1 minute to read.