mcp-painter
1
MCP-painter is a drawing tool example project using the MCP protocol. It offers brush customization and PNG-format image retrieval with real-time visualization via websocket communication. The project demonstrates a complete MCP-server application.
MCP-painter
A drawing tool example project based on the MCP protocol, supporting brush tools and drawing result retrieval.
Features
- Brush Tools: Set brush width and color.
- Drawing Results: Retrieve current canvas image in PNG format.
- Visualization: Websocket communication between server and client, allowing real-time API call visualization.
Usage
- Navigate to the
whiteBoard
directory. - Run
npm install
andnpm run dev
to start the application. - Visit
localhost:3000
to view the drawing board page. - Test interfaces by running
python draw_start.py
.
MCP-server Usage
Compile using:
- Navigate to
mcp-painter
- Run
npm install
andnpm run build
- Add
mcp-painter
in MCP protocol-supported clients for use.