# HamedFathi/TreeSitterMCP

Source: https://glimind.com/server/github%2Fhamedfathi%2Ftreesittermcp
Registry id: `github/hamedfathi/treesittermcp`
Status: unknown

## Tools (27)

- `cache_stats`: Cache counters, sizes, limits, TTL
- `clear_cache`: Clear everything, one project, or one project + path
- `compare_ast_snapshots`: Ordered structural diff between two snapshots
- `create_ast_snapshot`: Save a structural snapshot of a file
- `find_paths`: Glob or regex search over file and folder paths
- `find_similar_subtrees`: Rank structurally similar subtrees for a node_id
- `get_ast`: Depth-limited named-node AST, optional byte-range focus
- `get_ast_metrics`: Node/leaf/depth/error counts and node-type histogram
- `get_dependencies`: Import/include edges for many languages
- `get_directory_info`: Directory summary plus paginated children
- `get_file_metadata`: Size, lines, modification time, SHA-256, language
- `get_language_info`: ABI and counts, or paginated node_types / fields
- `get_node_at_position`: Deepest node at line+column or start_byte
- `get_parse_diagnostics`: ERROR and MISSING syntax-recovery ranges
- `get_project_tree`: Folders-first tree, Markdown view, recursive stats
- `get_symbols`: Definition outline (functions, classes, ...) using common grammar shapes
- `list_files`: Regular files, optionally filtered by path and language
- `list_languages`: All 371 grammar names
- `list_projects`: List registered projects
- `navigate_ast`: Navigate AST: self, parent, children, siblings, ancestors, subtree
- `project_overview`: File/folder counts, languages, total size
- `query_ast`: Native Tree-sitter query captures on one file
- `query_project`: Same query across many files, with per-file status
- `read_file`: Bounded line ranges (default 200 lines)
- `register_project`: Name a folder inside an allow root
- `search_text`: Literal/RE2 search, case folding, whole word, globs, context
- `unregister_project`: Remove a registration (files are untouched)

Measured by Glimind (https://glimind.com): MCP handshake + tool list only, no tool is ever called. CC BY 4.0.
