AI Skill Hub 推荐使用:LeanKG: 开源MCP工具 是一款优质的MCP工具。AI 综合评分 7.5 分,在同类工具中表现稳健。如果你正在寻找可靠的MCP工具解决方案,这是一个值得深入了解的选择。
LeanKG是一款开源的MCP工具,帮助开发者减少Token的消耗,提高编码效率。它基于Rust语言开发,提供了一个高效的MCP解决方案。
LeanKG: 开源MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
LeanKG是一款开源的MCP工具,帮助开发者减少Token的消耗,提高编码效率。它基于Rust语言开发,提供了一个高效的MCP解决方案。
LeanKG: 开源MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/FreePeak/LeanKG
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"leankg----mcp--": {
"command": "npx",
"args": ["-y", "leankg"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 LeanKG: 开源MCP工具 执行以下任务... Claude: [自动调用 LeanKG: 开源MCP工具 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"leankg____mcp__": {
"command": "npx",
"args": ["-y", "leankg"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
<p align="center"> <img src="assets/icon.svg" alt="LeanKG" width="128" height="128"> </p>
<p align="center"> <strong>Enterprise-ready code knowledge graph for AI coding agents</strong><br> Multi-repo · env governance · incidents & services · req↔code · −65% tokens / −85% tool calls </p>
<p align="center"> <a href="https://leankg.onrender.com"><strong>Live Demo</strong></a> · <a href="docs/prd.md">Docs</a> · </p>
<p align="center"> <a href="https://github.com/FreePeak/LeanKG/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-Apache_2.0-blue.svg" alt="License: Apache 2.0"></a> <a href="https://crates.io/crates/leankg"><img src="https://img.shields.io/crates/v/leankg.svg" alt="crates.io"></a> <a href="https://github.com/FreePeak/LeanKG/actions"><img src="https://img.shields.io/github/actions/workflow/status/FreePeak/LeanKG/ci.yml?branch=main&label=CI" alt="CI"></a> </p>
<p align="center"> <img src="assets/banner.svg" alt="LeanKG" width="100%"> </p>
---
--features embeddings)ontology/workflows.yaml → kg_trace_workflowimports, calls, tested_by, http_calls, service_callsleankg serve + cd ui-v2 && npm run dev)---
None — sqlite is the default storage engine. No Postgres, no Docker.
Postgres remains available as an explicit opt-in (LEANKG_DB_ENGINE=postgres + LEANKG_PG_URL) for server-scale deployments, but nothing in the default flow touches it.
```
---
leankg setup with no flags keeps the legacy client-side behavior (register MCP + hooks). Pass pipeline flags to instead clone a list of repos and index each one server-side:
```bash
cd your-project leankg init && leankg migrate && leankg index ./src
leankg serve --port 8080
| Issue | Fix |
|---|---|
| High RAM (macOS) | LEANKG_MMAP_SIZE=134217728 — see [INSTRUCTION.md](INSTRUCTION.md) |
| MCP “not initialized” in Docker | Use container project=/workspace, not the host path |
| Embeddings / cold embed | [src/embeddings/EMBEDDINGS.md](src/embeddings/EMBEDDINGS.md) |
Requirements: macOS or Linux · Docker recommended for teams · Rust 1.75+ only when building from source.
---
LeanKG 是一个用于 AI 工具的知识图谱管理系统,简介
LeanKG 的主要功能包括 Auto-Init、Auto-Trigger、Token Optimized、Impact Radius 和 Pre-Commit Risk Analysis 等
LeanKG 需要 Rust 1.75+ 和 macOS 或 Linux 等环境
LeanKG 支持多种安装方式,包括 One-Line Install、Install via Cargo 和 Build from Source
LeanKG 的使用教程包括 LeanKG init、LeanKG index、LeanKG watch 等命令
LeanKG 提供 REST API 服务器,支持认证和 API 键管理
LeanKG 的常见问题包括高 RAM 使用问题等
LeanKG是一款高质量的开源MCP工具,基于Rust语言开发,提供了一个高效的MCP解决方案。它适用于需要MCP功能的开发者,帮助他们提高编码效率和减少Token的消耗。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
总体来看,LeanKG: 开源MCP工具 是一款质量良好的MCP工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | LeanKG |
| 原始描述 | 开源MCP工具:LeanKG: Stop Burning Tokens. Start Coding Lean.。⭐190 · Rust |
| Topics | mcpantigravityclaude-codeconcise-contextcursorgeminirust |
| GitHub | https://github.com/FreePeak/LeanKG |
| License | Apache-2.0 |
| 语言 | Rust |
收录时间:2026-05-24 · 更新时间:2026-05-30 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端