MCP Server & AI Workflow
Connect AI assistants to Grub Designer's local MCP server to build layouts, generate procedural 9-slice PNGs, and visually audit themes.
On this page
What is the local MCP server?
Grub Designer includes a local Model Context Protocol (MCP) server bound strictly to loopback (http://127.0.0.1:3847/mcp over Streamable HTTP). It lets compatible AI coding assistants inspect your active project, modify the scene tree through undoable commands while syncing live on your canvas, generate guaranteed 8-bit RGBA PNG assets procedurally, audit GRUB 2 compliance, and capture clean viewport previews.
Activating MCP in Grub Designer Desktop
- Click the
MCPbutton in the top bar (or open Preferences (Ctrl+,) → MCP Server). - Enable Local MCP Server.
- Keep the default port
3847(or customize it; it only listens on127.0.0.1). - Click Copy JSON and paste it into your MCP client configuration:
mcp_config.json
{
"mcpServers": {
"grub-designer": {
"url": "http://127.0.0.1:3847/mcp"
}
}
}
Status indicators in the top bar
- Muted gray: Server stopped.
- Emerald green: Active and listening on
127.0.0.1:<port>/mcp. - Pulsing cyan: An AI assistant is actively editing or auditing your theme.
- Red: Port conflict or startup error (click to inspect details in Preferences).
What a connected AI assistant can do
- Full theme editing: Create, open, and save projects; import existing
theme.txtfiles to redesign them; add, move, resize, and reorganize components; undo or redo changes; and export the finaltheme.txt. - Automatic GRUB-ready graphics: Generate up to 20 styles of 9-Slice Boxes, 12 high-resolution backgrounds, circular progress rings, and transparent emblems — all exported as 8-bit RGBA PNGs compatible with GRUB 2.
- Automated checks and visual review: Catch missing asset files, off-screen elements, or duplicate IDs, and take clean canvas previews to verify contrast and alignment before exporting.