Advanced Examples
Advanced LeanMCP examples demonstrating authentication and user input collection.OAuth Authentication
Protect tools with JWT authentication
Elicitation Forms
Collect user input before tool execution
OAuth Authentication
Protect your MCP tools with JWT authentication using@leanmcp/auth.
Supported Providers
Code Example
How It Works
View Full Example
OAuth Basic Example
Elicitation Forms
Collect structured user input before tool execution using@leanmcp/elicitation.
How Elicitation Works
Code Example
Field Types
Multi-Step Forms
View Full Example
Elicitation Example
Run the Examples
Next Steps
Basic Examples
Tools, Resources, Prompts
Core Concepts
Learn the fundamentals

