Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.leanmcp.com/llms.txt

Use this file to discover all available pages before exploring further.

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

Authentication

Set up your API key and login

Project Management

Create and manage MCP projects