Skip to main content

Welcome to LeanMCP

LeanMCP is the fastest way to build, deploy, and maintain production-ready, enterprise-grade MCP servers. It comes with an SDK so you can build MCP servers fast, and a deployment platform so you can ship them globally without getting stuck on infra and protocol gotchas. Most teams spend weeks debugging these issues. LeanMCP solves them out of the box.

Production-Grade MCP Infrastructure

Deploy MCP servers that are scalable at the edge for all your users across all regions. We support every MCP protocol and work seamlessly with all major MCP clients. We handle the hard parts:
  • Auto-scaling - Automatically scales based on demand, no configuration needed
  • Fault-tolerant - Automatic failover, your MCPs stay online even when things go wrong
  • No CPU hogging - Long-running tools run in isolation, never blocking other requests
  • Low latency - Edge deployment across 30+ regions means fast responses globally
  • Multi-client support - Works with Claude, Cursor, Windsurf, and any MCP-compatible client

Full MCP Protocol Support

Unlike partial implementations, LeanMCP supports the complete MCP specification:
  • Authentication - Built-in auth flows for secure tool access
  • Elicitation - Interactive prompts for user input during tool execution
  • MCP Apps - Full application lifecycle support
  • All transports - HTTP, SSE, and WebSocket support out of the box
  • Sampling - Let your MCP request LLM completions from the client

How It Works

LeanMCP provides two main components:
  1. Open Source SDK - Build your MCP servers with TypeScript decorators
  2. Managed Platform - Deploy directly to our edge infrastructure
import { MCPServer, createHTTPServer, Tool, Service } from "@leanmcp/core";

@Service()
class WeatherService {
  @Tool("Get weather for a city")
  async getWeather(city: string) {
    return { temperature: 72, condition: "sunny" };
  }
}

const server = new MCPServer({ name: "my-mcp", version: "1.0.0" });
await createHTTPServer(() => server.getServer(), { port: 3001 });

Documentation Roadmap

If you’re new here, follow the docs in this order:

Get Started with the CLI

The fastest way to start is with our CLI:
# Install the CLI
npm install -g @leanmcp/cli

# Login to your account
leanmcp login

# Create a new project
leanmcp init my-mcp-server

# Deploy to production
leanmcp deploy

Install CLI

Set up the LeanMCP CLI

Quick Start

Build your first MCP in 5 minutes
Join our community! Get help, share your projects, and connect with other builders on Discord.

Learn More

SDK Reference

Build MCPs with TypeScript decorators

Core Concepts

Tools, Resources, and Prompts

Deployment

Deployment Overview

Learn about deployment options

LeanMCP Platform

Deploy to our managed edge infrastructure

Vercel

Deploy as serverless functions

Cloud Providers

AWS, GCP, Azure deployment guides

Best Practices

Reducing Tokens

Optimize token usage in your MCPs

API to MCP

Convert existing APIs to MCPs

Auth & Payment

Implement authentication and billing

Security

Security best practices

Advanced Features

Authentication

Secure your MCPs with built-in auth flows

MCP Apps (UI)

Build interactive UIs in chat interfaces

ChatGPT Apps

Deploy MCPs as ChatGPT plugins

Cross-Platform

Deploy anywhere - Vercel, AWS, GCP, Azure

API Reference

API Documentation

HTTP API for programmatic access
If you need enterprise features like SLA, support, SSO, or custom auth integrations, email us at founders@leanmcp.com.