OlympHill
code-to-tree logo

code-to-treeA runtime-free MCP server that converts source code into AST🌲, regardless of language.

(0)
Daniel NikulshynReviewed by Daniel Nikulshyn·Updated July 2026

Overview

The code-to-tree server is a runtime-free MCP server that converts source code into an Abstract Syntax Tree (AST), regardless of the programming language. It uses tree-sitter for syntax parsing and supports languages such as C, C++, Rust, Ruby, Go, Java, and Python. The server is designed to be self-contained, with minimal software dependencies on the end user's machine, and utilizes mcpc. The tool is intended for Large Language Models (LLMs) to accurately convert source code into ASTs. Users need to download or build the code-to-tree executable and configure their MCP clients to use it.

Key features

  • Source code to AST conversion
  • Supports C, C++, Rust, Ruby, Go, Java, Python
  • Self-contained binary
  • Tree-sitter integration
  • Mcpc integration

Pricing

Model
Free
Category
MCP Servers
Rating
No reviews yet

Use cases

LLM Code Analysis

Use code-to-tree with LLMs to analyze and understand source code structures across different programming languages.

Automated Code Review

Integrate code-to-tree into automated code review tools to provide detailed ASTs for code quality assessment.

Pros & Cons

Pros

  • Supports multiple programming languages
  • Self-contained with minimal dependencies
  • Utilizes tree-sitter for versatile syntax parsing

Cons

  • Requires manual setup and configuration of MCP clients
  • Building from source requires technical expertise and specific environment setup

Reviews

Sign in to leave a review.

No reviews yet. Be the first!

Q&A

What is required to build from source?

Building from source requires technical expertise and a specific environment setup, including installing MSYS2 and compiling tree-sitter libraries.

Asked by Noelia Campos · Apr 16, 2026

How to use the code-to-tree tool?

To use the code-to-tree tool, download or build the executable and configure your MCP clients to use it. The configuration process varies depending on the operating system.

Asked by Robert Ainsworth · Apr 8, 2026

Is the tool self-contained?

Yes, the code-to-tree server is self-contained with minimal software dependencies on the end user's machine.

Asked by Ingrid Bauer · Mar 15, 2026

What languages are supported?

The code-to-tree server supports C, C++, Rust, Ruby, Go, Java, and Python.

Asked by Ravi Chandrasekaran · Feb 17, 2026

Ask a question

MCP Servers alternatives