Using Fragments MCP in Claude for Design System-Aware UI Workflows
Configure the standalone @usefragments/cli local MCP integration for Claude Code, then verify component and token context before checking saved UI changes.
Updated 8 October 2026. This is the standalone package workflow for Claude Code. Start with the Fragments desktop app if you want to direct work in your running app; the desktop app manages its own agent integration.
Configure Claude Code
Run from the project root:
npx @usefragments/cli@latest init --install --metadata-only --agents claudeReview the selected components and generated configuration. Restart Claude Code and approve the project integration when prompted. Setup can report action required when no canonical components have been selected; inspect the generated configuration and complete the selection before continuing.
The generated integration runs the local CLI MCP server. Its setup and failure behavior are documented in the MCP reference.
A practical agent workflow
- Inspect
contractto understand the available authority. - Use
searchandgetto find a component and read its actual API. - Use
tokensto select values from the project vocabulary. - Implement the change, then run
checkon the saved file and inspect any findings or coverage gaps.
Build a settings form using this project's approved components.
Inspect the contract, search for the form controls and read their guidance.
Use the project's tokens. Check the saved files and report anything unverified.The project source remains necessary: tool context does not replace understanding the feature or reviewing the rendered result.
Verify the integration
npx @usefragments/cli doctorA successful synthetic probe confirms that the command runs. Live verification also needs the agent host to load the integration and deliver its events. Follow the local MCP guide and inspect a real saved-file check.
FAQ
Can Claude Code use MCP and repository context together?
Yes. MCP supplies structured component and token information; source inspection supplies implementation context. Review both and check the rendered change.
Does this require a paid plan?
No paid plan is needed for local CLI checks. Paid plans for Fragments are coming soon.
Keep exploring
- Accessible React Component Library: What to Look For (and How Fragments Works)How to evaluate an accessible React component library and how Fragments combines accessibility guidance, component docs, and AI-ready metadata.
- Using Fragments MCP in Cursor for Design System-Aware UI GenerationConfigure the standalone @usefragments/cli local MCP integration for Cursor, then verify component and token context before checking saved UI changes.
- Explore FragmentsJoin the desktop beta waitlist. Paid plans coming soon.