Onsystem logo

Onsystem

Keeps React UI code aligned with project components, variants, tokens, and accessibility rules through MCP tools.

Install Onsystem

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "onsystem": {
      "command": "npx",
      "args": [
        "-y",
        "onsystem"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

The onsystem MCP server gives coding agents a local view of a React design system’s components, props, variants, parts, imports, and tokens. Agents can discover suitable components, inspect their contracts, retrieve resolved token values, and lint TSX or JSX with location-specific fixes. It reads the design system from source using the TypeScript compiler and can target individual projects within a monorepo. Reach for onsystem when generated UI needs to follow an existing component library instead of relying on generic training-data patterns.

Use cases

  • Discover the correct component before generating a React interface
  • Inspect props, variants, parts, and examples for an existing component
  • Find design tokens instead of using arbitrary colors or spacing
  • Lint generated TSX or JSX and apply suggested fixes
  • Check changed pull-request lines against the design system

Key features

  • Component inventory with imports, parts, variants, and native elements
  • BM25 component search with weak-match indicators
  • Resolved tokens with dark-mode and usage information
  • TSX and JSX diagnostics with line locations and fixes
  • Monorepo project-path support
  • GitHub Action for pull-request checks

Tools5

What Onsystem lets your agent do. Expand a tool for its parameters.

Verified live~1.6k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

12/12 checks healthy over the last 32d

What it can do

From the 5 tools this server returned when we ran it; 5 declare their own safety hints.

Handles credentials · 4Read-only tools · 5
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age16 days
Maintainers1

Observed 2026-10-27 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · onsystem (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars20Stargazers on the source repository.
npm downloads3.3kPackage downloads in the last 30 days.
Last commit4d agoMost recent push to the default branch.
Tools exposed5Callable tools this server registers over MCP.

How Onsystem works

What onsystem does

onsystem connects an MCP-compatible coding agent to a React design-system package and exposes the information needed to write UI against that system. It is intended for teams whose components, variants, parts, and styling tokens live in source code. A shadcn/ui application can be used as a zero-configuration example, while a design-system package can be configured once for use across applications in a monorepo.

The server covers both discovery and validation. Agents can look up a component before using it, search for a component based on a UI requirement, inspect token values, and check written TSX or JSX for violations. Findings include a rule identifier, source location, explanation, and suggested correction.

How it works

onsystem analyzes components, cva and tv variants, component parts, and tokens through the TypeScript compiler. Token sources can include stylesheets, DTCG 2025.10 files, or a DESIGN.md file. The resulting checks run locally and do not require an API key for component search; search_components ranks matches with BM25.

At a monorepo root, pass the relevant project path when looking up or checking code. list_components and get_component use that path to identify the project associated with the file being edited. For unsaved code, check_ui accepts the code directly and uses a path or filename to identify its project context.

The package can be launched with npx, including a root workspace argument such as --root <workspace>. It also has a GitHub Action for checking lines changed in a pull request, and it can run alongside @shadcn/lint.

Tools and capabilities

  • list_components lists components, native rendered elements, variants, parts, and imports. Query, kind, limit, and project path options narrow the result; icons are grouped in the listing.
  • get_component returns a component’s import, typed props and defaults, variants and generated classes, parts, tokens, usage guidance, and documented examples. Names such as Button, CardHeader, and Card.Header are accepted.
  • search_components searches names, descriptions, documentation, props, and variant values for a requested UI behavior. Weak matches are marked when no strong fit is found.
  • get_tokens provides resolved token values, dark-mode values, and Tailwind or CSS-variable usage. It supports category and substring filters and separates chart and sidebar colors from status colors.
  • check_ui checks TSX and JSX for unknown components, props, and variants; native elements with design-system equivalents; hardcoded colors, spacing, and radius; and icon-only buttons without accessible names.

The default diagnostics include errors for unknown APIs, native replacements, hardcoded colors, and missing icon-button names. Arbitrary spacing and radius are warnings by default. Color checks cover hex, RGB, HSL, OKLCH, and Tailwind palette values.

Setup and configuration

Install onsystem as an MCP server in a supported client using the package’s npx command and set the workspace root. Configure the root at the design-system or monorepo level so the server can inspect the relevant source. For monorepos, provide a project path when the edited file belongs to a specific application or package.

The repository also provides installation entries for Cursor, VS Code, and a Claude Code plugin. Additional client guidance covers Codex CLI, Gemini CLI, Claude Desktop, Windsurf, JetBrains IDEs, and Zed. A GitHub Action is available when validation should run during pull requests rather than only during agent edits.

Limitations and notes

The server is designed around React design-system packages and analyzes .tsx and .jsx. Its checks reflect the components and tokens it can read from the configured project, so the workspace root and monorepo path affect the results. Chart and sidebar tokens are intentionally presented under separate categories and should not be substituted for status colors. The project is licensed under MIT.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Onsystem

onsystem is an MCP server that connects coding agents to a React design system and its source-defined components, variants, parts, and tokens. Its main tools list and search components, inspect component contracts, retrieve token values, and check TSX or JSX for invalid APIs, hardcoded styles, native replacements, and inaccessible icon-only buttons.

Install onsystem through an MCP client with its `npx` command and configure the workspace root. The repository provides installation links for Cursor and VS Code, plus a Claude Code plugin. Set the root at the design-system package or monorepo, then pass a project path when working in a specific monorepo application.

Yes, onsystem works with Cursor. The project provides a Cursor installation link that launches the package with the workspace folder as its root, allowing the agent to inspect the design system and check code in that workspace.

Pass the code to `check_ui` using its `code` argument, and provide a `path` or `filename` for the file or project it belongs to. For an existing file, pass its project path instead. The tool reports rule IDs, line and column locations, messages, and suggested fixes.

Yes, onsystem supports monorepos. Start it at the monorepo root, then pass `path` to identify the project containing the file being edited. Without a path, component listing covers every project and includes each component’s package; component lookup also accepts the project path.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewOnsystem AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/onsystem?style=directory)](https://allmcps.com/mcp/onsystem)
HTML Embed
<a href="https://allmcps.com/mcp/onsystem"><img src="https://allmcps.com/api/badge/onsystem?style=directory" alt="Onsystem on AllMCPs" /></a>