lean-lsp-mcp MCP Server

1. Install uv, a Python package manager. 2. Make sure your Lean project builds quickly by running lake build manually. 3. Configure your IDE/Setup 4. (Optional, highly recommended) Install ripgrep…

Local serverstdio

What is the lean-lsp-mcp Server?

lean-lsp-mcp is an MCP project maintained in the ooo0ooo/lean-lsp-mcp repository. The maintainer describes its purpose as “1. Install uv, a Python package manager. 2. Make sure your Lean project builds quickly by running lake build manually. 3. Configure your IDE/Setup 4…”. Read the project documentation for the complete scope.

Installation

The documented pypi package is lean-lsp-mcp. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
LEAN_MCP_DISABLED_TOOLSComma-separated tool names (for example lean_run_code,lean_build).
LEAN_MCP_INSTRUCTIONSReplacement server instructions string.
LEAN_MCP_TOOL_DESCRIPTIONSJSON object to override tool descriptions.

How to install the lean-lsp-mcp Server

{
  "mcpServers": {
    "lean-lsp": {
      "command": "uvx",
      "args": [
        "lean-lsp-mcp"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.