MCPFast / Tools / MCP server for AST analysis and call graphs with Tree-sitter

GitHubMCP★★★★☆

MCP server for AST analysis and call graphs with Tree-sitter

An open-source MCP server for code structure, call graph, and AST analysis using Tree-sitter.

View on GitHub

MCP Server for AST Analysis and Call Graphs with Tree-sitter

This MCP server provides advanced capabilities for analyzing code structure, generating Abstract Syntax Trees (ASTs), and constructing call graphs. Leveraging the power of Tree-sitter, it offers a robust and efficient solution for developers seeking deep insights into their codebase. The server is designed to integrate seamlessly into development workflows, enabling automated code analysis and facilitating better understanding of program logic and dependencies.

What it Does

The primary function of this MCP server is to parse source code using Tree-sitter, a robust parser generator. This allows for the creation of accurate and detailed ASTs for a wide range of programming languages. From these ASTs, the server can then derive crucial information such as function calls, variable scopes, and control flow structures. This data is instrumental in building comprehensive call graphs, which visually represent the relationships and dependencies between different parts of a program.

Key Features

Who it's For

This tool is specifically designed for developers, AI engineers, and researchers who require sophisticated code analysis capabilities. It is particularly useful for: