Lambdapi
FreeNot checkedMCP server exposing Lambdapi proof-assistant capabilities including type-checking, proof state inspection, tactic experimentation, and symbol navigation.
About
MCP server exposing Lambdapi proof-assistant capabilities including type-checking, proof state inspection, tactic experimentation, and symbol navigation.
README
An MCP server exposing Lambdapi proof-assistant capabilities to AI agents.
lambdapi-mcp is a thin layer on top of Lambdapi's standard LSP server:
each tool is implemented by composing LSP requests, so any Lambdapi
that ships lambdapi lsp works as a backend.
Tools
| Tool | Purpose |
|---|---|
lambdapi_check |
Type-check a file; return first error if any |
lambdapi_goals |
Proof state (hyps + goals) at a 1-based line |
lambdapi_query |
Run compute / type / print / search at a line |
lambdapi_try |
Try a tactic at a line without modifying the file |
lambdapi_multi_try |
Try several tactics in parallel |
lambdapi_symbols |
List symbols declared in a file |
lambdapi_axioms |
Scan files for axioms, postulates, and admits |
lambdapi_hover |
Type info at a (line, character) position |
lambdapi_declaration |
Jump to the file + line where a symbol is declared |
lambdapi_completions |
In-scope symbol and tactic completions at a position |
All positions exposed to tools use 1-based lines and 0-based columns, matching how users think about source files.
Install
pip install lambdapi-mcp
Requires:
- Python 3.10+
- A
lambdapibinary on PATH (or passed via--binary) - The Lambdapi Stdlib for tools that exercise proofs (automatically picked up from the opam installation)
Use
From Claude Desktop / other MCP clients
Add to your MCP config (for Claude Desktop: ~/.config/Claude/claude_desktop_config.json):
{
"mcpServers": {
"lambdapi": {
"command": "lambdapi-mcp"
}
}
}
Optional flags:
--lib-root PATH— pass through as--lib-roottolambdapi lsp--stdlib PATH— add as--map-dir Stdlib:PATHtolambdapi lsp--binary PATH— explicit path to thelambdapibinary
Directly
lambdapi-mcp
Speaks MCP on stdio; typically you don't invoke it by hand.
Design
lambdapi-mcp matches the design of
lean-lsp-mcp and
rocq-mcp — all three layer on
top of the proof assistant's LSP server rather than re-implementing the
check loop, so they track upstream improvements for free.
For probing-style tools (query, try, multi_try), the server
modifies the document text in-memory and re-issues textDocument/didOpen
with the modified content, then reads back the resulting diagnostics and
goals. The file on disk is never touched.
Tests
pip install -e ".[dev]"
pytest
Fixtures live in tests/fixtures/. Tests that require the Lambdapi
Stdlib are skipped automatically if it isn't installed.
License
Apache-2.0.
Installing Lambdapi
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/ciaran-matthew-dunne/lambdapi-mcpFAQ
Is Lambdapi MCP free?
Yes, Lambdapi MCP is free — one-click install via Unyly at no cost.
Does Lambdapi need an API key?
No, Lambdapi runs without API keys or environment variables.
Is Lambdapi hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Lambdapi in Claude Desktop, Claude Code or Cursor?
Open Lambdapi on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare Lambdapi with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
