Tree-Sitter

•

Analyze codebases with tree-sitter to perform AST inspection, symbol extraction, structural code search, and complexity metrics.

Tree-Sitter MCP gives AI assistants structured access to codebases using bundled Tree-sitter parsers across major programming languages. It delivers more than 20 specialized tools covering AST exploration, symbol resolution, code complexity analysis, dependency mapping, and structural pattern matching using AST fingerprinting. With support for both stdio and HTTP transports, in-memory parse caching, and warm-up pre-parsing, it provides fast, syntax-aware code intelligence across multi-language projects.

主な機能

01Multi-language symbol extraction, dependency mapping, and cross-project usage search
02Structural code search using AST fingerprinting and Jaccard similarity
03Bundled parsers for C, C++, Go, Java, JavaScript, Python, Rust, TypeScript, and more with in-memory caching
040 GitHub stars
05Deep AST inspection and JSON serialization with position-based node lookups and syntax diagnostics
06S-expression query engine with query templates and cross-language query adaptation

ユースケース

01Locating duplicated code patterns and refactoring targets through structural similarity search
02Extracting syntax trees, dependencies, and symbols to verify code health and trace usages
03Assisting AI coding agents with accurate architectural discovery and codebase navigation