Magic Component Platform

21st_magic_component_builder

Generate React UI component snippets like buttons, dialogs, forms, and tables using natural language. Integrate the provided code into your project after creation with the MCP server's guidance.

Instructions

"Use this tool when the user requests a new UI component—e.g., mentions /ui, /21 /21st, or asks for a button, input, dialog, table, form, banner, card, or other React component. This tool ONLY returns the text snippet for that UI component. After calling this tool, you must edit or add files to integrate the snippet into the codebase."

Input Schema

NameRequiredDescriptionDefault
messageYesFull users message
searchQueryYesGenerate a search query for 21st.dev (library for searching UI components) to find a UI component that matches the user's message. Must be a two-four words max or phrase

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "message": { "description": "Full users message", "type": "string" }, "searchQuery": { "description": "Generate a search query for 21st.dev (library for searching UI components) to find a UI component that matches the user's message. Must be a two-four words max or phrase", "type": "string" } }, "required": [ "message", "searchQuery" ], "type": "object" }

You must be authenticated.

Other Tools from Magic Component Platform

Related Tools

ID: j2bq6jrrbi