Code to Tree

Converts source code into Abstract Syntax Tree representations using tree-sitter parsers for multiple programming languages includ

micl2e2 88
Claude CodeClaude DesktopGeneric
View source ↗

MCP server implementation by Michael Lee that provides AI assistants with accurate Abstract Syntax Tree (AST) generation from source code across multiple programming languages including C, C++, Rust, Go, Ruby, Python, and Java. Built in C using tree-sitter parsers and the mcpc library, the implementation compiles into a single standalone binary with minimal dependencies, eliminating the need for language-specific runtime environments or complex toolchain installations. The server converts source code into S-expression formatted AST representations, making it valuable for code analysis workflows, educational tools demonstrating language syntax structures, and AI applications requiring precise understanding of code semantics rather than just text-based parsing.

Source

Repository: https://github.com/micl2e2/code-to-tree

Maintain Code to Tree?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

[Code to Tree on getagentictools](https://getagentictools.com/mcp/micl2e2-code-to-tree?ref=badge)