MCP Server

AI Integration

Connect AI assistants to the Airy registry via the Model Context Protocol. Get accurate component lookups, source code, dependency trees, and design guidelines in any MCP-compatible client.

What it does

The Airy MCP server gives AI assistants structured, real-time access to every component, block, hook, guideline, and theme token in the registry. Instead of guessing at APIs and import paths, the AI can look up actual source code, resolve dependency trees, and reference design system rules directly.

Connect

Cursor (one-click)

Install the Airy MCP server into Cursor with one click:

Add to Cursor

Cursor (manual)

Or add to your project's .cursor/mcp.json manually:

{
  "mcpServers": {
    "airy-registry": {
      "url": "https://airy.lev.com/api/mcp"
    }
  }
}

Claude.ai

Go to SettingsConnectors Add custom connector and paste:

https://airy.lev.com/api/mcp

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "airy-registry": {
      "url": "https://airy.lev.com/api/mcp"
    }
  }
}

Local (STDIO)

For faster response times during local development, run the server directly. Build it first:

cd mcp-server && npm install && npm run build

Then point Cursor to the local build:

{
  "mcpServers": {
    "airy-registry": {
      "command": "node",
      "args": ["/path/to/airy/mcp-server/build/index.js"]
    }
  }
}

Tools

The server exposes 9 tools that AI clients can call:

list_components

List all registry items. Filter by type (ui, block, hook, lib) and/or category (buttons, inputs, overlay, navigation, etc.).

get_component

Get full details for a component: description, category, dependencies, exports, file paths, and install command.

get_component_source

Get the raw TypeScript/TSX source code of any component in the registry.

search_components

Search by keyword across names, descriptions, categories, and types. Results sorted by relevance.

get_dependency_tree

Recursively resolve all internal (@airy/*) and npm dependencies for a component.

get_guidelines

Get design system guideline docs: code-patterns, visual-design, copy, local-development, or rules.

get_theme_tokens

Get CSS token files: airy (semantic tokens), primitives (base tokens), fonts, or all.

start_project

Scaffold a new Next.js web app with Airy. Returns step-by-step instructions, starter components, theme config, and AI rules.

get_setup_instructions

Add Airy to an existing project. Returns the components.json registry config, theme install commands, and CSS import setup.

Resources

3 read-only resources are available for passive context:

Full Registryregistry://all

The complete registry.json with all components, blocks, hooks, and theme files.

Categoriesregistry://categories

All component and block categories with their slugs and descriptions.

Rulesdocs://rules

The AIRY_RULES.md content for AI agent behavior.

Example prompts

Once connected, ask naturally. The AI picks the right tool automatically:

You askTool called
What components does Airy have for forms?list_components
Show me the source code for the sidebarget_component_source
What do I need to install for docs-shell?get_dependency_tree
What are the Airy color tokens?get_theme_tokens
How should I compose Airy components?get_guidelines
Find me a chart componentsearch_components
Start a new project called my-dashboardstart_project
Add Airy to my existing Next.js appget_setup_instructions