Back to MCP Servers

Code To Tree

A single-binary MCP server that converts source code into AST, regardless of language.

coding-agents

Installation

npx -y code-to-tree

Configuration

{
  "mcpServers": {
    "code-to-tree": {
      "command": "npx",
      "args": ["-y", "code-to-tree"]
    }
  }
}

How to use

  1. Run the installation command above (if needed)
  2. Open your Claude Code settings file (~/.claude/settings.json)
  3. Add the configuration to the mcpServers section
  4. Restart Claude Code to apply changes
View source on GitHub