> ## 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.

# Deploy on LeanMCP Platform

> The easiest way to build, deploy, and monitor MCPs

LeanMCP Platform is built specifically for MCPs. It's the easiest way to deploy, monitor, and update your MCP servers in production.

You get:

* **Zero-config deployment** — no DevOps, no infrastructure setup
* **Built-in monitoring** — see tool calls, errors, latency in real-time
* **Observability** — logs, traces, and metrics out of the box
* **Auth integration** — connect Clerk, Auth0, or other providers directly on the platform
* **GitHub CI/CD** — push to GitHub, automatically deploy to production

***

## Option 1: GitHub Integration (Recommended)

Connect your GitHub repository and deploy automatically on every push.

### Step 1: Create a Project

Go to [leanmcp.com](https://leanmcp.com) and create a new project.

### Step 2: Connect GitHub

Link your GitHub repository to the project. LeanMCP will automatically detect your `leanmcp.config.js` or `package.json`.

### Step 3: Push and Deploy

Every push to your main branch triggers a deployment:

```bash theme={null}
git add .
git commit -m "Update MCP tools"
git push origin main
```

Your MCP is live within minutes at `https://your-project.leanmcp.link`.

***

## Option 2: LeanMCP CLI

Deploy directly from your terminal using the LeanMCP CLI.

### Step 1: Install and Login

```bash theme={null}
npm install -g @leanmcp/cli
leanmcp login
```

### Step 2: Create a Project

```bash theme={null}
leanmcp create my-mcp-server --install
cd my-mcp-server
```

### Step 3: Deploy

```bash theme={null}
leanmcp deploy .
```

That's it. Your MCP is live.

### Full CLI Workflow

```bash theme={null}
# Install CLI
npm install -g @leanmcp/cli

# Authenticate
leanmcp login

# Create new project with dependencies
leanmcp create my-mcp-server --install
cd my-mcp-server

# Test locally
leanmcp dev

# Deploy to production
leanmcp deploy .

# List your projects
leanmcp projects list

# Get project details
leanmcp projects get <project-id>
```

***

## Monitoring and Observability

Once deployed, the LeanMCP dashboard shows you:

* **Tool call analytics** — which tools are called, how often, success rates
* **Error tracking** — see errors with full stack traces
* **Latency metrics** — p50, p95, p99 response times
* **Real-time logs** — stream logs from your production MCP

No additional setup required. It's all built-in.

***

## Auth on the Platform

If your MCP needs authentication, you can configure it directly on LeanMCP Platform:

1. Go to your project settings
2. Select your auth provider (Clerk, Auth0, Cognito, etc.)
3. Add your credentials
4. Enable auth for your MCP

Your tools automatically receive the authenticated user context. No code changes needed.

***

## Why LeanMCP Platform?

| Feature        | LeanMCP Platform | DIY Deployment          |
| -------------- | ---------------- | ----------------------- |
| **Setup time** | Minutes          | Hours to days           |
| **Monitoring** | Built-in         | Configure yourself      |
| **Auth**       | One-click setup  | 600+ lines of code      |
| **Scaling**    | Automatic        | Manual configuration    |
| **Cost**       | Pay per use      | Infrastructure + DevOps |

<CardGroup cols={2}>
  <Card title="Dashboard" icon="chart-line" href="https://leanmcp.com">
    Go to LeanMCP Platform
  </Card>

  <Card title="CLI Reference" icon="terminal" href="/cli/installation">
    CLI documentation
  </Card>
</CardGroup>
