The knowledge graphto save tokens
Index your codebase once. Give AI tools targeted context. Save 25% on tokens while keeping everything local.
Index once.
Query smarter.
Fast Code Indexing
Parse and index your entire codebase with tree-sitter. Extract functions, classes, imports, and call relationships automatically. Works with Go, TypeScript, Python, Rust, Java, and Kotlin.
MCP Server Integration
Expose your knowledge graph via MCP protocol. Connect seamlessly with Claude, Cursor, OpenCode, Gemini, and Kilo. AI tools query your graph instead of scanning the whole codebase.
Graph Visualization
Visualize your codebase's dependency graph in real-time. Filter by element type, zoom, pan, and click nodes for details. Understand impact radius and blast radius instantly.
Local-First Architecture
Everything runs on your machine. No cloud services, no external databases, no token usage tracking. CozoDB SQLite storage keeps your code private and secure.
Three simple steps.
25% token savings.
1# Initialize LeanKG2leankg init34# Index your codebase5leankg index ./src67# Status check8leankg status
Works with your
favorite AI tools.
Official MCP integration. Supported by Claude, Cursor, OpenCode, and more.