micl2e2/code-to-tree
by Various
A runtime-free MCP server that converts source code into AST🌲, regardless of language.
MCP
micl2e2/code-to-tree
Added 1 June 2026
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-sittermcpc
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
Pairs with
Other entries in the index that connect to this one. Click through to see the chain.
Cline
Cline
Open-source autonomous coding agent that lives inside VS Code. BYO model key, watch it work.
Claude Code
Anthropic
Anthropic's terminal-native coding agent. Reads your repo, edits files, runs tests, ships PRs.
Continue
Continue.dev
Open-source AI code assistant for VS Code and JetBrains. Customisable, BYO model, built for enterprise.
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.