Konva Canvas

•

Enables AI assistants to draw on a 2D canvas using Konva.js, running headlessly on Node.js.

konva-mcp is a Model Context Protocol (MCP) server that empowers AI assistants to create and manipulate graphics on a 2D canvas. It operates headlessly, leveraging Konva.js for drawing capabilities within a Node.js environment. The architecture consists of a Python MCP server that exposes drawing tools over stdio and a Node.js bridge that manages the canvas state, renders graphics, and handles communication with the Python server, allowing AI to visually design and generate images programmatically.

主な機能

01Export of finished canvas designs as PNG files
020 GitHub stars
03Comprehensive canvas and layer management
04Support for drawing and manipulating various shape types (rect, circle, line, text, path, etc.)
05Ability to group multiple shapes for unified control
06Real-time canvas preview as inline images for visual inspection

ユースケース

01Enabling AI to visually prototype UI elements or simple graphic layouts
02Allowing AI agents to generate visual designs, illustrations, or marketing materials
03Automating the creation of diagrams, flowcharts, or infographics by AI