Fragments MCP Tools for Your Local Design System

Use the standalone @usefragments/cli local MCP tools to inspect a contract, find components and tokens, and check saved files.

Updated 8 October 2026. This guide covers the standalone @usefragments/cli integration. The Fragments desktop app manages its own agent tools. Its setup is separate from this CLI workflow.

The published CLI includes a local stdio MCP server that reads the repository configuration.

Set up the local integration

Run from your existing React project:

Terminal
npx @usefragments/cli@latest init --install --metadata-only

Review the generated config and selected components. Restart your coding-agent session and approve its project integration when prompted. The installer configures the native project files for supported, selected agents; use the local MCP guide to verify the connection.

The underlying server command is:

Terminal
npx @usefragments/cli mcp --stdio

The local tools

ToolPurpose
contractSummarize the resolved authority and its component and token counts; this does not check compliance.
searchFind approved primitives or patterns by intent.
getRead one primitive or pattern, including guidance and source information.
tokensSearch the token vocabulary and available source details.
checkCheck a saved repository file and return findings.

An agent can inspect the contract, find a suitable component, read its API, choose tokens, implement the change and check the saved file. A tool result is evidence for its covered inputs, not a guarantee that the whole application is correct.

Next steps

Use the local MCP reference for setup and tool behavior. For the app workflow, start with the desktop guide.

Keep exploring