lean-mathlib-docs-mcp
A minimal MCP local server for Lean Mathlib 4 Documentation Search Implemented using Python
Install / Use
claude mcp add CriticalLine -- npx -y github:CriticalLine/lean-mathlib-docs-mcpIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
Content & MediaSupported Platforms
Our assessment of lean-mathlib-docs-mcp
lean-mathlib-docs-mcp scores 66/100 on our quality scale, 1052nd of 1,144 Content & Media skills we index.
Its MCP Server is 1.9 KB long, well organised into 9 sections with 1 code example: moderately detailed.
It has 3 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated 14 days ago, so lean-mathlib-docs-mcp is actively maintained.
- Our last check on 2026-09-12 found the source still online.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 87/100, with 2 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.
Automated pattern scan on 2026-10-03. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
lean-mathlib-docs-mcp compared with similar skills
All 4 of these similar skills score higher than lean-mathlib-docs-mcp; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| lean-mathlib-docs-mcp (this skill)by CriticalLine | 66 | 3 | 14d ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 88.6k | 17d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 74.3k | today | CLAUDE.md |
| rufloby ruvnet | 100 | 73.7k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.2k | today | CLAUDE.md |
Frequently asked questions
- How do I install lean-mathlib-docs-mcp?
- Run
claude mcp add CriticalLine -- npx -y github:CriticalLine/lean-mathlib-docs-mcp. The install tabs above show the steps for each supported agent. - Which AI agents does lean-mathlib-docs-mcp work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is lean-mathlib-docs-mcp safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It is MIT-licensed and scores 87/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is lean-mathlib-docs-mcp still maintained?
- The repository was last updated 14 days ago, so lean-mathlib-docs-mcp is actively maintained.
Skill content
View source on GitHubLean Mathlib 4 Documentation Search MCP Server
This project provides a Minimal MCP (Model Context Protocol) Server for searching Lean Mathlib 4 documentation. It allows LLMs to query Lean Mathlib 4 declarations and retrieve relevant documentation links and details. The MCP server is only available for VSCode at the moment.
Features
- Search Lean Mathlib 4 Documentation: Query the documentation for declarations, modules, and instances.
- MCP Server Integration: Implements the MCP protocol for seamless integration with tools.
- Local Data Handling: Downloads and processes Lean Mathlib 4 documentation data locally after the first run.
Prerequisites
- Python 3.11 or higher
requestslibrarymcpMCP Server library
Installation
-
Clone the repository:
git clone https://github.com/CriticalLine/lean-mathlib-docs-mcp.git cd lean-mathlib-docs-mcp -
Install the required Python dependencies:
conda env create -f environment.yml conda activate lean-mathlib-docs-env -
Ensure the
mcp.jsonfile is correctly configured in the.vscodefolder or the project root.
Usage
- VSCode will automatically start the MCP server when you launch it with the appropriate configuration.
- Query the server by explicitly using
#search_lean_doc <query>or tell the LLM to use the search function.
Project Structure
lean-mathlib-docs-mcp/
├── LICENSE
├── README.md
├── src/
│ ├── lean_docs_server.py
│ └── mcp.json
Development
- test the mcp server
- add check the original code
License
This project is licensed under the GPLv3 License. See the LICENSE file for details.
Prohibits all commercial use.
Acknowledgments
- Lean Mathlib 4 for the documentation data.
- The MCP Server library for providing the protocol implementation.
Related Skills
Agent-Reach
88.6kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
74.3kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
ruflo
73.7k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
CowAgent
47.2kOpen-source personal AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
