K

Apply your design system guidelines in v0

Connect v0 by Vercel to UI Rules as a custom MCP connection, so it builds to your brand and design system guidelines rather than its own defaults.
PreviousNext

v0 takes a custom MCP connection with your own headers. Once connected, v0 considers the UI Rules tools in every new chat.

Prerequisites

  • A v0 account.
  • A UI Rules brand with styles and rules configured.
  • A connection key for the project you want to serve. Create one from Connect your AI tools on the project overview.

Add the connection

Open the MCP form

In a new or existing chat, click the + in the chat box, then choose MCPs → Custom MCP.

Fill in the form

  • Name: UI Rules
  • URL: https://mcp.uirules.com/mcp

Under Authentication choose Headers, add one header named x-api-key with your connection key as the value, then click Add.

UI Rules appears in your MCP list, and v0 considers its tools in every new chat.

Tell v0 to use it

This step is not optional. Without it, v0 tends to pick its own visual direction before it ever reads your brand.

Open Settings → Preferences → Custom Instructions and paste:

Before any UI work, call the UI Rules MCP tools get_project_notes, then get_rules_index, then get_design_tokens. Do not generate design inspiration or choose a visual direction; the brand's rules and tokens are the design direction. Any copy content you write is governed too: before writing text, call get_rules for the content area the index lists. Run check_rule_compliance at the end and report what it returns.

Click Save. The instruction applies to every chat on the account.

If it still builds without asking

A request that never mentions the design system gives the agent nothing to look up, and it can complete the whole handshake, read the tool list, and still build from its own defaults. When that happens, add this to your first message:

Use my UI Rules design system: pull the tokens and the rules from the MCP and follow them.

It does not replace the step above, which reaches every chat without you remembering.

Troubleshooting

If v0 does not connect or ignores your brand, see Troubleshooting.

Bring your brand to every AI tool

Set your rules once and use them in every AI tool you work in.