Skip to content

Create Component

Create a UI component. The server automatically queues fresh light and dark screenshots. Existing clients may continue using the create_element alias.

TOOLcreate_component
{
  "mcpServers": {
    "frontendforever": {
      "command": "npx",
      "args": [
        "-y",
        "frontendforever-mcp"
      ],
      "env": {
        "MCP_API_KEY": "<your_api_key>"
      }
    }
  }
}

Authorization

X-API-Keystringheaderrequired

Parameters

titlerequired
string
Component title
description
string
Description (max 1000 characters)
html
string
HTML code
css
string
CSS code
js
string
JavaScript code
htmlTailwind
string
Tailwind HTML code
reactTailwind
string
React/Tailwind component code
category
string
Category slug
tags
array
Array of tag names
framework
string
Framework identifier
defaultTheme
string
light or dark
backgroundColorLight
string
Light screenshot background hex color
backgroundColorDark
string
Dark screenshot background hex color
isPrivate
boolean
Create as a private draft
Request Preview
cURL
curl --request POST \
  --url 'https://frontendforever.com/api/mcp/components' \
  --header 'X-API-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "title": "<title>"
}'

Example responses

Component saved: Animated Gradient Button
ID: <uuid>
Screenshot status: queued