21st.dev Community Components API
Read-only live access to recommended community components listed by 21st.dev. Filtering uses the site's public demos.list JSON endpoint; multiple tag slugs use the source's matching behavior. Results include the installation command rendered by the component detail UI.
Endpoint health
Loading verification…
Connect your agent
Connect through MCP so your agent can find this API, read its docs, and call its endpoints.
Add the server from your terminal.
claude mcp add --transport http agent-data https://agent-data.motie.dev/mcpIn Claude Code, run /mcp, select agent-data, then Authenticate. Sign in to your agent-data account in the browser.
Then ask your agent to use the 21st.dev Community Components API for your task.
Call it over HTTP
Get an API keySign up free, generate an API key, and set it as AGENT_DATA_API_KEY in your environment. Your first 100 calls each month are free.
curl --request GET --get 'https://3kpkg0jfvk.execute-api.us-east-2.amazonaws.com/prod/34959010-5ff3-410f-ac64-4e2136cbd489/v1/components' \
--header "Authorization: Bearer $AGENT_DATA_API_KEY"Endpoints
Inputs and response fields for every endpoint in this API.
GETComponents/v1/components
Lists live recommended components matching any of the supplied 21st.dev tag slugs. The limit is clamped to 1–200. Omit tag_slugs to use the input and prompt-oriented defaults from the request.
Input
limitOptionalQuery · integer, default: 50Maximum number of components to return; values are clamped to 1–200.
Example: 50
tag_slugsOptionalQuery · string | nullComma-separated 21st.dev tag slugs. Blank values are ignored.
Example: input,search-bar,search-input,prompt,prompt-input,ai-chat-input,chat-input
Response
has_morebooleantag_slugsstring[]componentsobject[]components[].authorstringcomponents[].descriptionstring | nullcomponents[].component_urlstringcomponents[].component_namestringcomponents[].install_commandstringtotal_countintegerDon’t see the endpoint you need?
Ask agent-data to add an endpoint or return more fields. Extensions are free and keep existing endpoints working.
An account is required to submit an extension. Prepare your request, then sign in to build.