LocalGraph

•

Parses code repositories into SQLite relationships and semantic embeddings, serving codebase context to AI editors over the Model Context Protocol (MCP).

LocalGraph is a zero-dependency, local-first CLI tool that acts as a powerful GraphRAG engine for codebases. It leverages Tree-sitter to parse code into a detailed SQLite relationship graph (Imports, Definitions, Calls) and computes semantic vector embeddings using local LLMs like LM Studio or Ollama. Designed to integrate directly with AI-assisted editors (e.g., OpenCode, Cursor, Claude Desktop) via the Model Context Protocol, LocalGraph provides a "map" of the codebase's structure and semantics, helping developers and AI agents quickly understand where to explore and gain a 10,000-foot view for faster onboarding and more effective queries.

주요 기능

01Context Token Guardrails (node cap, depth-1 call walks, code truncation)
02Local LLM Integration (Ollama, LM Studio / OpenAI-compatible)
03SQLite-based relationship graph (Imports, Definitions, Calls)
04Native MCP Server for AI editor integration
050 GitHub stars
06Multi-Language AST Parsers (Go, Python)

사용 사례

01Quickly onboarding to unfamiliar repositories by gaining a structural overview
02Mapping interface implementations and concrete types across packages
03Analyzing dependency impact and tracing data flow through function signatures