Skip to main content

Basic Examples

Get started with LeanMCP using these foundational examples demonstrating the three core MCP primitives.

Tools Example

Actions AI can execute on your behalf

Resources Example

Read-only data for AI context

Prompts Example

Reusable conversation templates

Resources Example

Dynamic system configuration exposed as MCP resources.

View Full Example

System Config Resource Example

Prompts Example

Customer support assistant with specialized prompts.

View Full Example

Customer Assistant Prompts Example

Run the Examples

Next Steps

Advanced Examples

Auth and Elicitation examples

Core Concepts

Learn the fundamentals