March 5, 2026·Tutorial·1 min read

Using Fragments MCP in Claude for Design System-Aware UI Workflows

By Conan McNicholl

A Claude MCP design system workflow is most effective when Claude can query your component metadata instead of guessing from generic React examples. Fragments exposes your real component docs, props, usage rules, and tokens through MCP so Claude can build UI that matches your system.

Configure Claude for Fragments MCP

Add the hosted Fragments MCP endpoint to your project-level MCP config:

.mcp.json
{
  "mcpServers": {
    "fragments": {
      "type": "http",
      "url": "https://app.usefragments.com/api/mcp",
      "headers": {
        "Authorization": "Bearer ${FRAGMENTS_API_KEY}"
      }
    }
  }
}

Then make sure Fragments Cloud has a ready catalog and a canonical design-system binding selected.

Use Claude in three passes for better results:

  1. Discovery pass: ask Claude to call catalog/list_components.
  2. Inspection pass: ask for props, examples, and usage constraints with catalog/get_component.
  3. Implementation pass: ask Claude to generate code, lint the result with lint/file, and use tokens/suggest.

This pattern keeps Claude aligned with the components docs and reduces rework during review.

Example Prompt

Use the Fragments MCP tools to build a dialog-based confirmation flow.
Query catalog/list_components first, inspect the selected components for props and usage rules,
then implement the flow using our design system components and token suggestions.

FAQ

Can Claude use MCP tools and repository context together?

Yes. That is the ideal setup: repository context for local code and MCP for structured design system metadata.

What should I do if Claude cannot access the catalog?

Check that FRAGMENTS_API_KEY is set for the MCP client and that Cloud shows a ready canonical design-system binding.

CTA

Configure the MCP Tools docs first, then verify your Cloud catalog and review generated UI against the components docs.

Conan McNicholl
Conan McNichollFounder