Home / MCP servers / Developer tools / code-to-tree

code-to-tree

code-to-tree is a MCP server by micl2e2 that convert source code into an AST, regardless of language.

Updated 2026-03-14

What is code-to-tree?

code-to-tree is a MCP server by micl2e2 that convert source code into an AST, regardless of language. It is listed under Developer tools and has 88 GitHub stars.

TypeMcp server
Authormicl2e2
Repositorymicl2e2/code-to-tree
Popularity88 GitHub stars
CategoryDeveloper tools
SecurityLow risk (84/100)
Rank#632 of 4,418 MCP servers; #163 in Developer tools
LicenseMIT
Last commit2026-03-14
RunsLocally
LanguageC/C++
PlatformsmacOS, Windows, Linux

Is code-to-tree safe to install?

code-to-tree scores 84/100 on the MCPMods security check: Low risk. Things to review: executes code or shell commands. It passed 4 of 6 checks.

MCP server results come from listing signals: who publishes it, where your data goes and what it can do. The code itself is not scanned yet.

CheckResult
Community-built serverNote
Runs on your machine onlyPass
No credentials mentionedPass
Read-only by descriptionPass
Executes code or shell commandsReview
Source on GitHubPass

How do I install code-to-tree?

  1. Find the launch command. The README says how the server starts (npx, uvx, docker or a remote URL) and which API keys it needs.
    https://github.com/micl2e2/code-to-tree
  2. Add it to Claude Code. Replace the part after -- with the command from the README. Remote servers use --transport http with a URL.
    claude mcp add code-to-tree -- <command from README>
    claude mcp add --transport http code-to-tree <server-url>
  3. Check it connected. This lists your MCP servers and their status.
    claude mcp list

Or ask Claude to set it up

Paste this into Claude Code and it installs code-to-tree for you:

Add the "code-to-tree" MCP server from https://github.com/micl2e2/code-to-tree to Claude Code. Read its README for the launch command and any API keys I need, run claude mcp add, then check that it connects.