lean-lsp-mcp
About this tool
An MCP server based on Lean's language server protocol, with 22 tools for Lean 4. Read diagnostics, proof and term goals, and hover documentation; try tactics, run snippets and check theorem axioms. Search services include LeanSearch, Loogle, Lean Finder and Lean Hammer. Useful for agent-assisted proof writing and repair in Claude Code, Cursor or VS Code.
- Feature 1: Read diagnostics, proof goals, term goals and hover documentation.
- Feature 2: lean_multi_attempt tries multiple tactics at one location.
- Feature 3: lean_verify checks axiom use and scans for unreliable patterns.
- Feature 4: Search theorems and premises through LeanSearch, Loogle, Lean Finder and Lean Hammer.
- Feature 5: lean_build builds projects and restarts the LSP.
Resource information
- Maintainer
- Independent developer Oliver Dressler (oOo0oOo on GitHub).
- Type
- MCP
- Category
- Discipline-specific tools
- Runs on
- MCP
- Who it's for
- Formal-mathematics, theorem-proving and verification researchers and students writing Mathlib-style proofs, fixing compilation errors and finding lemmas.
- License at time of listing
- MIT
- Source
- GitHub
