primitiv
by AI-by-design·★ 16·Score 42
Primitiv creates a single design contract from multiple sources via MCP, ensuring UI agents build consistently.
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:
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 READMEget_design_contextGet all tokens, components, conflicts, and inferred rules from the design contract
get_tokenLook up a specific design token by name
get_componentLook up a specific component and its props
get_conflictsGet unresolved conflicts between design sources
get_inferred_rulesGet design rules Primitiv has extracted from codebase patterns
Comparable tools
Installation
Install via npm or bun:
npm install @ai-by-design/primitiv
# or
bun add @ai-by-design/primitivInitialize with:
npx @ai-by-design/primitiv initThis 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
Last updated · Auto-generated from public README + GitHub signals.