leanmcp-sdk
by LeanMCP·★ 28·Score 44
Production-ready TypeScript SDK for building enterprise-grade MCP servers with authentication, multi-tenant support, and observability.
Overview
LeanMCP SDK is a comprehensive TypeScript framework for creating production-ready MCP servers. It provides enterprise-grade features including authentication, multi-tenant isolation, request logging, observability, and cloud deployment options. The SDK offers modular architecture with packages for core functionality, authentication, UI components, and utilities, making it suitable for building agent platforms, customer-facing workflows, and multi-tenant SaaS AI systems. The CLI tool simplifies project creation and deployment with scaffolding and management commands.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose LeanMCP when building production MCP servers that require enterprise features like authentication, multi-tenancy, and observability.
When NOT to choose this
Avoid for simple MCP servers without enterprise requirements, as it adds significant complexity compared to basic MCP implementations.
Tools this server exposes
6 tools extracted from the READMEaddasync add(input: AddInput): Promise<{ result: number }>Calculate sum of two numbers
searchDocsasync searchDocs(query: string): Promise<unknown>Search documents using a query
getUserDataasync getUserData(): Promise<unknown>Retrieve user data (requires authentication)
analyzeSentimentasync analyzeSentiment(args: AnalyzeSentimentInput): Promise<AnalyzeSentimentOutput>Analyze sentiment of text
greetingPromptgreetingPrompt(args: { name?: string }): Promise<unknown>Generate a greeting prompt template
getStatsgetStats(): Promise<{ uptime: number; requestCount: number }>Retrieve service statistics
Comparable tools
Installation
# Install CLI globally
npm install -g @leanmcp/cli
# Create a new MCP server project
npx @leanmcp/cli create my-mcp-server
cd my-mcp-server
npm install
# Run the server
npm startFor Claude Desktop, add to your config.json:
{
"mcpServers": {
"leanmcp": {
"command": "npx",
"args": ["@leanmcp/cli", "run"]
}
}
}FAQ
- How does LeanMCP handle multi-tenancy?
- LeanMCP provides multi-tenant isolation through the @leanmcp/auth package, which handles authentication and request-scoped environment injection for different tenants.
- Can I deploy LeanMCP servers to private cloud?
- Yes, LeanMCP supports private cloud deployment with enterprise-grade options. Contact founders@leanmcp.com for deployment support.
Compare leanmcp-sdk with
Last updated · Auto-generated from public README + GitHub signals.