LeanWarp
Check and verify Lean 4 proofs against Mathlib on hosted, warm workers
- Pricing
- Free trial
- Platforms
- CLI, API
- Runs
- Locally
- Version
- 0.2.7
- Listing updated
- 2 days ago
About LeanWarp
LeanWarp is an MCP server for developer tools. It runs locally on your machine and is started by your AI client.
LeanWarp runs Lean 4 and Mathlib for you, so an agent can work on a proof without a local Lean install. Workers stay warm between edits, and a draft check reuses Lean's work on the unchanged part of the file.
The loop is check, inspect, try tactics and verify. Verify asks Lean's kernel whether a declaration proves exactly the statement you give; proofs using sorry, admit or new axioms fail. For longer proofs, holes lists every sorry and ?_, suggest finds a tactic that closes one without breaking anything else, and sorry2lemma moves each unfinished proof into its own named lemma. Batch commands check up to 64 files or inline proofs at once.
It installs from PyPI with uv tool install leanwarp && leanwarp setup, which adds the skill and MCP server to Claude Code, Codex and Cursor, then leanwarp auth login for an API key. Proof simplification, have extraction and batch repair are listed as coming soon. The product is in beta.
Install
Run in a terminal
claude mcp add leanwarp --env LEANWARP_API_KEY='<LEANWARP_API_KEY>' -- uvx leanwarpAdd to claude_desktop_config.json
{
"mcpServers": {
"leanwarp": {
"command": "uvx",
"args": [
"leanwarp"
],
"env": {
"LEANWARP_API_KEY": "<LEANWARP_API_KEY>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"leanwarp": {
"command": "uvx",
"args": [
"leanwarp"
],
"env": {
"LEANWARP_API_KEY": "<LEANWARP_API_KEY>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"leanwarp": {
"type": "stdio",
"command": "uvx",
"args": [
"leanwarp"
],
"env": {
"LEANWARP_API_KEY": "<LEANWARP_API_KEY>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"leanwarp": {
"command": "uvx",
"args": [
"leanwarp"
],
"env": {
"LEANWARP_API_KEY": "<LEANWARP_API_KEY>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"leanwarp": {
"command": "uvx",
"args": [
"leanwarp"
],
"env": {
"LEANWARP_API_KEY": "<LEANWARP_API_KEY>"
}
}
}
}Configuration
LEANWARP_API_KEYYour LeanWarp API key (lw_live_...), from https://isagoge.in/dashboard?section=keys.Required
Tools this server provides (8)
Taken from the project documentation; the running server may differ.
- check
- Compile a file and return Lean's errors and warnings
- inspect
- Show the goal and local context at a position
- try-tactics
- Try several tactics on the same goal without editing the file
- verify
- Check a declaration proves exactly the given statement
- holes
- List every sorry and ?_ in a file
- suggest
- Find a tactic that closes a hole
- sorry2lemma
- Move unfinished proofs into named lemmas
- declarations
- List declarations a file adds with types and dependencies
What it does
- Warm draft checks
- Reuses Lean's work on unchanged parts of a file while you edit.
- Try tactics
- Tests several tactics on one goal without editing the file.
- Statement verification
- Kernel check that a proof proves exactly the stated theorem, rejecting sorry, admit and new axioms.
- Hole tools
- Lists holes, suggests closing tactics and splits proofs into lemmas.
- Batch checks
- Up to 64 files or inline proofs per operation.
- CLI, MCP, Python, HTTP
- The same operations are available four ways.
Good for
- Let an agent iterate on a Mathlib proof without installing Lean
- Confirm a finished proof matches the exact statement
- Split a long unfinished proof into named lemmas
- Verify many proof attempts in one batch
Pricing
Free trial
$10 free credit for new accounts during the launch offer; beta
Prices change. Check isagoge.in before you buy.
LeanWarp FAQ
Do I need Lean installed?
No. LeanWarp runs Lean and Mathlib for you.
How do I sign in?
Run `leanwarp auth login` in your own terminal and paste the key from the dashboard; the README says never to paste it into an agent conversation.
What does it cost?
New accounts get $10 of free credit during the launch offer; other pricing is on the website.
Which systems does it run on?
Linux, macOS and WSL.
Is LeanWarp free?
LeanWarp is a paid product with a free trial.
How do I add LeanWarp to Claude Code?
Run this command in your terminal: claude mcp add leanwarp --env LEANWARP_API_KEY='<LEANWARP_API_KEY>' -- uvx leanwarp
What are the best alternatives to LeanWarp?
The closest alternatives to LeanWarp are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.
Alternatives to LeanWarp

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 464K GitHub stars
- Developer tools

Codebase Memory
MCP serverLocal MCP server that builds a code knowledge graph for AI coding agents
Runs locally- Open source
- 48.7K GitHub stars
- Knowledge and memory

GitHub
MCP serverOfficial MCP server connecting AI assistants to GitHub repos, issues and workflows
Not checked yet- Remote
- Open source
- 34.5K GitHub stars
- Developer tools

Serena MCP: the IDE for your agent
MCP serverMCP toolkit giving coding agents symbol-level code retrieval and editing
Runs locally- Open source
- 31.5K GitHub stars
- Developer tools

XERJ
MCP serverLocal search engine for AI agents with cited answers over your code and docs
Runs locally- Open source
- 19.2K GitHub stars
- Knowledge and memory

Ouroboros
MCP serverSpec-first layer that pins requirements and verifies results of AI coding agent work
Runs locally- Open source
- 6.4K GitHub stars
- Developer tools