MCPVault

get_abstract_syntax_tree

MCP tool from MCP by semgrep

Output the Abstract Syntax Tree (AST) of code

How to use it

get_abstract_syntax_tree is exposed by the MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the get_abstract_syntax_tree tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.

Install MCP

$uvx semgrep-mcp # see --help for more options
FULL MCP LISTING