# 21st MCP
> 21st MCP lets coding agents search a component library, retrieve component code, and generate UI variants.
Canonical: https://www.mcpfolio.com/servers/21st-dev
Last updated: 2026-10-28
## Catalog record

- Publisher: 21st
- Categories: search

## Website

https://21st.dev/

## Transports

Streamable HTTP

## Authentication

API key via x-api-key or Bearer; Claude Desktop and Lovable support OAuth.

## Tools

- **search**: Search the 21st component library.
- **get_component**: Retrieve component code from the 21st library.
- **generate**: Generate UI component variants from a prompt.

## Sources

- [discovery_directory](https://toolfolio.com/tools/21st-dev)
- [official_branding_page](https://21st.dev/)
- [official_documentation](https://docs.21st.dev/mcp)

## Setup

Use the interactive setup panel on [the detail page](https://www.mcpfolio.com/servers/21st-dev) to view instructions for each supported client.