lean4-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| audit_lean_proofA | Scan a Lean 4 proof for sorry, admit, custom axioms, unsafe blocks, and @[implemented_by] overrides, and optionally run local |
| convert_lean_unicodeA | Convert Lean 4 backslash shortcuts (\forall, \to, \and, \N, <, >, ...) to Unicode symbols or back to ASCII escapes. |
| explain_lean_tacticA | Get a concise Lean 4 tactic cheat-sheet entry with before/after goal states and a minimal runnable example. |
| visualize_proof_outlineA | Parse a Lean 4 file’s theorem/lemma/def/axiom declarations and output a Mermaid flowchart TD dependency graph. |
| get_lean_practice_drillB | Fetch a structured Lean 4 practice exercise with starter code, progressive hints, and a zero-install browser playground link. |
| check_rh_2026_sourcesB | Return verified primary GitHub repositories, PDFs, and MIT multi-kernel verification logs for the 2026 Lean 4 Riemann Hypothesis proof. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 6 tools
Each tool has a clearly distinct purpose: auditing, Unicode conversion, tactic explanation, proof visualization, practice drills, and source checking. There is no meaningful overlap in action or resource, so an agent should reliably select the right tool.
Most tools follow a predictable snake_case verb_noun pattern, often with 'lean' embedded, such as audit_lean_proof and explain_lean_tactic. The main deviation is check_rh_2026_sources, which is more specific and less aligned with the rest.
Six tools is well-scoped for a specialized Lean 4 assistant, with each tool covering a distinct capability. The set is neither thin nor bloated.
The surface covers proof auditing, tactic help, visualization, conversion, and practice, but lacks broader Lean workflow operations such as general code checking, diagnostics, project/build commands, or declaration/Mathlib search. The inclusion of a very narrow Riemann Hypothesis source-checking tool also makes the coverage feel uneven.