Enterprise DNA
M MCP Servers Developer low

micl2e2/code-to-tree

by Various

A runtime-free MCP server that converts source code into AST🌲, regardless of language.

M

MCP

micl2e2/code-to-tree

Added 1 June 2026

#abstract-syntax-tree #agentic #ast #claude #dependency-free #llm #mcp #mcp-server

Overview

A runtime-free MCP server that converts source code into abstract syntax trees (ASTs) for any language. It parses code without executing it, making it a lightweight static analysis tool.

Best for

Best for
Developers needing a simple, language-agnostic AST extraction tool for static code analysis

Use cases

  • Generate ASTs from source code for analysis or transformation
  • Integrate with MCP-compatible editors for code structure visualization
  • Build language-agnostic static analysis pipelines

How to use

Tools exposed

  • tree-sitter
  • mcpc

Tested with

Claude

Example client config

{\n    "mcpServers": {\n        "code-to-tree": { "command": "/path/to/code-to-tree" } \n    }\n}

Notes

A runtime-free MCP server that converts source code into abstract syntax trees (ASTs) for any language. It parses code without executing it, making it a lightweight static analysis tool.

83 stars on GitHub. Last updated 2026-03-14. Licensed MIT.

Use cases

  • Generate ASTs from source code for analysis or transformation
  • Integrate with MCP-compatible editors for code structure visualization
  • Build language-agnostic static analysis pipelines

Pros

  • Works with any programming language without runtime dependencies
  • Lightweight C implementation with minimal overhead
  • Useful for developers needing quick AST extraction

Cons

  • Limited to AST generation, no deeper semantic analysis
  • Small community with only 83 stars, less support
  • Requires MCP-compatible client to be useful

Indexed from awesome-mcp-servers-punkpeye and enriched against its public facts.

Pros

  • Works with any programming language without runtime dependencies
  • Lightweight C implementation with minimal overhead
  • Useful for developers needing quick AST extraction

Cons

  • Limited to AST generation, no deeper semantic analysis
  • Small community with only 83 stars, less support
  • Requires MCP-compatible client to be useful
Free 27-page guide

Get the free Developer’s Field Guide

A 27-page field guide to the AI coding workflow with Claude. Claude Code, MCP servers, the prompt patterns that work, and what to delegate. Free.

Enter your work email. We send it straight over, plus a few short notes worth knowing. Unsubscribe any time.

No spam. Unsubscribe any time.

Running a business, not writing the code? See the MCP servers picked for operators, and get your first one wired up with us.

Operator picks