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
Join our community! Get help, share your projects, and connect with other builders on Discord.

Learn More

Deployment

Best Practices

Advanced Features

API Reference

If you need enterprise features like SLA, support, SSO, or custom auth integrations, email us at [email protected].