Developer Tools

21st MCP

Search and fetch 21st.dev React/shadcn components, themes, templates and SVG logos, manage bookmarks and team libraries, work with 21st AI takes and video projects, and edit your own published 21st items through 21st's hosted MCP server.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Get theme

    Retrieve a 21st.dev theme's full CSS (the :root / .dark tokens ready to drop into a Tailwind/shadcn app), plus its name and page url. Pass the `id` from a search result with type 'theme'. Free.

  • Get usage

    Check the caller's component retrieval tier/quota and aiGenerationEnabled. Paid component access does not imply hosted AI access. When aiGenerationEnabled is false, use search and get_component, then adapt the code with your own coding agent; do not call generate or iterate_generation. This reports AI entitlement and the remaining AI credit balance when available.

  • List bookmark lists

    List the signed-in user's personal named bookmark lists (id, name, item count). These are curated collections that can hold components, themes and templates together. Free.

  • List bookmarks

    List the signed-in user's bookmarked 21st.dev items (components, themes, templates) as metadata - the same uniform shape as `search`, and also FREE. Use `type` to scope to one kind, or 'all' (default). Call get_component with a component id to fetch its code; themes/templates link out via url.

  • List team components

    List the components in a team's library, as the uniform search metadata shape. Requires membership. Pass teamId (from list_teams); optionally libraryId (from list_team_libraries) to scope to one library. Free metadata; use get_component for code.

  • List team libraries

    List the LIBRARIES (registries / UI kits) inside one team, with component counts. A team can have several libraries. Requires membership. Pass teamId from list_teams; then list_team_components to see a library's components. Free.

  • List team lists

    List a team's SHARED bookmark lists (id, name, item count) - collections owned by the team, distinct from the team's libraries and from your personal lists (list_bookmark_lists). Requires membership. Use get_bookmark_list to see a list's items. Free.

  • List teams

    List the teams (workspaces) the signed-in user belongs to, each with how many libraries and shared lists it has. A team is a container; drill into one with list_team_libraries / list_team_lists using its teamId. Free.

  • Record inspiration feedback

    Record whether the user accepted or rejected a get_inspiration result. Send only its opaque feedbackId and result identity; never send project source, prompts, tokens, or local paths.

  • Record take outcome

    Record what happened to a 21st AI take the caller retrieved with get_take: landed (built and kept close to the draft), adapted (kept parts), or abandoned (not used; give a reason). reportedBy is agent or user. Never send code, paths, prompts or project details. Free, owner-only, for a take retrieved in the last 14 days.

  • Remove component from catalog

    Remove a Featured component from the catalog while keeping it Published on its profile and direct URL.

  • Resubmit component

    Resubmit a Published component after requested changes. It returns to In review.

  • Search

    Search the 21st.dev catalog across ALL entity types - React/shadcn components, themes, and templates - returning lightweight metadata ONLY (name, description, preview image, author, url/install, id, and price for templates). Use `type` to scope to one kind, or 'all' (default) to search everything. FREE. Retrieval differs by kind: for a component result call get_component with its `id` (that id is a demo id) for the PAID code; for a theme call get_theme with its `id` (a uuid) for the free CSS; templates have no code to fetch - open their `url`. NOTE: `author`/`mine`/`liked` bypass ranking and return a plain recency-ordered list (query/sort/tag/color are ignored when any of them is set); component listings via `mine`/`author` only ever show PUBLIC components - your own private/team components are discoverable via list_team_components, not search. Pass `runtime: 'remotion'` (optionally `kind`, `aspect`) to search 21st Video blocks, Remotion components for programmatic video; without it results are UI only. Returns plain data, no picker UI - use this for your own lookups. If the USER should see a visual list of options and pick one, use `search_picker` instead (identical params, same results, but renders an inline picker on hosts that support it).

  • Search logo

    Search brand and UI SVG logos by name (e.g. 'discord', 'nextjs', 'figma') from the open svgl.app library. FREE, no retrieval limit. Returns each match's title, category, and the SVG file url(s) - `svgUrl` (light) and, for themed logos, `darkSvgUrl`. Fetch a url to get the raw SVG markup to drop into a project. Use this when the user needs a brand/company logo or a common UI icon-mark.

  • Search picker

    Identical to `search` (same params, same result shape) but renders an inline picker UI on hosts that support it, so the user can visually browse and pick a result. Use this instead of `search` when the USER should see the options and choose one. If you're searching for your own purposes and don't need to show the user a list, use `search` instead.

  • Send feedback

    Send the user's own feedback about 21st. Call ONLY when the user explicitly asks to tell 21st something. Put the user's words in message. Never include source code, paths, secrets, or your own summary of their project. This sends voluntary product feedback, not a request for a reply. Free.

  • Submit component

    Submit a Published component for catalog review. This does not change who can access it.

  • Update note

    Set the status of note ids from get_notes: in_progress, done, or wont_do. wont_do requires a one-line summary explaining why. Free, owner-only.

  • Upload profile media

    Upload an image (base64) to the caller's own 21st.dev media storage and get back a first-party url to use as an `image` block's `mediaUrl` in edit_profile. Accepts png/jpeg/gif/webp up to 5 MB as a base64 data: url (`data:image/png;base64,...`) - NOT a remote url to fetch; download the bytes yourself and pass them as base64.

  • Video apply ops

    Edit a video through the same operations as the editor. Supply baseRev from video_get_doc. A conflict returns the fresh document and rev; re-plan, never blindly retry old ops. label describes the step in undo history. No hosted LLM is invoked. edit_video ops (each op is an object with an "op" field; seconds at the doc fps): title {value} brand {colors?: {primary,secondary,text,background}, fonts?: {heading,body,display,numerals,serif,mono,accent}, logos?: {light?: asset id|null, dark?: asset id|null}, motion?: calm|default|punchy} add_scene {block, after?: scene id|"start"|"end", seconds?, props?, transition?: none|fade|slide|wipe|zoom|diagonal-wipe, transition_seconds?} add_media_scene {asset, after?: scene id|"start"|"end", seconds?, fit?: cover|contain, transition?} a full-frame scene showing an uploaded image or clip (asset is an id from the document's media) add_layer {block, scene, offset?, seconds?, props?, region?} or {block, at, seconds?} to pin it across scenes text {target, field, value} target is a scene id or layer id set_prop {target, key, value} bind {target, key, binding: colors.primary|colors.secondary|colors.text|colors.background|fonts.heading|fonts.body|fonts.display|fonts.numerals|fonts.serif|fonts.mono|fonts.accent|null} scene_length {scene, seconds} fit_length {seconds} stretches or trims the holds of all scenes layer_timing {layer, offset?, seconds?} transition {scene, kind: none|fade|slide|wipe|zoom|diagonal-wipe, seconds?, timing?: linear|spring, direction?: right|left|top|bottom, all?: true} swap_block {target, block} region {layer, region: full|center|upper-third|lower-third|left-half|right-half|corner-tl|corner-br, size?: 16:9|9:16|1:1} hide_in_size {layer, size, hidden} move_scene {scene, to} to is the 1-based position remove {id} duplicate {id} music {track: name from the music list | null, db?} add_audio {role: voice|music, asset} put an uploaded audio file (asset id from the document's media) on the timeline asset_slot {scene, slot, asset: asset id|null} fill a media field of a scene block (e.g. a phone screen) with an uploaded image or clip audio {id, db?, fade_in?, fade_out?, duck?, fit_to_video?} split_audio {id, at_frame} export_sizes {sizes: [16:9|9:16|1:1]} video {fade_out?, background?: hex|null} captions {items?: [{text,startMs,endMs}], position?, per_page?, lines?, remove?} replace_text {find, replace} note {label} explain without changing anything

PreviousPage 2 / 3Next