ast-mcp-server

ast-mcp-server

7

AST MCP Server is a Model Context Protocol server that provides tools for analyzing code through abstract syntax and semantic structures. It supports multiple languages and is compatible with Claude Desktop, offering advanced features like incremental parsing and AST diffing. The server enhances code analysis by integrating with Claude Desktop via MCP.

AST MCP Server

An MCP server offering code structure and semantic analysis using Abstract Syntax Trees (AST) and Abstract Semantic Graphs (ASG).

Features

  • Parse code into AST
  • Generate ASG from code
  • Analyze code structure and complexity
  • Supports Python and JavaScript
  • Compatible with Claude Desktop
  • Incremental parsing for large files
  • Enhanced scope handling
  • AST diffing for code version changes

Usage with Claude Desktop

  • Configure with claude_desktop_config.json
  • Supports AST-based code analysis tools

Available Tools

  • Basic and enhanced tools for parsing and analyzing code
  • Multi-language support through tree-sitter

How It Works

  • Connects to Claude Desktop via MCP
  • Utilizes local resources for code analysis