Overview
Features
Rich Lean Interaction
Access diagnostics, goal states, term information, hover documentation and more for Lean projects.
External Search Tools Integration
Leverages LeanSearch, Loogle, Lean Finder, Lean Hammer and Lean State Search to locate theorems and definitions.
Local Search Tools
Supports lean_local_search (requires ripgrep) to search within the local Lean project.
File & Code Introspection Tools
Provides file outline, diagnostics, declaration contents, completions, run_code and multi_attempt for Lean code.
Project Build & Tooling
Includes lean_build to rebuild the Lean project and restart the Lean LSP server.
Transport & Authentication
Supports stdio, streamable-http and sse transports; optional bearer token authentication.
Out-of-the-box Config & Env
Works with default config and provides environment variables examples with cross-editor setup.
Who Is This For?
- LLM Agents:Interacting with Lean projects through MCP-enabled LSP for reasoning and exploration.
- Lean Developers:Using MCP to inspect diagnostics, goals, hover info, and definitions during development.
- Editor Integrators:Configure editors (VSCode, Cursor, Claude Code) to access Lean tooling via MCP.
- Researchers:Experiment with agentic theorem proving and AI-assisted Lean analysis workflows.
- AI/ML Engineers:Prototype agents that query Lean, retrieve diagnostics, and locate relevant theorems.




