maui-graphics-mcp-server
If you are the rightful owner of maui-graphics-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.
Effortlessly craft stunning mobile UI components with AI, powered by the Model Context Protocol!
.NET MAUI Graphics MCP Server
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!
Testing
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
Tools
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.
Example AI Assistant Queries
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."
Gallery
Contributing
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
License
This project is available under the MIT License.