21st.dev MCP MCP server
The official 21st.dev MCP server enables AI coding agents to search a catalog of over 12,000 React components, themes, and templates. It allows users to retrieve component code, search for logos, and generate new UI elements using 21st AI, all directly within their development environment.
Endpoint and access
OAuth sign-in: the first time you connect, your client opens the vendor's own authorization prompt in a browser.
OAuth sign-inEndpoint checked 2026-10-05
MCP endpoint (Streamable HTTP)
https://21st.dev/api/mcpWhat you can do with it
- Search for React components and themes
- Retrieve component code by ID
- Generate UI from prompts using 21st AI
- Search for brand SVG logos
Connect from your client
Each snippet registers the same endpoint; pick the client you use.
Claude Code
Claude Code configuration
claude mcp add --transport http 21st-dev-mcp https://21st.dev/api/mcpCodex
Codex configuration
codex mcp add 21st-dev-mcp --url https://21st.dev/api/mcpCursor
Cursor configuration
{
"mcpServers": {
"21st-dev-mcp": {
"url": "https://21st.dev/api/mcp"
}
}
}Cline
Cline configuration
{
"mcpServers": {
"21st-dev-mcp": {
"type": "streamableHttp",
"url": "https://21st.dev/api/mcp",
"disabled": false
}
}
}VS Code
VS Code configuration
{
"servers": {
"21st-dev-mcp": {
"type": "http",
"url": "https://21st.dev/api/mcp"
}
}
}Gemini CLI
Gemini CLI configuration
gemini mcp add --transport http 21st-dev-mcp https://21st.dev/api/mcpClaude Desktop
Claude Desktop configuration
{
"mcpServers": {
"21st-dev-mcp": {
"url": "https://21st.dev/api/mcp"
}
}
}Windsurf
Windsurf configuration
{
"mcpServers": {
"21st-dev-mcp": {
"serverUrl": "https://21st.dev/api/mcp"
}
}
}Other developer tools servers
Do you run 21st.dev MCP?
Prove ownership with a DNS record, a well-known file, or your Official MCP Registry entry, and your edits publish immediately. Proofs are re-checked weekly; admins can still hide or remove a listing.