MCP Server
AI IntegrationConnect 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 (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 Settings → Connectors → Add custom connector and paste:
https://airy.lev.com/api/mcpClaude 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 buildThen 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_componentsList all registry items. Filter by type (ui, block, hook, lib) and/or category (buttons, inputs, overlay, navigation, etc.).
get_componentGet full details for a component: description, category, dependencies, exports, file paths, and install command.
get_component_sourceGet the raw TypeScript/TSX source code of any component in the registry.
search_componentsSearch by keyword across names, descriptions, categories, and types. Results sorted by relevance.
get_dependency_treeRecursively resolve all internal (@airy/*) and npm dependencies for a component.
get_guidelinesGet design system guideline docs: code-patterns, visual-design, copy, local-development, or rules.
get_theme_tokensGet CSS token files: airy (semantic tokens), primitives (base tokens), fonts, or all.
start_projectScaffold a new Next.js web app with Airy. Returns step-by-step instructions, starter components, theme config, and AI rules.
get_setup_instructionsAdd 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:
registry://allThe complete registry.json with all components, blocks, hooks, and theme files.
registry://categoriesAll component and block categories with their slugs and descriptions.
docs://rulesThe AIRY_RULES.md content for AI agent behavior.
Example prompts
Once connected, ask naturally. The AI picks the right tool automatically:
| You ask | Tool called |
|---|---|
| What components does Airy have for forms? | list_components |
| Show me the source code for the sidebar | get_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 component | search_components |
| Start a new project called my-dashboard | start_project |
| Add Airy to my existing Next.js app | get_setup_instructions |