Skip to main content
Glama

lean_leansearch

Search Mathlib theorems using natural language queries to find mathematical proofs and definitions in Lean code.

Instructions

Limit: 3req/30s. Search Mathlib via leansearch.net using natural language.

Examples: "sum of two even numbers is even", "Cauchy-Schwarz inequality", "{f : A → B} (hf : Injective f) : ∃ g, LeftInverse g f"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesNatural language or Lean term query
num_resultsNoMax results

Latest Blog Posts

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/oOo0oOo/lean-lsp-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server