MCP Directory
Back

LeanKG

by FreePeak · Rust · ★ 174

LeanKG: Stop Burning Tokens. Start Coding Lean.

#antigravity#claude-code#concise-context#cursor#gemini#graph-database#kilo-code#kn#knowledge-graph#knowlege-base#lean-code#lean-context#lean-token#llm#mcp#mcp-server#opencode#saving-token#second-brain#token

Install

cargo install --git https://github.com/FreePeak/LeanKG.git

Claude Desktop config

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "leankg": {
      "command": "npx",
      "args": [
        "-y",
        "github:FreePeak/LeanKG"
      ]
    }
  }
}

From the README

[](https://opensource.org/licenses/MIT) [](https://www.rust-lang.org/) [](https://crates.io/crates/leankg) [](https://safeskill.dev/scan/freepeak-leankg) **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 commu…
Read full README on GitHub →

💡 Need a managed MCP host?

Try Claude Pro for the smoothest MCP experience, or browse our cloud-hosted servers.

Related databases servers