code-to-tree for MCP
Code To Tree: Local AST Generation for LLMs and AI Agents
- Free
- 4.9
- V v0.1.0
Code To Tree: Local AST Generation for LLMs and AI Agents
Code To Tree, developed by Micl2e2, is an MCP server that empowers Large Language Models with accurate Abstract Syntax Tree (AST) conversion from source code. Built in C and utilizing the mcpc SDK, this tool runs entirely locally, ensuring privacy for code analysis. It provides structural code understanding for AI clients, enhancing their ability to reason about diverse programming languages. Code To Tree is a free solution for developers and AI engineers seeking advanced code parsing capabilities.
What does Code To Tree connect to?
Code To Tree functions as an MCP (Model Context Protocol) server, specializing in converting source code into Abstract Syntax Trees. It connects to various AI clients that support the Model Context Protocol, such as Claude Desktop and Cursor. The tool also integrates with Windsurf and over 40 compatible editors, extending its reach within AI-assisted development environments. Its primary purpose is to provide structural code insights to Large Language Models.
Core features and tools
Code To Tree operates as a single-purpose server, delivering one core function: converting source code into an Abstract Syntax Tree using the tree-sitter parser. The server itself is the primary tool, providing this AST conversion capability to connected AI clients. There are no other explicitly named callable tools with distinct JSON schemas for inputs and outputs. Its design focuses on this specialized code analysis task.
Who is it for?
Code To Tree is for developers and AI engineers who work with Large Language Models and AI agents, aiming to improve their interaction with source code. It suits those needing to provide LLMs with structural code information for better reasoning and manipulation. This tool is particularly useful for tasks involving code analysis where privacy is paramount. Skip this if you do not require Abstract Syntax Tree generation for AI-driven code understanding.
How to get started
No credentials are required for Code To Tree, as it runs 100% locally. The setup involves configuring your MCP client, such as Claude Desktop, to point to the downloaded executable. MCP servers commonly use stdio for local execution.
Use cases
- Enhanced LLM Code Understanding: An AI client invokes Code To Tree to convert source code into an Abstract Syntax Tree, enabling LLMs to process structural information for accurate reasoning.
- Local and Private Code Analysis: Developers use Code To Tree with local AI clients for structural analysis of proprietary or sensitive code, ensuring privacy as code remains on the user's machine.
- AI Agent-driven Code Refactoring/Generation: AI agents utilize generated ASTs for complex code manipulation, such as automated refactoring, identifying code smells, or generating new code.
Code To Tree offers a specialized, local solution for generating Abstract Syntax Trees from source code, directly supporting AI clients and LLMs. Its local operation ensures privacy for sensitive code analysis, making it a valuable tool for AI-assisted development. The program integrates with several MCP-compatible clients and editors, providing structural code insights.
Pros
- Converts source code to AST for LLMs.
- Runs 100% locally, ensuring privacy.
- Supports multiple MCP-compatible AI clients.
- Free to use.
Cons
- Relies on manual executable download.
- Requires C compiler for source build.
- No explicit authentication model for access control.
- Limited to AST generation; no other tools.
code-to-tree for MCP
- Free
- 4.9
- V v0.1.0
Top downloads

aiope
Aiope: An MCP Server for AI-Powered Development and Integrations
unbrowser
unbrowser: an agent‑native, Chrome‑free runtime for LLM workflows

Task-Scheduler-Studio
WinUI 3 task manager with MCP AI integration for Windows

DataNexa
DataNexa: A Secure AI Database Gateway
Little-Claude
Little-Claude desktop GUI for Claude Code with MCP integration
Discover more programs
vessel-browser
- 4.8
- Free
Vessel Browser: An AI-Driven Web Platform for Agent Interactions

tuui
- 4.6
- Free
TUUI: A Comprehensive Local AI Playground
Lynkr
- 4.8
- Free
A proxy that lets coding assistants use any LLM via MCP

mcp-servers-for-revit
- 4.9
- Free
Integrate AI with Autodesk Revit Effortlessly

dify-mcp-client
- 4
- Free
Dify MCP Client: Connecting Dify to External Model Context Protocol Servers

Anki Mcp Server
- 4.7
- Free
Anki MCP Server: AI Integration for Anki Flashcard Management
AgenticGoKit
- 4.7
- Free
Agenticgokit: Go Framework for Intelligent Multi-Agent AI Systems and Tool Integration
mTarsier
- 4.9
- Free
Mtarsier: A Desktop Manager for AI Client Servers and Skills
omega-memory
- 4.1
- Free
Local, persistent memory for MCP agents and coding assistants

browser-control-mcp
- 4.8
- Free
Browser Control MCP: AI-Driven Firefox Automation for Agents