mcp-painter

mcp-painter

3.2

If you are the rightful owner of mcp-painter and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

MCP-painter is a drawing tool example project based on the MCP protocol, supporting brush tools and drawing result retrieval.

MCP-painter is a comprehensive example of an MCP-server application designed for testing and learning the MCP protocol. It features a drawing tool that allows users to set brush width and color, retrieve drawing results in PNG format, and visualize the drawing process in real-time through WebSocket communication between the server and the front-end. The application provides a complete API interface for tool development, making it a valuable resource for developers interested in MCP protocol applications.

Features

  • Brush Tool: Allows setting brush width and color.
  • Drawing Result Retrieval: Supports obtaining the current canvas image in PNG format.
  • Visualization: Real-time visualization of drawing operations through WebSocket communication.
  • API Interface: Server-side API interface for tool development.
  • MCP Protocol: Utilizes MCP protocol for tool encapsulation and interface exposure.

Tools

  1. Brush Tool Encapsulation

    Encapsulates brush width and color settings, exposing interfaces for setting and retrieving brush configurations.

  2. Drawing Result Retrieval

    Encapsulates canvas image retrieval, supporting PNG format and exposing interfaces for image and canvas size retrieval.