Skip to content
Gemini CLI

lean 4 mcp for Gemini CLI

io.github.mrfentmen/lean-4-mcp

Lean 4 MCP: 20 real tools to read, check, lint, scaffold, build and run Lean 4 code.

client:Gemini CLI transport:stdio runtime:npm

Install lean 4 mcp in Gemini CLI

~/.gemini/settings.json · windows: %USERPROFILE%\.gemini\settings.json

{
  "mcpServers": {
    "lean-4-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@mrfentmen/lean-4-mcp"
      ]
    }
  }
}

Gemini expands $VAR and ${VAR} inside env values, so a secret can live in your shell rather than this file. Gemini CLI docs

lean 4 mcp in other clients