Connect Cursor to UI Rules
Choose what to connect
In UI Rules, click Connect in the top bar and choose Cursor. 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 UI Rules to Cursor
Follow the setup shown in Connect. Use Add to Cursor when offered, or merge this entry into your MCP configuration, replacing YOUR_UI_RULES_MCP_URL with the full URL from Connect:
{
"mcpServers": {
"uirules": {
"url": "YOUR_UI_RULES_MCP_URL"
}
}
}For a connection saved with this codebase, use .cursor/mcp.json in the repository. To make it available across your local projects, use ~/.cursor/mcp.json. Preserve any other servers already in the file.
In Cursor's MCP settings, enable uirules and click Authenticate when prompted. Sign in to UI Rules in the browser and approve the connection. Return to Cursor and check that its tools are available.
These file locations control where Cursor loads the connection. They do not change the UI Rules scope in its URL.
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 Cursor's MCP documentation for editor settings.
