
Lets your agent search 21st.dev's library of React and Tailwind components, add their code to your project, and draft new UI with 21st AI.
by 21st· DesignUnclaimed · Yours? Claim it
About
21st.dev's own MCP server, formerly called Magic MCP. It connects your agent to 21st.dev's community library of React and Tailwind (shadcn-compatible) components, themes and templates, so it can find a piece that fits, fetch its code and write it into your project instead of building UI from scratch. With 21st AI turned on, it can also draft new UI from a prompt. What you can do with it - Search the library for components, themes and templates in plain words, such as "pricing table" or "animated hero" - Fetch a component's full code and add it to your project - Find UI inspiration, and brand logos as ready-to-paste JSX or TSX - Keep bookmarks and bookmark lists, and work with your team's library - Draft UI variants from a prompt with 21st AI - Check your usage and whether 21st AI is on for your account How it connects 21st.dev hosts it at https://21st.dev/api/mcp (streamable HTTP). Most agents send a free 21st.dev API key in the x-api-key header (Authorization: Bearer works too); make one at 21st.dev/settings/api-keys. Claude Desktop and Lovable sign in with OAuth instead, with no key to paste. Keys from the old Magic console were reset, so make a fresh one. Plans - Free: search is unlimited, and you can retrieve component code twice a day across the web, MCP and the CLI - Builder, from $6 a month billed yearly: unlimited installs over MCP and the CLI - Builder + AI, from $15 a month billed yearly: adds AI credits for 21st AI Good to know The tools your agent sees depend on your account: the generate tools only appear when 21st AI is enabled. Configs that still use the @21st-dev/magic package keep working, because it now forwards every call to this server. 21st.dev also offers a CLI (npx @21st-dev/cli) and a Claude Code plugin that bundle this server with its UI skills.
Plugins people install alongside 21st MCP.
4 images
Once it’s added
“Add a pricing table with a monthly/yearly toggle from 21st.”
“Find me a few options for an animated hero section.”
“Add a testimonials block to the landing page from 21st.”
“Show me some UI inspiration for a dashboard sidebar.”
“Get the Stripe logo as a React component.”
“Sketch three pricing tables with 21st AI.”
Before you add it
Reads only
Searches 21st.dev's components, themes and templates · Fetches a component's code and details · Finds UI inspiration and brand logos · Your usage and whether 21st AI is on
Makes changes · your agent can ask first
Saves bookmarks and bookmark lists · Drafts new UI with 21st AI, spending AI credits · Edits or deletes components, themes and templates you've published
From people who use it
Step by step
Nothing new reaches your agent until a person has looked at it.
Scanned on every change, and again when our rules improve.
A hosted server: nothing runs on your machine.
A hosted server: nothing runs on your machine.
A hosted server: nothing runs on your machine.
A hosted server: nothing runs on your machine.
A hosted server: nothing runs on your machine.
A hosted server: nothing runs on your machine.
Add to VS Codecopilot mcp add --transport http --header 'x-api-key: <x-api-key>' 21st-mcp https://21st.dev/api/mcp
A hosted server: nothing runs on your machine.
Add to Cursor.cursor/mcp.json{
"mcpServers": {
"21st-mcp": {
"url": "https://21st.dev/api/mcp",
"headers": {
"x-api-key": "<x-api-key>"
}
}
}
}A hosted server: nothing runs on your machine.
claude mcp add --transport http --header 'x-api-key: <x-api-key>' 21st-mcp https://21st.dev/api/mcp
A hosted server: nothing runs on your machine.
codex mcp add 21st-mcp --url https://21st.dev/api/mcp
A hosted server: nothing runs on your machine.
~/.gemini/config/mcp_config.json{
"mcpServers": {
"21st-mcp": {
"url": "https://21st.dev/api/mcp",
"headers": {
"x-api-key": "<x-api-key>"
}
}
}
}A hosted server: nothing runs on your machine.
gemini mcp add --transport http --header 'x-api-key: <x-api-key>' 21st-mcp https://21st.dev/api/mcp
A hosted server: nothing runs on your machine.
A hosted server: nothing runs on your machine.
openclaw mcp add 21st-mcp --url https://21st.dev/api/mcp --transport streamable-http
A hosted server: nothing runs on your machine.
opencode mcp add 21st-mcp --url https://21st.dev/api/mcp
A hosted server: nothing runs on your machine.
hermes mcp add 21st-mcp --url https://21st.dev/api/mcp
~/.hermes/config.yaml{
"mcp_servers": {
"21st-mcp": {
"url": "https://21st.dev/api/mcp",
"headers": {
"x-api-key": "<x-api-key>"
}
}
}
}x-api-keyRequiredSecretYour 21st.dev API key from https://21st.dev/settings/api-keys. Authentication is required for discovery and tool calls. Generation tools are listed only when the account has hosted AI access.Replace each <NAME> placeholder with your own value.
Scanned and passed · checked 4 h ago
No reviews yet. Used 21st MCP? Say how it went.
Write a reviewPlugins people install alongside 21st MCP.
Connects your coding agent to OpenDesign on your machine: start design runs, create projects and read the live files of your prototypes.
Reviews your frontend code and live pages against the Front-End Checklist rules for accessibility, performance, SEO and security.
Your agent draws editorial diagrams in your brand, as one self-contained HTML and SVG file, and redraws Mermaid, draw.io and Excalidraw.
Gives your agent a live tldraw canvas in the chat, so it can draw diagrams, flows and sketches with you.
Nobody has shared how they use 21st MCP yet.
Security scan
Passed
Safe to install in every agent it supports. Runs remotely on 21st.dev · needs your sign-in.