Connect Lovable to UI Rules
Choose what to connect
In UI Rules, click Connect in the top bar and choose Lovable. Select an organization, brand, or project, or turn on Whole account. Turn on Read-only if this tool should not make changes.
Copy the URL or configuration shown for your selection. It includes your chosen scope, so keep the full URL, including anything after ?. See connection scopes for how the choices work.
Add the connection
- In Lovable, open Connectors, click +, and choose MCP server.
- Enter UI Rules as the server name and paste the full URL from Connect.
- Select OAuth, then Add & authorize.
- Sign in to UI Rules and approve the connection.
Each person connects with their own UI Rules account. Review Lovable's tool permissions; allow read tools for the workflow and review requests to change rules or tokens.
Add workspace knowledge
In Settings → Knowledge, add this to Workspace knowledge:
Before any UI work, call the UI Rules MCP tools get_brand_brief, list_notes, get_rules_index and get_design_tokens, in that order. Do not generate design inspiration or choose a visual direction; the brand's rules and tokens are the design direction. Every word of copy you write is governed too: call get_rules for the area covering writing before you write any text. Run verify_rule_compliance at the end and report what it returns.Replace any older saved version that names get_project_notes or check_rule_compliance. Saved instructions do not update when the MCP server changes.
Start working
Tell your agent which brand and project to use. For example:
Use the Acme brand and Website project in UI Rules. Read its guidelines and design tokens before building the page.
Use your own brand and project names. With an organization or brand connection, you can ask the agent to work on another brand or project within that scope without switching connections.
If you connected before the October 31 update, remove the old UI Rules connection and add it again using these steps. API keys no longer work for MCP connections. See Troubleshooting if sign-in or tool calls fail.
See Lovable's custom MCP guide for connector settings.
