> ## Documentation Index
> Fetch the complete documentation index at: https://help.21st.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Editor & MCP setup

> Wire the 21st MCP into your editor and install the 21st skills.

## Configure MCP

```bash theme={null}
21st init --client cursor           # print the MCP config
21st init --client cursor --write   # write it into your editor config
```

`init` sets up the [21st MCP](https://help.21st.dev/ai/mcp.md) server so your editor and AI agent can
search and pull code directly. Generation and iteration tools are listed only
when AI is enabled for your account. After enabling AI, refresh the client's
tool list or reconnect the MCP server.

Supported clients:

| Client | `--write` target |
| - | - |
| `cursor` | `.cursor/mcp.json` |
| `vscode` | `.vscode/mcp.json` |
| `devin` | `.devin/mcp_config.local.json` (Devin Desktop, formerly Windsurf; `windsurf` still works) |
| `claude` | `.mcp.json` |
| `codex` | print-only TOML for `~/.codex/config.toml` |

Without `--write`, the config is printed so you can paste it yourself. With `--write` it merges into your existing config file.

## Install the skills

```bash theme={null}
21st skills install
```

Installs verified project-local skills for Claude Code, Cursor, and Codex. Add
`--global` for installation under your home directory:

```bash theme={null}
21st skills install --global
21st skills check --global
```

* `21st-cli-use` — how to drive the CLI
* `21st-ai` — generating and iterating UI
* `21st-registry` — publishing and installing
* `21st-design-sync` — keeping a design system in sync
* `21st-ui-build` — building against the project's real design system
* `21st-ui-explore` — comparing meaningful design directions
* `21st-ui-review` — deterministic review and safe fixes

The lockfile records hashes, versions, ownership, and licenses. Update and
remove refuse to overwrite local modifications unless you explicitly pass
`--force`. The old `21st install-skill` command remains an alias for global
installation.

> [!NOTE]
>
> The CLI and MCP share one endpoint and one login, so once you've run `21st
>     login`, both surfaces are authenticated with the same account.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.