Connect 21st.dev to Google Antigravity
Community marketplace of React components, templates, shadcn themes and shaders, with a hosted MCP server for agents. Browsing is free; copying more than a few components a day needs a membership.
MCP serverOfficialChecked 2026-11-16
Before you start
- Google Antigravity installed (see its MCP documentation (opens in a new tab)).
- 21st.dev is available on macOS, Windows, Linux and the web.
- Get an API key at 21st.dev/mcp and set it as
API_KEY_21STin your environment. Keys from the old Magic console no longer work. AI generation tools only appear when your account has AI access. Each component page also shows its own shadcn CLI command.
Step 1: Add 21st.dev to Google Antigravity
Add it to the config file
Add this to
.agents/mcp_config.jsonin your project, or to~/.gemini/config/mcp_config.jsonto use it everywhere (app, editor andagyCLI)..agents/mcp_config.json { "mcpServers": { "21st-dev": { "serverUrl": "https://21st.dev/api/mcp", "headers": { "x-api-key": "YOUR_API_KEY_21ST" } } } }Good to know- Antigravity keeps header values in the file itself. Replace
YOUR_API_KEY_21STwith the token in your global config, not in a file you commit.
- Antigravity keeps header values in the file itself. Replace
Step 2: Check it's connected
In the editor, open the … menu at the top of the agent panel and choose MCP Servers. In the app, open Settings → Customizations → Installed MCP Servers. In the
agyCLI, type/mcp.Step 3: Try a first request
Ask Google Antigravity something that only works with 21st.dev connected:
Say to Google Antigravity Search 21st.dev for a pricing section that fits this page and show me how to adapt it.
If it doesn't work
- The app, the editor and the
agyCLI share~/.gemini/config/mcp_config.json. A project's.agents/mcp_config.jsonapplies only to that project. - Antigravity doesn't expand
~or environment variables in the config. Use full paths. - Click Refresh next to Installed MCP Servers after editing the file by hand.






