LeanKG
Indexes repositories into an access-controlled code graph for agent queries about callers, dependents, impact, tests, and documentation.
Install LeanKG
Run the project’s own setup commands, in order.
Setup steps from the project
LeanKG installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com
leankg serve --http 127.0.0.1:9699 --rest 127.0.0.1:8080 --memoryleankg install --target claude-code --http --url http://127.0.0.1:9699/mcpgo install github.com/FreePeak/LeanKG/cmd/leankg@latest # server + CLIgit clone https://github.com/FreePeak/LeanKG.git && cd LeanKG
Overview
Use cases
- Index a repository for targeted agent code queries
- Trace callers and dependents before changing a symbol
- Estimate change impact across imports and calls
- Retrieve tests and documentation related to code
- Serve multiple projects through one controlled deployment
Key features
- Code graph queries over MCP
- Caller, dependent, and blast-radius analysis
- Exact, keyword, and optional semantic retrieval
- SQLite or PostgreSQL with pgvector storage
- Bearer-token authentication with role floors
- Stdio and streamable HTTP MCP transports
Security & health
What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.
Recent health check succeeded.
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
How LeanKG works
Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings
Reviews
No reviews yet — be the first to share how it worked for you.
Frequently Asked Questions about LeanKG
Related MCP servers
Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.
AllMCPs Directory Badge
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/leankg)<a href="https://allmcps.com/mcp/leankg"><img src="https://allmcps.com/api/badge/leankg?style=directory" alt="LeanKG on AllMCPs" /></a>