Connect Claude and Claude Code to UI Rules
Use Claude in Connect for claude.ai, the Claude desktop app, and Cowork. Use Claude Code for the coding agent's terminal setup.
Choose what to connect
In UI Rules, click Connect in the top bar and choose Claude or Claude Code. 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.
Claude chats
- Click Add to Claude in Connect. Alternatively, in Claude open Customize → Connectors → + → Add custom connector.
- Name it UI Rules and use the full MCP URL from Connect.
- Continue with the detected settings and add the connector.
- Sign in to UI Rules and approve the connection. If sign-in did not open, click Connect beside UI Rules in Claude's connectors list.
- Enable UI Rules in the conversation where you want to use it.
On a Team or Enterprise plan, an Owner adds the connector through Organization settings → Connectors.
Claude Code
Copy the command from Connect, or run this from your repository with YOUR_UI_RULES_MCP_URL replaced by the full generated URL:
claude mcp add --transport http --scope project uirules "YOUR_UI_RULES_MCP_URL"
claude mcp login uirulesRun the sign-in command in a regular terminal. Your browser opens UI Rules; sign in and approve. Use /mcp inside Claude Code to check the connection.
--scope project saves the configuration with the codebase. Use --scope user instead if you want Claude Code to load it across local projects. That setting is separate from the organization, brand, or project selected in UI Rules.
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 Claude's connector guide and Claude Code's MCP documentation for client settings.
