LeanMCP API Reference
Use the LeanMCP API to programmatically build, test, and deploy your MCP servers.What You Can Do
The LeanMCP API lets you:- Build MCP servers from templates
- Test MCPs with AI agents
- Deploy to production environments
- Monitor MCP performance
- Manage your MCP projects
Authentication
All API requests require an API key:Base URL
Common Patterns
Build an MCP Server
Test with AI
Deploy to Production
Response Format
All API responses follow this format:Error Handling
Errors return HTTP status codes with details:Rate Limits
- Free Plan: 100 requests/hour
- Pro Plan: 1,000 requests/hour
- Enterprise: Custom limits
SDKs
Node.js SDK
Official Node.js SDK for LeanMCP API
Python SDK
Official Python SDK for LeanMCP API
REST API
Use any HTTP client with our REST API
CLI Tool
Command line interface for development