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:- Open Source SDK - Build your MCP servers with TypeScript decorators
- Managed Platform - Deploy directly to our edge infrastructure
Documentation Roadmap
If you’re new here, follow the docs in this order:-
Getting started (CLI + SDK)
- Start with the Quickstart
- Install and use the CLI: CLI Installation
- Then jump into the SDK overview: SDK Introduction
-
Ready to deploy
- Read the deployment overview: Deployment Introduction
- Deploy on the managed platform: LeanMCP Platform
- Or deploy on your own infra: Cloud Providers
-
Auth + additional features
- Authentication and billing: Auth & Payment
- UI + apps in chat: Prompts
- Where to use MCPs (clients + platforms): Where to use MCPs
-
Debugging
- Test and debug your server: Debugging MCP Servers
Get Started with the CLI
The fastest way to start is with our CLI:Join our community! Get help, share your projects, and connect with other builders on Discord.
Learn More
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