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.
idosal/git-mcp
Various
Put an end to code hallucinations! GitMCP is a free, open-source, remote MCP server for any GitHub project
repowise-dev/repowise
Various
Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
oraios/serena
Various
A powerful MCP toolkit for coding, providing semantic retrieval and editing capabilities - the IDE for your agent
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.
