Graph X

•

Creates a local knowledge graph from project files, dramatically reducing LLM token usage and providing an interactive visualization of codebase structure.

Graph X automatically indexes every file in a specified folder, extracting relationships such as imports, documentation links, tests, and semantic similarities, storing them in a local SQLite graph. This graph serves two primary functions: it provides seven Model Context Protocol (MCP) tools for AI assistants like Claude Code, enabling them to query project structure efficiently and dramatically reduce token usage (typically 8-10x), and it presents an interactive, live-updating force-directed graph UI for human users to visualize and navigate their codebase. The tool aims to make AI code assistance significantly cheaper and smarter by giving the LLM a comprehensive, queryable map of the project, allowing it to focus only on relevant files.

Key Features

01Understands various file types including code (JS/TS, Python, PHP, Vue, Svelte, HTML, CSS), Markdown, PDF, and DOCX.
02Zero dependencies, implemented as a single Node.js binary.
030 GitHub stars
04Incremental and live indexing with hash-based re-indexing and real-time UI updates.
05Integrates natively with Claude Code via 7 dedicated MCP tools for project mapping, semantic search, and impact analysis.
06Identifies hidden semantic connections between files using TF-IDF.

Use Cases

01Dramatically reduce token consumption and improve focus for AI code assistants working on large codebases.
02Visualize and explore project structure, dependencies, and documentation links through an interactive graph UI.
03Rapidly understand new codebases or organize personal knowledge vaults with automatic indexing and semantic linking.