MCP Catalogs
Home

primitiv

by AI-by-design·16·Score 42

Primitiv creates a single design contract from multiple sources via MCP, ensuring UI agents build consistently.

developer-toolsai-llmother
1
Forks
0
Open issues
this month
Last commit
2d ago
Indexed

Overview

Primitiv serves as the design contract layer for AI agents, reconciling conflicts between design sources like Figma, codebase, Storybook, and token files. It exposes a machine-readable contract through MCP that agents can query before building UI. The system scans sources, detects conflicts, and applies governance rules to produce a single authoritative answer. It runs entirely locally, keeping design assets private and ensuring no code leaves your machine.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:Ensuring AI-generated UI components match existing design system
you:Automating design token validation across frontend projects
you:Integrating design tools like Figma with code editors via MCP
you:What sources does Primitiv support?
you:How does it handle conflicts between design sources?

When to choose this

Choose Primitiv when your team uses multiple design tools and needs AI agents to build UI that strictly adheres to a reconciled design system contract.

When NOT to choose this

Avoid Primitiv if you're working with a single design source and don't need reconciliation, or if you prefer human-readable documentation over machine-readable contracts.

Tools this server exposes

5 tools extracted from the README
  • get_design_context

    Get all tokens, components, conflicts, and inferred rules from the design contract

  • get_token

    Look up a specific design token by name

  • get_component

    Look up a specific component and its props

  • get_conflicts

    Get unresolved conflicts between design sources

  • get_inferred_rules

    Get design rules Primitiv has extracted from codebase patterns

Comparable tools

design-tokens-mcpfigma-mcpstyle-guide

Installation

Install via npm or bun:

npm install @ai-by-design/primitiv
# or
bun add @ai-by-design/primitiv

Initialize with:

npx @ai-by-design/primitiv init

This creates .mcp.json in your project root. For Claude Desktop, add to your config:

{
  "mcpServers": {
    "primitiv": {
      "command": "npx",
      "args": ["@ai-by-design/primitiv", "serve"]
    }
  }
}

FAQ

What sources does Primitiv support?
Currently supports codebase (CSS variables, TypeScript tokens, React components), with adapters for Figma and Storybook in development. New sources can be added via adapters.
How does it handle conflicts between design sources?
Primitiv surfaces conflicts between sources and resolves them according to your governance configuration. You can set source of truth (codebase, Figma, etc.) and conflict resolution strategy (error, warn, auto-resolve).

Compare primitiv with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.