Cli
What is Cli
cli is a command-line interface tool that integrates MagicMCP configuration into various AI IDEs, enhancing their functionality.
Use cases
Use cases for cli include setting up AI IDEs with MagicMCP configurations, automating the installation process for developers, and enhancing the development workflow in AI-related projects.
How to use
To use cli, run the command ‘npx @21st-dev/cli@latest install
Key features
Key features of cli include support for multiple IDEs such as Cursor, Windsurf, and Cline, easy installation via npx, and the ability to configure MCP servers through JSON.
Where to use
cli can be used in software development environments, particularly in projects that involve AI development and integration with IDEs.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Cli
cli is a command-line interface tool that integrates MagicMCP configuration into various AI IDEs, enhancing their functionality.
Use cases
Use cases for cli include setting up AI IDEs with MagicMCP configurations, automating the installation process for developers, and enhancing the development workflow in AI-related projects.
How to use
To use cli, run the command ‘npx @21st-dev/cli@latest install
Key features
Key features of cli include support for multiple IDEs such as Cursor, Windsurf, and Cline, easy installation via npx, and the ability to configure MCP servers through JSON.
Where to use
cli can be used in software development environments, particularly in projects that involve AI development and integration with IDEs.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
@21st-dev/cli
Adds MagicMCP configuration to AI IDEs (Cursor, Windsurf, Cline, etc.)
Usage
npx @21st-dev/cli@latest install <client> --api-key <key>
You can obtain your API key at 21st.dev Magic Console
Supported IDEs: cursor, windsurf, cline, claude, witsy, enconvo
Manual Installation
Add to your IDE’s MCP config:
{
"mcpServers": {
"@21st-dev/magic": {
"command": "npx",
"args": [
"-y",
"@21st-dev/magic@latest",
"API_KEY=\"your-api-key\""
]
}
}
}
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










