AniUI

MCP Server

Give your AI assistant direct access to AniUI components, theme tokens, and usage patterns.

The AniUI MCP (Model Context Protocol) server lets AI tools like Cursor, Claude Desktop, and Windsurf read real component source code on demand. Instead of guessing APIs, the AI pulls actual implementations and generates accurate code.

What your AI gets access to:

  • 48 component source files — real code, not summaries
  • Theme tokens — CSS variables and Tailwind mappings
  • Usage info — imports, variants, and props for each component
  • Component pattern — how to build new AniUI-style components

Setup for Cursor

Create a .cursor/mcp.json file in your project root:

.cursor/mcp.json
{
  "mcpServers": {
    "aniui": {
      "command": "npx",
      "args": ["-y", "@aniui/mcp"]
    }
  }
}

Restart Cursor. The MCP tools will be available automatically in Cursor Chat.

Setup for Claude Desktop

Open your Claude Desktop config file:

  • Mac: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Add the AniUI server:

claude_desktop_config.json
{
  "mcpServers": {
    "aniui": {
      "command": "npx",
      "args": ["-y", "@aniui/mcp"]
    }
  }
}

Restart Claude Desktop. You'll see a hammer icon — click it to verify the AniUI tools are listed.

Setup for Other Clients

For Windsurf or any other MCP-compatible client, add the same config to their MCP settings:

"command": "npx",
"args": ["-y", "@aniui/mcp"]

Available Tools

ToolDescription
list_componentsList all 48 components with names, descriptions, and tiers
get_componentGet the full source code of any component
get_component_usageGet import path, variants, props, and dependencies
get_theme_tokensGet all theme CSS variables and Tailwind class mappings

Available Resources

ResourceURIReturns
Registryaniui://registryFull component registry as JSON
Themeaniui://themeglobal.css with all theme variables
Patternaniui://patternComponent authoring template and rules

Example

When you ask your AI "Build me a settings page using AniUI", here's what happens behind the scenes:

  1. AI calls list_components to find relevant components (switch, card, separator)
  2. AI calls get_component for each — gets real source code
  3. AI calls get_theme_tokens — gets theme variables
  4. AI generates a screen using the actual component APIs — correct imports, props, and variants

No hallucinated props. No wrong imports. Just working code.