Effortlessly craft stunning mobile UI components with AI, powered by the Model Context Protocol! π
This Model Context Protocol (MCP) is designed for building .NET MAUI controls, offering powerful utilities for drawing everything from basic shapes and text to intricate paths. By seamlessly combining these elements, developers can craft visually stunning UI components with precision and flexibility.
You can see what's being created in real time, and also have access to all the generated code!
The MCP Inspector is an interactive developer tool designed for testing and debugging MCP servers. Can start the inspector from our application folder using the nodejs command npx with the following command:
npx @modelcontextprotocol/inspector dotnet run
maui_graphics_clearβ Clears the entire drawing canvas, resetting it to a blank state.maui_graphics_fill_circleβ Draws a solid filled circle at a specified location with a given radius.maui_graphics_draw_circleβ Draws the outline of a circle without filling the interior.maui_graphics_fill_rectangleβ Creates a solid filled rectangle at a defined position with width and height.maui_graphics_draw_rectangleβ Draws the border of a rectangle without filling the inside.maui_graphics_fill_rounded_rectangleβ Generates a rectangle with rounded corners and fills it with a solid color.maui_graphics_draw_rounded_rectangleβ Draws the outline of a rounded rectangle without filling.maui_graphics_draw_lineβ Creates a straight line between two points.maui_graphics_fill_pathβ Fills a custom path shape with solid color or gradient.maui_graphics_draw_pathβ Draws the outline of a custom path shape.maui_graphics_draw_textβ Renders text onto the canvas at a given position.
Try these queries:
- "Generate two visually distinct ToggleSwitch components representing the 'On' and 'Off' states for a mobile UI. The design should be clean, modern, and user-friendly."
- "Create a dynamic bar chart with labeled axes, color-coded bars, and gridlines for easy readability."
- "Create a horizontal slider for adjusting volume, brightness, or other settings."
- "Create a numeric input field with plus and minus buttons to increase or decrease values."
I gladly welcome contributions to help improve this project! Whether you're fixing bugs, adding new features, or enhancing documentation, your support is greatly appreciated.
- Fork the repository
- Create your feature branch (git checkout -b feature/my-feature)
- Make your changes
- Commit your changes (git commit -m 'Add a new feature')
- Push to the branch (git push origin feature/my-feature)
- Open a Pull Request
This project is available under the MIT License.




