Back to Home
CriticalLine icon

lean-mathlib-docs-mcp

Verified Safe

by CriticalLine

Overview

Provides a Minimal MCP Server for LLMs to search Lean Mathlib 4 documentation, including declarations, modules, and instances.

Installation

Run Command
conda activate lean-mathlib-docs-env && python src/lean_docs_server.py

Security Notes

The server downloads a data file ('declaration-data.bmp') from a trusted Lean Mathlib 4 URL via `requests.get`. This file is then loaded as JSON, which is the primary external interaction. There are no explicit uses of `eval`, `subprocess`, hardcoded secrets, or direct shell commands. The risk is minimal, assuming the remote data source remains trustworthy and the '.bmp' file is indeed JSON data, as expected by `json.load`.

Similar Servers

Stats

Interest Score44
Security Score8
Cost ClassLow
Avg Tokens200
Stars2
Forks0
Last Update2025-11-27

Tags

LeanMathlibDocumentation SearchMCP ServerLLM Tooling