Everything you need to get Raven running with Claude Code, Claude Desktop, or any MCP-compatible client.
Design intelligence in Claude in under 2 minutes.
npm install -g raven-mcp
claude mcp add raven -- npx raven-mcp
That's it. Ask Claude to build UI and Raven's tools fire automatically:
"Build me a pricing page with 3 tiers"
"Check this signup form for accessibility issues"
"Use Stripe's design tokens for the checkout flow"
Add to your config file (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json · Windows: %APPDATA%\Claude\claude_desktop_config.json):
{
"mcpServers": {
"raven": {
"command": "npx",
"args": ["raven-mcp"]
}
}
}
Add a .mcp.json to your project root so everyone gets Raven automatically:
{
"mcpServers": {
"raven": {
"command": "npx",
"args": ["raven-mcp"]
}
}
}
git clone https://github.com/rhinocap/raven-mcp.git
cd raven-mcp && npm install && npm run build
Raven provides 13 tools across 4 knowledge layers. Claude calls them automatically based on what you're asking for.
Get design principles relevant to a UI context. Returns usability heuristics, Laws of UX, Gestalt principles, accessibility rules, typography, color theory, mobile UX, and responsive layout.
// Claude calls this automatically when you say:
"Build a pricing page"
"What accessibility rules apply to forms?"
"Check this against Nielsen's heuristics"
Evaluate a design description against UX principles. Returns relevant principles, potential violations, and improvement suggestions.
// Try:
"This signup form has 8 fields, no social login, and the
button says Submit. Evaluate it for conversion."
Get Design for Delight (D4D) templates — customer problem statement, ideal state, hypothesis, LOFAs, and experiment design.
Get proven UI/UX patterns for a specific design type. Returns do's, don'ts, evidence, and checklists.
// Try:
"Show me the best patterns for a mobile signup flow"
"What does a high-converting pricing page need?"
Get a pre-publish checklist for a UI type. Returns actionable yes/no items to verify before shipping.
// Try:
"Give me a pre-launch checklist for this landing page"
"What should I check before shipping this mobile form?"
Get business and monetization strategies for digital products. Covers monetization, retention, onboarding, growth, and metrics.
Browse available design systems. Filter by category or search by name.
Get design tokens for a specific system. Returns colors, typography, spacing, radii, elevation, and motion tokens.
// Try:
"Use Stripe's color tokens for this checkout page"
"Give me Linear's typography scale as CSS variables"
Mix tokens from different design systems to create a custom composite.
// Try:
"Build me a design system with Linear's colors
and Stripe's typography"
Search across all principles, patterns, and strategies. Use when you need to find specific guidance or don't know which category to look in.
Audit an HTML page against design standards. Returns a score, grade, passes, and errors with specific fix recommendations.
// Try:
"Audit this landing page HTML for accessibility and mobile issues"
"Check this signup form for WCAG compliance"
Get a complete brand design system for a well-known company. Returns colors, typography, spacing, CSS variables, and implementation rules.
// Try:
"Make me an app with branding like Spotify"
"Use Apple's design language for this landing page"
Generate a complete, custom design system with full token set. Provide a brand color to auto-generate a harmonious palette, pick a style preset, and export as visual HTML documentation, CSS variables, W3C DTCG JSON, Figma Variables, or SVG palette card.
// Try:
"Generate a design system for my startup with #FF6B35 as the brand color"
"Create a bold design system called NightOwl with dark mode"
"Export my design system as Figma Variables"
You don't need to call tools directly. Just talk to Claude naturally and Raven fires automatically.
"Build me a pricing page with 3 tiers for a developer tool.
Use Stripe's design tokens."
Raven will call get_pattern("pricing-page"), get_principles("pricing page"), and get_design_system("stripe") — then Claude builds the page using all three.
"This signup form has 8 fields including phone number and company
size. No social login. The submit button says 'Submit'. No inline
validation. Evaluate it for conversion and usability."
Raven calls evaluate_design and returns every principle being violated, with specific fixes.
"Give me a pre-launch checklist for this mobile landing page"
Returns a categorized checklist covering the pattern's requirements, accessibility, and platform-specific items.
"Create a design system that uses Linear's color palette
with Stripe's typography and spacing"
Raven calls compose_system to merge tokens from both systems into one set, output as CSS variables or W3C DTCG format.
"Generate a bold design system for my startup called NightOwl.
Brand color is #8B5CF6. Export as HTML so I can share it."
Raven calls generate_design_system to create a full token set — colors, typography, spacing, radius, elevation, motion — and exports it as a beautiful, self-contained HTML documentation page you can open in a browser or print to PDF.
"What does Raven know about color contrast?"
Searches all 73 principles, 13 patterns, and 5 business strategy domains for relevant guidance.
All knowledge lives in src/data/ as static JSON files. No database, no API calls, no latency.
src/data/
principles/ # 73 principles across 10 files
nielsen-heuristics.json # 10 usability heuristics
laws-of-ux.json # 21 Laws of UX
gestalt.json # Gestalt principles
accessibility.json # WCAG & a11y rules
typography.json # Type scale & hierarchy
color-theory.json # Color systems & contrast
mobile-ux.json # 12 mobile UX rules (touch, nav, overflow, fonts)
d4d.json # Design for Delight framework
responsive-layout.json # Fluid layout & intrinsic design
patterns/ # 13 proven UI patterns
signup-flow.json pricing-page.json
navigation.json forms.json
landing-page.json dashboard.json
modals-dialogs.json empty-states.json
error-states.json loading-states.json
cta.json social-proof.json
mobile-conversion.json
business/ # 5 strategy domains
monetization.json retention.json
onboarding.json growth.json
metrics.json
tokens/ # Design system tokens
registry.json # 7 systems registered
systems/
stripe.json # Stripe's full token set
linear.json # Linear's full token set
Tokens follow the W3C Design Tokens Community Group (DTCG) format. Each token has:
$value — the token value$type — color, dimension, fontFamily, fontWeight, number, etc.$description — what the token is forRequest tokens in three formats:
// W3C DTCG (default) — standards-compliant JSON
get_design_system({ id: "stripe", format: "dtcg" })
// CSS Custom Properties — drop into your stylesheet
get_design_system({ id: "stripe", format: "css" })
// Output: :root { --stripe-color-primary: #635bff; ... }
// Flat — simple key-value pairs
get_design_system({ id: "stripe", format: "flat" })
// Output: [{ path: "color.primary", value: "#635bff", type: "color" }]
| System | ID | Status | Token groups |
|---|---|---|---|
| Stripe | stripe |
Live | color, typography, spacing, radius, elevation, motion |
| Linear | linear |
Live | color, typography, spacing, radius, elevation, motion |
| Vercel | vercel |
Planned | — |
| Tailwind | tailwind |
Planned | — |
| Radix | radix |
Planned | — |
| shadcn/ui | shadcn |
Planned | — |
| Material Design 3 | material |
Planned | — |
No. All data is bundled locally in the npm package. No external API calls, no latency, no auth tokens needed. It's 272KB of curated JSON that runs on your machine.
Raven works with any MCP-compatible client. Claude Code and Claude Desktop have native MCP support. Other tools are adding MCP support — check your client's documentation.
Yes. Add a JSON file to src/data/tokens/systems/ following the W3C DTCG format, and register it in registry.json. See stripe.json as a reference.
Yes. Add JSON files to src/data/principles/ or src/data/patterns/. Follow the existing file structure. Raven loads all JSON files in those directories automatically.
npm update -g raven-mcp
73 principles curated from Nielsen Norman Group, Laws of UX, Gestalt psychology, WCAG 2.1, established typography and color theory, mobile UX excellence (touch targets, nav consistency, overflow prevention, font sizing), responsive layout best practices, and component architecture (shared chrome, style encapsulation, design token contracts). 13 UI patterns based on conversion research and A/B test evidence. Design tokens extracted from public-facing design systems.