axle-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@axle-mcprepair the sorry statements in this Lean proof"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
axle-mcp
An MCP server that exposes the AXLE (Axiom Lean Engine) CLI as tools for AI assistants like Claude.
AXLE is a remote API for Lean 4 proof engineering — it can check, repair, simplify, extract, and transform Lean theorems without requiring a local Lean installation.
Tools
Tool | Description |
| List available Lean environments (versions + Mathlib) |
| Validate Lean code and report errors/warnings/info |
| Check that a candidate proof matches a formal statement |
| Split a file into one-theorem-per-unit with rich metadata |
| Auto-repair broken proofs (replaces |
| Remove redundant tactics and clean up proof steps |
| Find counterexamples to false theorems via property-based testing |
| Replace proof bodies with |
| Replace |
| Lift |
| Lift |
| Convert between |
| Rename declarations and update all references |
| Combine multiple Lean snippets into one file |
| Standardize Lean file formatting |
Related MCP server: Aristotle MCP Server
Requirements
Python 3.11+
mcpPython package (pip install mcp)The
axleCLI installed and accessible
Installation
1. Install dependencies
pip install mcp2. Clone this repo
git clone https://github.com/Vilin97/axle-mcp
cd axle-mcp3. Register with Claude Code
claude mcp add axle -s user \
-e AXLE_BIN=/path/to/axle \
-e AXLE_DEFAULT_ENVIRONMENT=lean-4.28.0 \
-- python /path/to/axle-mcp/server.py4. Register with Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"axle": {
"command": "python",
"args": ["/path/to/axle-mcp/server.py"],
"env": {
"AXLE_BIN": "/path/to/axle",
"AXLE_DEFAULT_ENVIRONMENT": "lean-4.28.0"
}
}
}
}Configuration
Environment variable | Default | Description |
|
| Path to the axle binary |
|
| Default Lean environment for all tools |
Usage examples
Once registered, Claude can use these tools directly. Some examples of what you can ask:
"Check if this Lean theorem compiles" →
axle_check"Repair the sorry'd proofs in this file" →
axle_repair_proofs"Turn this proof into a problem set by replacing proofs with sorry" →
axle_theorem2sorry"Does this theorem have a counterexample?" →
axle_disprove"Extract each theorem into its own self-contained snippet" →
axle_extract_theorems"Merge these two Lean files into one" →
axle_merge
Common parameters
Most tools accept these optional parameters:
environment— Lean environment to use (runaxle_environmentsto list available ones)names— comma-separated declaration names to process (default: all)indices— comma-separated 0-based indices to processtimeout— max execution time in seconds (default: 120)ignore_imports— ignore import mismatches between the code and the environment
How it works
Each MCP tool wraps the corresponding axle CLI command, passing Lean source code via stdin and returning the structured JSON response from the AXLE API. Tools that require multiple file arguments (verify-proof, merge) write temporary files automatically and clean them up after the call.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- -licenseBquality-maintenanceEnables extraction of mathematical content from TeX papers and conversion to Lean code through a structured intermediate representation. Supports project scaffolding, entity management, and task tracking for mathematical formalization workflows.Last updated14
- FlicenseBqualityDmaintenanceEnables LLMs to prove theorems in Lean and formalize mathematical problems using the Aristotle API, supporting both formal Lean code and natural language problem submissions.Last updated61
- AlicenseAqualityAmaintenanceEnables LLM agents to interact with the Lean theorem prover through the Language Server Protocol, providing tools for analyzing Lean projects, accessing diagnostics, goal states, documentation, and searching for theorems using both local and external search services.Last updated23449MIT
- AlicenseAqualityDmaintenanceAn MCP server that exposes the Prova reasoning verifier, enabling AI agents to verify their own reasoning and kernel-check Lean 4 proofs before outputting answers.Last updated5MIT
Related MCP Connectors
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Vilin97/axle-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server