LeanKG vs filesystem
Side-by-side comparison to help you pick between these two MCP servers.
LeanKG by FreePeak | filesystem by modelcontextprotocol | |
|---|---|---|
| Stars | ★ 188 | ★ 85,748 |
| 30d uses | — | — |
| Score | 50 | 77 |
| Official | — | ✓ |
| Categories | Developer ToolsAI / LLM ToolsKnowledge Graph | File SystemDeveloper ToolsProductivity |
| Language | Rust | TypeScript |
| Last commit | this month | this month |
LeanKG · Summary
LeanKG is a local-first knowledge graph that indexes codebases and exposes them via MCP for AI-assisted development with significant token savings.
filesystem · Summary
A feature-rich MCP server for filesystem operations with dynamic directory access control.
LeanKG · Use cases
- AI-assisted code analysis with reduced token consumption by targeting specific code subgraphs
- Impact radius calculation before making code changes
- Code dependency visualization and community detection in large codebases
- Annotation-based code search and traceability
filesystem · Use cases
- Enable AI models to read and write project files during development
- Allow Claude or other MCP clients to browse and analyze codebases
- Provide secure sandboxed access to specific directories for content generation
LeanKG · Install
Installation
One-Line Install (Recommended)
curl -fsSL https://raw.githubusercontent.com/FreePeak/LeanKG/main/scripts/install.sh | bash -s -- <target>Supported targets include: cursor, claude, opencode, kilo, antigravity, gemini, codex
Install via Cargo
cargo install leankg && leankg --versionClaude Code Integration
# Install with Claude Code hooks
leankg setup
# Restart Claude Code or run:
/reload-pluginsConfiguration
LeanKG creates MCP configuration during setup. For manual setup, see docs/mcp-tools.md for MCP server configuration.
filesystem · Install
Installation
Using NPX
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/path/to/allowed/directory"
]
}
}
}Using Docker
{
"mcpServers": {
"filesystem": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--mount", "type=bind,src=/path/to/allowed/dir,dst=/projects/allowed/dir",
"mcp/filesystem",
"/projects"
]
}
}
}VS Code Extension
Click the installation buttons in the README to install directly in VS Code.