What it does
code-to-tree is a standalone MCP server that converts source code into an abstract syntax tree (AST), so an LLM can read its structure. It uses tree-sitter, which covers C, C++, Rust, Ruby, Go, Java and Python. The server ships as one binary, so it needs few other dependencies to run.
Use cases
- 01Map the structure of a module before a code review
- 02Compare how a feature is organized across languages
- 03Explain a file's syntax tree to a non-specialist