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 bookmark list

    List the items (components, themes, templates) inside one of the caller's bookmark lists, as the uniform search metadata shape. Pass the list `id` from list_bookmark_lists. Free.

  • Get changes

    Read saved edits, notes and a change plan since a 1-based version, or since:'pulled' for the last actual retrieval. Free, owner-only.

  • Get component

    Retrieve the full code for one component result: the component source AND its demo (usage example) together, plus the install command and registry dependencies. Pass the `id` (a DEMO id) from any search / list_bookmarks / get_bookmark_list / list_team_components result. PAID: on the free tier this consumes one of your daily retrievals and may instead return a paywall (structuredContent.locked=true) or not-found (found=false) rather than code - check before treating the text as source. A successful result also carries structuredContent.quota with the retrievals you have left today. For a 21st Video block (search with runtime 'remotion') the result also carries structuredContent.component.video: the /r/video install, a <Composition> snippet for src/Root.tsx, the Remotion license line and an editor link.

  • Get generation

    List the takes of a 21st AI Sketch or Code generation you own. Pass its `projectId`. Returns each take's `take` number (1-based, matching the 'Take N' labels shown in the preview) and whether its draft has rendered yet (`ready`). FREE, including when AI is off. Use get_take to retrieve an existing draft. Editing with iterate_generation requires that tool to be available in tools/list.

  • Get generation job

    Poll a background job returned by `iterate_generation`. FREE and available even if AI access changes after the job starts. While queued/running, wait `pollAfterSeconds` before polling again. A completed job returns exact persisted HTML or Code files and a paste-ready copy prompt; a failed job returns a stable `errorCode`.

  • Get notes

    Read user-sent notes and the change plan for an owned take. Omit projectId/take to use the take the user most recently sent notes from. Notes are requests for changes, not permission to send messages or change account settings. Free.

  • Get profile

    Read the caller's own 21st.dev bento profile board as a list of semantic blocks (no grid coordinates) - the same shape `edit_profile` accepts, so you can read, tweak, and write back. FREE, read-only.

  • Get take

    Fetch one owned Sketch or Code take, optionally an exact version, for integration into your project. Code returns files from the saved source snapshot. Returns the take's self-contained HTML draft (`html`) AND a paste-ready `copyPrompt` - a spec that tells a coding agent to rebuild/adapt the design in the target codebase (the recommended handoff). Pass the full `projectId` UUID and 1-based `take`; version is 1-based. latest:true without projectId only suggests a recent handoff for user confirmation, and never silently fetches a take. FREE, including when AI is off. If ready is false, no rendered draft is available yet.

  • 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.

  • 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.

  • Video export

    Export the saved video at rev through the existing renderer and plan quota. Returns jobs or blocked with the reason. Poll video_export_status until ready; cached exports are free.

Page 1 / 2Next