



code-to-tree is a single-binary Model Context Protocol (MCP) server that converts source code into an abstract syntax tree (AST) representation, regardless of the programming language. It enables MCP-compatible clients to analyze and navigate code structure programmatically via a unified server interface.
Loading more......
On this page
code-to-tree
Category: Repository – Code Analysis MCP Servers
Tags: code-analysis, AST, multi-language
Source: https://github.com/micl2e2/code-to-tree
code-to-tree is a single-binary, runtime-free Model Context Protocol (MCP) server that converts source code into an abstract syntax tree (AST) representation, regardless of the programming language. It exposes this functionality through a unified MCP-compatible interface so clients can analyze and navigate code structure programmatically.
MCP server implementation
Single-binary, runtime-free design
Language-agnostic AST generation
Programmatic code structure access
Example configurations and tool calls
toolcall-1.json, toolcall-2.json, toolcall-3.json) and toolslist.json illustrating how to interact with the server through MCP.ts1.patch) demonstrating AST-related usage or integration scenarios.Documentation and assets
README.md / README.org describing setup and usage (in-repo).chathistory.png, wholeast.png) showing example interactions and AST visualizations.LICENSE (specific terms are in the repository license file).code-to-tree.c.Makefile..github/workflows for CI-related tasks.Explore more items related to this one