Get Component by Author/Slug
Get a single UI component by author username and slug (e.g. username/my-button). Existing clients may continue using the get_element_by_slug alias.
TOOLget_component_by_slug
{
"mcpServers": {
"frontendforever": {
"command": "npx",
"args": [
"-y",
"frontendforever-mcp"
],
"env": {
"MCP_API_KEY": "<your_api_key>"
}
}
}
}Authorization
X-API-Keystringheaderrequired
Parameters
authorrequired
stringThe author username
slugrequired
stringThe component slug
Request Preview
cURL
curl --request GET \
--url 'https://frontendforever.com/api/mcp/components/slug/%3Cauthor%3E/%3Cslug%3E' \
--header 'X-API-Key: <api-key>'Example responses
Animated Gradient Button
ID: <uuid> · author: johndoe · slug: animated-gradient-button
category: buttons · framework: css · theme: dark
Tags: animated, gradient
Description
A concise description of the component.
--- HTML ---
<button class="gradient-button">Continue</button>
--- CSS ---
.gradient-button { /* component styles */ }