code-to-tree for
code-to-tree: an MCP server that maps code into structured ASTs
- Free
- 4.9
- V v0.1.0
code-to-tree: an MCP server that maps code into structured ASTs
code-to-tree, developed by Micl2e2, converts source code into Abstract Syntax Trees to give LLMs structured program context. The tool parses files with the tree-sitter library and exposes structured output through the Model Context Protocol (MCP) for AI clients. It supports multiple mainstream languages, ships as a standalone binary, and targets software developers and AI researchers who need program structure for refactoring, documentation, or model-assisted code navigation.
What tasks can you actually use it for?
The tool transforms source files into syntax trees so LLMs can operate on hierarchical code elements rather than raw text. That makes it suitable for automated refactoring, function- and class-level navigation, and generating structure-aware documentation. The project explicitly advertises better model-assisted code navigation and refactoring, which points to use cases where downstream agents query or rewrite AST nodes instead of editing plain code strings.
How reliable are the parsed representations for large codebases?
Parsing accuracy comes from the tree-sitter library, which the tool uses to produce syntax trees. The developer states the parser yields high-fidelity analysis and the implementation claims high-speed parsing for complex codebases, so parsing throughput and syntax fidelity are core strengths. Accuracy will track the underlying grammar coverage for each language, so edge cases depend on tree-sitter grammar completeness rather than the MCP wrapper itself.
What inputs does it accept and how do you integrate it?
The server accepts source code in the supported languages and runs as a standalone binary, avoiding runtime dependencies. Full functionality requires an MCP-compatible client; the documentation shows adding the binary path to an MCP client configuration JSON as the integration step. The project is distributed for desktop platforms and expects the binary to be invoked by an MCP client for live model context injection.
Does it fit into developer workflows and protect local data?
Configuration is described as simplified for quick local deployment, which helps incorporate the server into existing development or CI workflows. Because the product is a standalone MCP server, teams can run it on local machines, reducing reliance on external runtimes. The project is noted as well-regarded in the MCP developer community, indicating it integrates into developer toolchains commonly used with MCP clients.
A practical pick for teams embedding structural code context into LLM workflows
Given Micl2e2’s focus on structured data tools and the project’s favorable standing in the MCP community, code-to-tree is a practical option for teams that want LLMs to reason about program structure. Expect improved model-guided inspections when you validate outputs on representative modules and keep human review in the loop for any automated refactorings.
Pros
- Produces ASTs using the tree-sitter parser for language-aware structure
- Standalone binary removes external runtime dependencies
- MCP compatibility enables integration with MCP clients
- High-speed parsing suited to complex codebases
Cons
- Language support limited to the listed mainstream languages
- Desktop binaries only, no server-hosted cloud distribution noted
- Parsing accuracy depends on tree-sitter grammar coverage per language
code-to-tree for
- Free
- 4.9
- V v0.1.0
Top downloads
VeoMCP
VeoMCP: Veo text-to-video integration for MCP-compatible AI clients
dhlottery-mcp
Efficient Lottery Management with dhlottery-mcp
Autono
Autono: Advanced AI Agent Framework
codeweaver
Context-aware localization server for MCP-enabled developer workflows
AgentClaw
Comprehensive AI Agent Management Platform
Discover more programs
Lynkr
- 4.8
- Free
A proxy that lets coding assistants use any LLM via MCP
AgenticGoKit
- 4.7
- Free
AgenticGoKit: Go-native framework for production multi-agent systems
omega-memory
- 4.1
- Free
Local, persistent memory for MCP agents and coding assistants
tuui
- 4.6
- Free
TUUI: A Comprehensive Local AI Playground
dify-mcp-client
- 4
- Free
mTarsier
- 4.9
- Free
mTarsier: Visual MCP server and skills control for developers
Anki Mcp Server
- 4.7
- Free
Automating Anki with an MCP bridge for local AI workflows
vessel-browser
- 4.8
- Free
Agent-first Chromium browser for supervised web automation
browser-control-mcp
- 4.8
- Free
Efficient Tab Management with Browser Control MCP
mcp-servers-for-revit
- 4.9
- Free