lean-kg
FreePeak/LeanKGPlugin
Lightweight Knowledge Graph for AI-Assisted Development LeanKG is a local-first knowledge graph that gives AI coding tools accurate codebase context. It indexes your code, builds dependency graphs, and exposes an MCP server so tools like Cursor, OpenCode, and Claude Code can query the knowledge graph directly. No cloud services, no external databases. Visualize your knowledge graph with force-directed layout, WebGL rendering, and community clustering.
Why this score
Popularity score: 72/100 from public GitHub signals only. It shows how widely used and maintained this is, not how well it works. Not included yet: the fake-star check. The security scan is shown separately and doesn't change the score. How we rank
Security
Scanned Oct 22, 2026 at commit b7f64728b393, first 300 source files (it's a large repo), with Cisco's open-source skill-scanner.
What its code does:
- Runs shell commands Common for dev tools. Read the commands it runs..claude-plugin/hooks/leankg-pretooluse.mjs:7, INSTRUCTION.md:2, README.md:2 and 22 more
- Makes network requestsscripts/mcp-smoke-tools.py:252 and 1 more
- Includes scripts in hidden folders Folders starting with a dot are easy to miss when you read a repo..devcontainer/post-create.sh:5, .opencode/plugins/leankg.js
- Downloads content and runs it Whatever it downloads can change after we scanned it..devcontainer/post-create.sh:5, scripts/install.sh:33
Web addresses in its code:
- raw.githubusercontent.com.codex/INSTALL.md:14
- api.github.comnpm/leankg/scripts/install.js:34
- apple.comscripts/install-leankg-mcp-launchd.sh:34
- ftp.debian.orgscripts/docker-sync-binary.sh:71
- kilo.aiscripts/install.sh:1358
- opencode.aiscripts/install.sh:292
These are the sites named in the code, so it's where your data could go. It isn't a complete list: code can build addresses while it runs, and a few of these may be links rather than calls. Whatever you send also goes to the AI model you use.
A scan lists patterns in the code. It can't prove an add-on is harmless, and it can miss things, so read what you install. How we scan
Alternatives
Other makers' add-ons that do the same job, next to this one.
| Name | Score | Stars | Context | Updated |
|---|---|---|---|---|
| This onelean-kg FreePeak/LeanKG · Plugin | 72 | ★ 223 | not measured | today |
| lean-worker mdalexandre/claude-code-lean-agents · Subagent Both about lean | 56 | ★ 12 | ≈69 in chat | 18d ago |
| lean-code AnastasiyaW/codex-claude-code-config · Skill Both about lean and dependency | 62 | ★ 212 | ≈153 always | 16d ago |
| lean-startup getagentseal/founder-playbook · Skill Both about lean | 64 | ★ 760 | ≈153 always | 29d ago |