MSPaint-MCP-Server

MSPaint-MCP-Server

3.3

If you are the rightful owner of MSPaint-MCP-Server 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.

This project demonstrates how to automate interactions with a legacy Windows application (MSPaint) using the Model Context Protocol (MCP).

The MSPaint App Automation project utilizes the Model Context Protocol (MCP) to automate tasks in the MSPaint application through an AI agent. The project leverages `pywinauto` for controlling the Paint application and `fastmcp` to define callable tools by the AI agent. The AI agent, powered by Google's Gemini model, can perform tasks such as drawing rectangles and adding text to the Paint canvas based on natural language instructions. The MCP framework provides a standardized way for AI models to interact with external tools and resources, enabling the AI agent to call specific functions defined in the Python code.

Features

  • Automates MSPaint using AI-driven natural language instructions.
  • Utilizes `pywinauto` for controlling the Paint application.
  • Leverages `fastmcp` to define tools callable by the AI agent.
  • Integrates with Google's Gemini model for AI-driven task execution.
  • Standardized interaction with external tools via MCP.

Tools

  1. open_paint

    Open the MSPaint application

  2. draw_rectangle

    Draw a rectangle on a canvas

  3. add_text_in_paint

    Add text on the canvas