Endpoint
- URL:
https://21st.dev/api/mcp(HTTP, JSON-RPC 2.0) - Auth: header
x-api-keywith a 21st API key from 21st.dev/settings/api-keys
Set it up
The fastest way is the CLI:cursor, claude, codex, vscode, windsurf. This merges a 21st server into your client config without touching other MCP servers you already have.
- Cursor / VS Code / Windsurf
- Claude
- Codex
Writes
.cursor/mcp.json:API_KEY_21ST in your environment to the key from your settings.
What the tools do
Search & browse (free)search— find components, themes, and templates with filterssearch_logo— find brand and UI SVG logos by name (returns the SVG urls)get_component/get_theme— fetch code / CSS
generate— start a sketch or code generationget_generation— list a generation’s drafts (free)iterate_generation— refine a draftget_take— fetch a draft’s code + copy-prompt (free)
list_bookmarks,bookmark,create_bookmark_list,add_to_listlist_teams,list_team_libraries,list_team_components
edit_component/delete_component,edit_theme/delete_theme,edit_template/delete_templateget_profile/edit_profile/upload_profile_media
get_usage— tier and remaining free quota
Search and metadata tools are free. Generation, iteration, and code retrieval
draw from your credits.