
nanayax3/krita-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
nanayax3/krita-mcp는 MCP 서버 후보로 수입 https://github.com/nanayax3/krita-mcp.]
개요
nanayax3/krita-mcp는 MCP 서버 후보로 수입 https://github.com/nanayax3/krita-mcp.]
개요(AI 번역)
모형 Context 의정서를 통해 Krita에 있는 AI 페인트를 하십시오.
이 브리지는 Claude (또는 MCP 클라이언트) 캔버스, 페인트 스트로크, 그리기 모양, 내보내기 이미지, 그리고 더 많은 것을 만들 수 있습니다 — 모두 실행 Krita 인스턴스.
그것이 작동하는 방법
2개의 성분:
-
Krita Plugin ([T0]]) - Krita 내부에서 실행되는 파이썬 플러그인,
localhost:5678에서 HTTP 서버를 exposing. 그것은 페인트 명령을 받고 명령 큐를 통해 Krita의 주요 스레드에 실행합니다. -
** MCP Server** ([T2]]) - MCP 클라이언트에 그림 도구를 노출하는 FastMCP 서버. 그것은 MCP 도구는 Krita 플러그인에 HTTP 요청으로 호출합니다.
설치
##1. Krita 플러그인 설치
Krita 플러그인 디렉토리에 플러그인 파일을 복사:
| OS | 경로 |
|---|---|
| 윈도우 | [T3] |
| 리눅스 | [T4] |
| 맥 OS | [T5] |
모두 복사:
krita-plugin/kritamcp/([T7]] 폴더)- [T8]]
그런 다음 Krita : ** 설정 → Krita → Python 플러그인 관리자 → Enable “Krita MCP Bridge”** 및 Krita를 다시 시작합니다.
##2. MCP Server 설치
또는 가상 환경:
# # # 3.
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Krita MCP Server
Let AI paint in Krita via the Model Context Protocol.
This bridge allows Claude (or any MCP client) to create canvases, paint strokes, draw shapes, export images, and more — all inside a running Krita instance.
How It Works
Two components:
-
Krita Plugin (
krita-plugin/) — A Python plugin that runs inside Krita, exposing an HTTP server onlocalhost:5678. It receives paint commands and executes them on Krita’s main thread via a command queue. -
MCP Server (
server.py) — A FastMCP server that exposes painting tools to any MCP client. It translates MCP tool calls into HTTP requests to the Krita plugin.
MCP Client (Claude, etc.) ←→ MCP Server (server.py) ←→ Krita Plugin (HTTP on :5678) ←→ Krita
Setup
1. Install the Krita Plugin
Copy the plugin files to your Krita plugins directory:
| OS | Path |
|---|---|
| Windows | %APPDATA%\krita\pykrita\ |
| Linux | ~/.local/share/krita/pykrita/ |
| macOS | ~/Library/Application Support/krita/pykrita/ |
Copy both:
krita-plugin/kritamcp/(the folder with__init__.py)krita-plugin/kritamcp.desktop
Then in Krita: Settings → Configure Krita → Python Plugin Manager → Enable “Krita MCP Bridge” and restart Krita.
2. Install the MCP Server
pip install fastmcp httpx
Or with a virtual environment:
python -m venv .venv
source .venv/bin/activate # or .venv\Scripts\activate on Windows
pip install -r requirements.txt
3. Configure Your MCP Client
Add to your MCP client config (e.g., Claude Desktop’s claude_desktop_config.json):
{
"mcpServers": {
"krita": {
"command": "python",
"args": ["/path/to/server.py"]
}
}
}
If using a virtual environment:
{
"mcpServers": {
"krita": {
"command": "/path/to/.venv/Scripts/python",
"args": ["/path/to/server.py"]
}
}
}
Available Tools
| Tool | Description |
|---|---|
krita_health |
Check if Krita is running with the plugin active |
krita_new_canvas |
Create a new canvas (width, height, background color) |
krita_set_color |
Set foreground paint color (hex) |
krita_set_brush |
Set brush preset, size, and opacity |
krita_stroke |
Paint a stroke through a list of [x, y] points |
krita_fill |
Fill a circular area at a point |
krita_draw_shape |
Draw rectangle, ellipse, or line |
krita_get_canvas |
Export canvas to PNG (for AI to see progress) |
krita_save |
Save canvas to a specific file path |
krita_undo / krita_redo |
Undo/redo actions |
krita_clear |
Clear canvas to a solid color |
krita_get_color_at |
Eyedropper — sample color at a pixel |
krita_list_brushes |
List available brush presets |
krita_open_file |
Open an existing .kra, .png, .jpg, etc. |
The Export Timeout Fix
This is the main reason this repo exists.
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →설정
{
"mcpServers": {
"krita": {
"command": "python",
"args": ["/path/to/server.py"]
}
}
}