Skip to main content

Installing LeanMCP CLI

Get the LeanMCP CLI tool to manage your MCP projects from the command line. Install globally via npm:
npm install -g @leanmcp/cli

Verify Installation

leanmcp --version
Example Output:
1.0.7

First Setup

After installation, authenticate with your API key:
leanmcp login
The CLI will prompt you to enter your API key:
LeanMCP Login

? Enter your LeanMCP API key: airtrain_xxxx...

Validating API key...
API key validated successfully!
Logged in successfully!
Get your API key from the LeanMCP Dashboard → Settings → API Keys

Quick Start

After installation and login, create your first MCP server:
# Create a new project with auto-install
leanmcp create my-mcp-server --install

# Start the development server
cd my-mcp-server
leanmcp dev

Next Steps