M

Magic (21st.dev UI Generator)

Bridges to 21st.dev's Magic API for generating UI components from descriptions, fetching existing components for inspiration, and searching for company logos in

Magic·No reviews yet
Repo Docs
Share:

About

Bridges to 21st.dev's Magic API for generating UI components from descriptions, fetching existing components for inspiration, and searching for company logos in various formats.

Example tools

Illustrative tool names — the actual tool set is defined by the server at runtime.

list_resources
Enumerate resources exposed by this MCP
get_resource
Fetch a resource by ID
invoke
Invoke the primary action of this MCP

Screenshots

No screenshots yet.

Frequently Asked Questions

Common questions about Magic (21st.dev UI Generator).

What is the Magic MCP's primary function?
The Magic MCP integrates with the 21st.dev Magic API. Its core purpose is to generate UI components from descriptive text and to fetch existing components for design inspiration.
How do I install the Magic MCP in a client such as Claude Desktop?
The installation process depends on the specific MCP client being used. Generally, you would add the repository URL, https://github.com/oyasimi1209/magic-mcp, to your client's MCP configuration settings. Refer to your MCP client's documentation for detailed installation instructions.
Does the Magic MCP require an API key or other credentials for authentication?
No, the Magic MCP uses 'none' for its authentication type. This means it does not require an API key, OAuth, or other credentials for operation.
What are the main capabilities offered by the Magic MCP?
This MCP enables generation of UI components based on descriptions, retrieval of existing UI components, and searching for company logos in various formats. It acts as a bridge to the functionalities of the 21st.dev Magic API.
What are the cost and licensing implications for using the Magic MCP?
The Magic MCP itself is open source, as indicated by its GitHub repository. However, the cost and licensing for the underlying 21st.dev Magic API, which this MCP integrates with, depend on the service provider.
What is a prerequisite for using the Magic MCP effectively?
A key prerequisite for effective use is a clear understanding of the 21st.dev Magic API's capabilities and expected input formats. The quality of generated UI components relies heavily on the specificity of the provided descriptions.

Install Magic (21st.dev UI Generator)

Claude Desktop

Add this to claude_desktop_config.json.

{
  "mcpServers": {
    "magic-21st-dev-ui-generator": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-magic-21st-dev-ui-generator"
      ]
    }
  }
}

Cursor

Add this to ~/.cursor/mcp.json.

{
  "mcpServers": {
    "magic-21st-dev-ui-generator": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-magic-21st-dev-ui-generator"
      ]
    }
  }
}

VS Code

Add this to your workspace settings.json.

{
  "mcp.servers": {
    "magic-21st-dev-ui-generator": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-magic-21st-dev-ui-generator"
      ]
    }
  }
}

Reviews

Sign in to leave a review.

No reviews yet. Be the first!

Discussion(0)

Sign in to join the discussion.

No comments yet.