Standalone MCP server converting source code to AST for multiple languages using tree-sitter.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
One-click editor setup isnβt available for this listing yet β we donβt have a confirmed install command, and weβd rather show nothing than point your editor at the wrong package or host. Follow the projectβs own setup instructions, linked above.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Code To Tree.
The code-to-tree server's goals are:
These goals imply:
Screenshots:


The above screenshots are obtained by asking the question specified
in q.md.
(IMPORTANT NOTE: LLMs have no responsibility of generating the identical result for the same question, you will likely get a completely different style or content. The screenshots or questions provided here are just for the reference)
Before everthing, you need to have the code-to-tree executable on your
machine (code-to-tree.exe for Windows, code-to-tree for macOS),
you can download at GitHub release page or build it yourself. Once
downloaded, you configure your MCP clients to install it, check the section
"Configure MCP Clients" for more details.
Here we use Claude as the example.
In your Claude configuration
(C:\Users\YOUR_NAME\AppData\Roaming\Claude\claude_desktop_config.json),
specify the location of code-to-tree.exe:
In your Claude configuration,
(~/Library/Application Support/Claude/claude_desktop_config.json)
specify the location of code-to-tree
pacman -S make gcc gitHere we need to compile and install tree-sitter and all related grammars.
Clone them:
Compile and install them:
Install mcpc:
Compile code-to-tree:
Here we need to compile and install tree-sitter and all related grammars.
Clone them:
Compile and install them:
Install mcpc:
Compile code-to-tree:
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/micl2e2-code-to-tree)<a href="https://allmcps.com/mcp/micl2e2-code-to-tree"><img src="https://allmcps.com/api/badge/micl2e2-code-to-tree?style=directory" alt="Code To Tree on AllMCPs" /></a>