lean-lsp-mcp
v0.33.0Lean Theorem Prover MCP
PyPI (uvx) verified
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add lean-lsp-mcp -- uvx lean-lsp-mcp==0.33.0Add to
claude_desktop_config.json{
"mcpServers": {
"lean-lsp-mcp": {
"args": [
"lean-lsp-mcp==0.33.0"
],
"command": "uvx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"lean-lsp-mcp": {
"args": [
"lean-lsp-mcp==0.33.0"
],
"command": "uvx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"lean-lsp-mcp": {
"args": [
"lean-lsp-mcp==0.33.0"
],
"command": "uvx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.lean-lsp-mcp]
command = "uvx"
args = ["lean-lsp-mcp==0.33.0"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: lean_build, lean_code_actions, lean_completions, lean_declaration_file, lean_diagnostic_messages, lean_file_outline, lean_get_widget_source, lean_get_widgets, ….
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json