Leanforge MCP server
Lean 4 theorem prover MCP: automated proof search, mathlib integration, job management
3 stars
Reviews
Write oneNobody has reviewed Leanforge yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Leanforge tools
No tool declarations could be read from the package source. They show once the server is installed.
Public scan report
scanner v0.1.10 · 2026-10-30 · same rubric, same numbers if you re-run it
- –Code scanpackage could not be scannedn/a
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 7 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How Leanforge compares
Against every graded Web search MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 88/100
- higher than 80% of 3,471 Web search servers
- GitHub stars
- 3
- more than 73% of 1,788 Web search servers
Release history: 2 versions in the registry since 2026-08-28, latest 2026-10-19, typically one every 51 days.
Install Leanforge in Claude Code, Cursor or VS Code
The registry entry has no remote endpoint or installable package.
What the publisher says
From the Leanforge repository's README, as published. We do not edit it. Read it on GitHub
leanforge-mcp
MCP server for AI-driven formal proof search in Lean 4. Submit a theorem with sorry; get back a machine-verified proof. Implements Agent A from AlphaProof Nexus (DeepMind, May 2026).
Stack: Python 3.12+ . FastMCP 3.4+ . FastAPI . React/Vite . Tailwind . Lean 4 / Mathlib
Table of Contents
- What it does
- Quick Install
- What You Can Do
- Tools
- Requirements
- Documentation
- Status
- License
What it does
Feed it a Lean 4 theorem with a sorry placeholder. It runs N parallel agents in a loop: the LLM proposes a proof edit, the Lean compiler judges it, errors feed back to the LLM. First agent to produce a sorry-free compile wins.
-- Input
theorem sum_formula (n : ℕ) : 2 * ∑ i ∈ Finset.range (n + 1), i = n * (n + 1) := by
sorry
-- Output (machine-verified)
theorem sum_formula (n : ℕ) : 2 * ∑ i ∈ Finset.range (n + 1), i = n * (n + 1) := by
induction n with
| zero => simp
| succ n ih => rw [Finset.sum_range_succ]; ring_nf; linarithThe compiler is the only oracle -- if it compiles without sorry, the proof is correct.
Quick Install
git clone https://github.com/sandraschi/leanforge-mcp
cd leanforge-mcp
uv sync
Copy-Item config.example.toml config.tomlThen add to claudedesktopconfig.json:
{
"mcpServers": {
"leanforge": {
"command": "uv",
"args": ["--directory", "C:\\path\\to\\leanforge-mcp", "run", "python", "-m", "leanforge_mcp"],
"env": { "DEEPSEEK_API_KEY": "...", "ANTHROPIC_API_KEY": "..." }
}
}
}See INSTALL.md for the Lean + Mathlib workspace setup (~4GB, one-time -- already provisioned and verified on Goliath as of 2026-07-09).
What You Can Do
"Prove that the sum of the first n natural numbers is n*(n+1)/2"
"Submit this MiniF2F problem and check back in 10 minutes"
"Show me all the proof attempts for job abc-123 -- why is it stuck?"
"Run validate_lean on this tactic proof to see if it compiles"Tools
Requirements
- Python 3.11+
- Lean 4 via elan (winget install leanprover.elan)
- Mathlib workspace with cached oleans (~4GB, one-time setup -- see INSTALL.md)
- Ollama with deepseek-prover-v2:7b for tier-1 (local, free)
- DeepSeek or Anthropic API key for tier-2/3 (optional)
Documentation
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Leanforge: common questions
- Is Leanforge MCP server safe?
- Yes, by our scan: it is graded A (88/100). Read the Leanforge safety report
- Does Leanforge need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Leanforge maintained?
- The last commit was 13 days ago (2026-10-24). The latest release is v0.1.1.
- What can I use instead of Leanforge?
- Servers from other publishers that do the same job: Jobseek MCP server and Workopia — Job Search MCP server.
- How does Leanforge compare with other Web search MCP servers?
- safety score 88/100 (higher than 80% of 3,471 Web search servers); github stars 3 (more than 73% of 1,788 Web search servers). Full comparison.
Alternatives to Leanforge
Same job from other publishers: the closest match first, then the best rated.
- JobseekSearch jobs and companies on Job Seek (jseek.co)not reviewedEstablishedA
- Workopia — Job SearchSearch 6.3M+ live jobs from companies' own career pages, plus resume tailoring & cover letters.not reviewedGrowingB