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
stringComponent title
description
stringDescription (max 1000 characters)
html
stringHTML code
css
stringCSS code
js
stringJavaScript code
htmlTailwind
stringTailwind HTML code
reactTailwind
stringReact/Tailwind component code
category
stringCategory slug
tags
arrayArray of tag names
framework
stringFramework identifier
defaultTheme
stringlight or dark
backgroundColorLight
stringLight screenshot background hex color
backgroundColorDark
stringDark screenshot background hex color
isPrivate
booleanCreate 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