21st.Dev Magic MCP Server

Create crafted UI components inspired by the best 21st.dev design engineers.

Local serverstdio

What is the 21st.Dev Magic MCP Server?

21st.dev magic mcp server connects 21st.Dev Magic to AI assistants that speak the Model Context Protocol. Create crafted UI components inspired by the best 21st.dev design engineers.

What 21st.Dev Magic does

npx -y @21st-dev/magic@latest API_KEY="..." still works: since v0.2.0 it is a small stdio proxy that forwards every MCP message to the 21st MCP server. Existing mcp.json entries that reference @21st-dev/magic keep functioning — but they now speak to the same server as the 21st CLI, with the full current toolset.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
logo_searchsearch_logo (one query per call)

How to install the 21st.Dev Magic MCP Server

{
  "mcpServers": {
    "magic": {
      "command": "npx",
      "args": ["-y", "@21st-dev/cli"],
      "env": {
        "YOUR_21ST_API_KEY": "your-value",
        "TWENTY_FIRST_API_KEY": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
TWENTY_FIRST_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • “Use 21st.Dev Magic to logo search.”

Frequently asked questions

Create crafted UI components inspired by the best 21st.dev design engineers. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.