mcp

v6.2.0
@ui-organized/mcp Checked 6 hours ago Published 8 days ago

MCP server for the UI Organized design system: real components and design tokens for AI coding agents, so generated code uses what exists instead of inventing…

Gives AI coding agents the real components and design tokens of UI Organized, so generated code uses what exists instead of inventing it. Covers React, Svelte, Vue and Angular, each from its own source. The quickest way is to let the CLI write the config and agent rules: Or add the server to your agent's MCP config yourself, pinned to the version of the library you have installed:

Summary extracted from the README.

@ui-organized/mcp

Gives AI coding agents the real components and design tokens of UI Organized, so generated code uses what exists instead of inventing it. Covers React, Svelte, Vue and Angular, each from its own source.

Set up

The quickest way is to let the CLI write the config and agent rules:

npx @ui-organized/cli init

Or add the server to your agent's MCP config yourself, pinned to the version of the library you have installed:

{
  "mcpServers": {
    "ui-organized": {
      "command": "npx",
      "args": ["-y", "@ui-organized/mcp@6.1.0"]
    }
  }
}

Tools

Tool What it does
search_components Finds components by name or path
get_component The full spec for one component: import, every prop and its allowed values, usage rules, examples
search_tokens Finds design tokens by purpose, such as "padding" or "error text"
get_token Checks one token name and rejects any that don't exist
get_figma_frame Turns a Figma frame into compact code (JSX, or a Svelte, Vue or Angular template) using real components and tokens, once the library's components are linked to Figma. Until then it returns found: false and points to Figma's own MCP server
resolve_figma_components Turns Figma component keys and property values into imports and markup

When something doesn't exist, the tools return found: false with real alternatives.

The data ships inside the package, and the server releases with the libraries at the same version: @ui-organized/mcp@6.1.0 describes 6.1.0 of @ui-organized/react, svelte, vue and angular. Pin it to the version you have installed. Unpinned, npx runs the newest server, which can describe props your version doesn't have. uiorg init writes the pin, and re-running it after an upgrade moves it. Only get_figma_frame uses the network or a key.

6.0.x: use @ui-organized/mcp@0.1.0, which was built from 6.0.0 and carries its data. 6.0.0 of the server was never published.

Svelte, Vue and Angular

The server answers for one library, set with --framework (or the UI_ORGANIZED_FRAMEWORK environment variable); React is the default. uiorg init sets it for you:

{ "command": "npx", "args": ["-y", "@ui-organized/mcp@6.1.0", "--framework", "vue"] }

Every answer then describes that library: its own props, scanned from its source (Vue's modelValue, Svelte's snippets, Angular's selectors and inputs), its own imports and its own markup. A component the library doesn't ship returns found: false with the ones it does — never the React one. Each tool also takes a framework argument to ask about another library.

Figma

For a Figma link, read the frame with Figma's own MCP server (get_design_context), then call get_component for each component it shows and get_token for each Figma variable name it reports. That route needs no token from this server.

get_figma_frame does the same in one call, but only once the library's components are linked to Figma. Until then it answers found: false with that route and the frame's fileKey and nodeId, without contacting Figma. Once they are linked, it needs a Figma personal access token that can read your file. Set it in your shell as FIGMA_TOKEN rather than in the MCP config, which is often committed. The token is only sent to Figma.

Anything without a verified code equivalent comes back in unmapped or unbound and isn't approximated: detached instances, unpublished components, and values not bound to a variable.