Stop burning tokens. Start coding lean.

The knowledge graphto save tokens

Index your codebase once. Give AI tools targeted context. Save 25% on tokens while keeping everything local.

25.6%token savingsVERIFIED
13-42tokens per queryVS 29,903
7,642tokens savedPER TEST
100%local executionNO CLOUD
25.6%token savingsVERIFIED
13-42tokens per queryVS 29,903
7,642tokens savedPER TEST
100%local executionNO CLOUD
Capabilities

Index once.
Query smarter.

01

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.

02

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.

03

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.

AB
04

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.

Process

Three simple steps.
25% token savings.

workflow.ts
1# Initialize LeanKG
2leankg init
3
4# Index your codebase
5leankg index ./src
6
7# Status check
8leankg status
Ready
Integrations

Works with your
favorite AI tools.

Official MCP integration. Supported by Claude, Cursor, OpenCode, and more.

Claude Code
AI Tool
OpenCode AI
AI Tool
Cursor IDE
AI Tool
Gemini CLI
AI Tool
Kilo Code
AI Tool
Google Antigravity
AI Tool
Windsurf
Coming Soon
Tree-Sitter
Parser
CozoDB
Database
MCP Protocol
Standard
SQLite
Storage
GitHub
Repository
Claude Code
AI Tool
OpenCode AI
AI Tool
Cursor IDE
AI Tool
Gemini CLI
AI Tool
Kilo Code
AI Tool
Google Antigravity
AI Tool
Windsurf
Coming Soon
Tree-Sitter
Parser
CozoDB
Database
MCP Protocol
Standard
SQLite
Storage
GitHub
Repository
GitHub
Repository
SQLite
Storage
MCP Protocol
Standard
CozoDB
Database
Tree-Sitter
Parser
Windsurf
Coming Soon
Google Antigravity
AI Tool
Kilo Code
AI Tool
Gemini CLI
AI Tool
Cursor IDE
AI Tool
OpenCode AI
AI Tool
Claude Code
AI Tool
GitHub
Repository
SQLite
Storage
MCP Protocol
Standard
CozoDB
Database
Tree-Sitter
Parser
Windsurf
Coming Soon
Google Antigravity
AI Tool
Kilo Code
AI Tool
Gemini CLI
AI Tool
Cursor IDE
AI Tool
OpenCode AI
AI Tool
Claude Code
AI Tool