MCP API Reference

Complete reference for all available MCP tools and their usage

Available Tool Categories

Comprehensive MCP tools for every aspect of UI development with Aki UI

3 tools

Component Discovery

Discover and explore Aki UI components with powerful search and detailed information retrieval tools.

2 tools

Code Generation

Generate complete React components and project structures with Aki UI integration and best practices.

3 tools

Documentation

Access comprehensive documentation, examples, and best practices for effective Aki UI usage.

3 tools

Theme Management

Create, customize, and apply themes to achieve perfect visual consistency across your applications.

2 tools

Optimization

Analyze and optimize your components for performance, accessibility, and maintainability.

Interactive API Explorer

Select a category below to explore available tools and their detailed documentation.

Component Discovery

Discover and explore Aki UI components with powerful search and detailed information retrieval tools.

search_components

search_components
MCP Tool

Search for Aki UI components by name, category, or description

Parameters

queryrequiredstring

Search query (component name, category, or keywords)

categoryoptionalstring

Filter by component category (Layout, Data Entry, Data Display, Feedback, Navigation, Interactive)

Returns

Array of matching components with basic information

Example Usage

json
// Search for form-related components
{
  "query": "form input",
  "category": "Data Entry"
}

get_component_details

get_component_details
MCP Tool

Get detailed information about a specific component

Parameters

namerequiredstring

Component name (e.g., Button, Card, Input)

Returns

Detailed component information including props, examples, and accessibility guidelines

Example Usage

json
// Get details about the Button component
{
  "name": "Button"
}

list_all_components

list_all_components
MCP Tool

List all available Aki UI components with brief descriptions

Parameters

No parameters required

Returns

Complete list of all available components with basic information

Example Usage

json
// Get all components
{}

Error Handling

All MCP tools return structured responses. In case of errors, you'll receive an error response with detailed information about what went wrong.

Common Error Types

Invalid Parameters

Missing or incorrect parameter types

Component Not Found

Requested component doesn't exist

Generation Error

Issues during code generation

Theme Error

Invalid theme configuration

Example Error Response

json
{
  "content": [
    {
      "type": "text",
      "text": "Error executing tool search_components: Component category 'invalid' not found"
    }
  ],
  "isError": true
}

Getting Started

First Steps

1

Install and configure the MCP server

2

Test the connection with list_all_components

3

Search for components with search_components

4

Generate your first component with generate_component

Best Practices

Always validate parameters before making tool calls

Use specific queries for better search results

Check component details before generating code

Apply themes after generating components