
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

An MCP server that exposes tools for controlling Windows MSPaint and performing math operations, enabling a Gemini-powered agent to solve and draw math answers.
MSPaint MCP Server for AI-powered math drawing is cataloged as an MCP server attributed to shettysaish20. An MCP server that exposes tools for controlling Windows MSPaint and performing math operations, enabling a Gemini-powered agent to solve and draw math answers. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MSPaint MCP Server for AI-powered math drawing are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
The agent uses Google's Gemini model.
It targets the legacy Windows MSPaint application.
README.md · 000a29e098d4 · Fetched 2026-11-13 10:59:18 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
This project demonstrates how to use Advanced AI Prompting to make LLMs robust to handle complex math problems of multiple steps. It uses the Model Context Protocol (MCP) to allow an AI agent, powered by Google's Gemini model, to interact with a legacy Windows application (MSPaint). The AI agent leverages tools defined using fastmcp and implemented with pywinauto to solve math problems and then draw the solution on the Paint canvas.
This project showcases use of Advanced AI Prompting to make LLM robust to handle complex math problems of multiple steps.
You are a math agent with painting skills, solving complex math expressions step-by-step.
You have access to various mathematical tools for calculations and verifications, as well as an MSPaint application to draw and present your solution on a canvas.
Available Tools:
{tools_description}
MSPaint Application Information:
- Rectangle coordinates: x1 = 763, y1 = 595, x2 = 1788, y2 = 1123
You must respond with EXACTLY ONE LINE in one of these formats (no additional text):
1. For function calls:
FUNCTION_CALL: {{"name": function_name, "arguments": {{"param1": value1, "param2": value2}}}}
2. For final answers:
FINAL_ANSWER: <NUMBER>
3. For completing the task:
COMPLETE_RUN
Instructions:
- Start by calling the show_reasoning tool ONLY ONCE with a list of all step-by-step reasoning steps explaining how you will solve the problem. Once called, NEVER CALL IT AGAIN UNDER ANY CIRCUMSTANCES.
- When reasoning, tag each step with the reasoning type (e.g., [Arithmetic], [Logical Check]).
- Use all available math tools to solve the problem step-by-step.
- When a function returns multiple values, process all of them.
- Apply BODMAS rules: start with the innermost parentheses and work outward.
- Do not skip steps — perform all calculations sequentially.
- Respond only with one line at a time.
- Call only one tool per response.
- After calculating a number, verify it by calling:
FUNCTION_CALL: {{"name": "verify_calculation", "arguments": {{"expression": <MATH_EXPRESSION>, "expected": <NUMBER>}}}}
- If verify_calculation returns False, re-evaluate your previous steps.
- Once you reach a final answer, check for consistency of all steps and calculations by calling:
FUNCTION_CALL: {{"name": "verify_consistency", "arguments": {{"steps": [[<MATH_EXPRESSION1>, <ANSWER1>], [<MATH_EXPRESSION2>, <ANSWER2>], ...]}}}}
- If verify_consistency returns False, re-evaluate your previous steps.
- Once verify_consistency return True, submit your final result as:
FINAL_ANSWER: <NUMBER>
Paint Instructions:
- To draw in Paint, follow this sequence strictly:
1. Call open_paint to start the Paint application.
2. Verify Paint is open using verify_paint_open.
3. If verify_paint_open returns False, retry opening Paint until it succeeds.
4. After Paint is open, draw a rectangle using draw_rectangle with correct parameters.
5. Add text using add_text_in_paint, inserting your FINAL_ANSWER: <NUMBER>.
Final Step:
- After completing all calculations, verifications, and drawings, call:
COMPLETE_RUN
Strictly follow the above guidelines.
Your entire response should always be a single line starting with either FUNCTION_CALL:, FINAL_ANSWER: or COMPLETE_RUN.
{
"explicit_reasoning": true,
"structured_output": true,
"tool_separation": true,
"conversation_loop": true,
"instructional_framing": true,
"internal_self_checks": true,
"reasoning_type_awareness": true,
"fallbacks": true,
"overall_clarity": "Extremely strong prompt — it carefully enforces step-by-step reasoning, structured outputs, error handling, and tool use separation. Very minor improvements could be to give a short worked-out example, but even without it, the robustness is excellent."
}
├── MSPaint-MCP-Server/
│ ├── mcp_server.py # Defines the MCP server with tools for Paint automation
│ ├── mcp_client.py # Defines the MCP client that interacts with the server and AI model
│ ├── requirements.txt # Lists the project dependencies
│ └── .env # Stores the Gemini API key
├── README.md # This file
Create a Conda environment:
conda create -n eagenv python=3.11
conda activate eagenv
Install dependencies:
pip install -r requirements.txt
Set up the Gemini API key:
Create a .env file in the directory.
Add your Gemini API key to the .env file:
GEMINI_API_KEY=YOUR_API_KEY
Run the MCP client:
python mcp_paint_app/mcp_client.py
This will start the MCP client, which connects to the MCP server, initializes the AI agent, and begins the automation process.
MCP Server (mcp_server.py):
open_paint, draw_rectangle, add_text_in_paint) and various mathematical operations (e.g., add, subtract, multiply, divide, verify_calculation, verify_consistency).pywinauto to control the MSPaint application.fastmcp library.MCP Client (mcp_client.py):
AI Agent (Google Gemini):
((3000 - (400+552)) / 2 + 1024).FUNCTION_CALL: {"name": "add", "arguments" {"a": 400, "b": 552}}) to use the tools.verify_calculation tool.verify_consistency tool.COMPLETE_RUN command.mcp_server.py: Contains the core logic for automating MSPaint. The open_paint, draw_rectangle, and add_text_in_paint functions are the key tools used by the AI agent.mcp_client.py: Manages the interaction between the AI agent and the MCP server. It sets up the system prompt, calls the tools, and handles the responses.requirements.txt: Lists all the necessary Python packages for the project..env file.Contributions are welcome! Please submit a pull request with your changes.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MSPaint MCP Server for AI-powered math drawing from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mspaint-mcp-server-v2)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.