Developer Tools · Education & Learning

Ast MCP Server logo

Ast MCP Server

angrysky56/ast-mcp-server

An MCP (Model Context Protocol) server that provides code structure and semantic analysis capabilities through Abstract Syntax Trees (AST) and Abstract Semantic Graphs (ASG).

Install

Client configuration

{
  "mcpServers": {
    "AstAnalyzer": {
      "command": "uv",
      "args": [
        "--directory",
        "/home/ty/Repositories/ai_workspace/ast-mcp-server/ast_mcp_server",
        "run",
        "server.py"
      ]
    }
  }
}
GitHub stars
2
Category
Developer Tools, Education & Learning
License
MIT
Updated
Oct 6, 2026

Features

  • Parse code into Abstract Syntax Trees (AST)

  • Generate Abstract Semantic Graphs (ASG) from code

  • Analyze code structure and complexity

  • Support for multiple programming languages (Python, JavaScript, TypeScript, Go, Rust, C/C++, Java)

  • Compatible with Claude Desktop and other MCP clients

  • Incremental parsing for faster processing of large files

  • Enhanced scope handling and more complete semantic analysis

  • AST diffing to identify changes between code versions

  • Resource caching for improved performance

Tools (14)

  • parse_to_ast

    Parse code into an Abstract Syntax Tree

  • generate_asg

    Generate an Abstract Semantic Graph from code

  • analyze_code

    Analyze code structure and complexity

  • supported_languages

    Get the list of supported programming languages

  • parse_and_cache

    Parse code into an AST and cache it for resource access

  • generate_and_cache_asg

    Generate an ASG and cache it for resource access

  • analyze_and_cache

    Analyze code and cache the results for resource access

  • parse_to_ast_incremental

    Parse code with incremental support for faster processing

  • generate_enhanced_asg

    Generate an enhanced ASG with better scope handling

  • diff_ast

    Find differences between two versions of code

  • find_node_at_position

    Locate a specific node at a given line and column

  • parse_and_cache_incremental

    Parse code incrementally and cache the results

  • generate_and_cache_enhanced_asg

    Generate an enhanced ASG and cache it

  • ast_diff_and_cache

    Generate an AST diff and cache it

Details on this page are taken from the project's README. Open README

Supported clients

Clients mentioned in this server's README:

View all
Claude Desktop logo

Claude Desktop

Desktop · Freemium · Proprietary

Anthropic's official Claude AI desktop application. Supports MCP servers to extend functionality.

WindowsMacOS

Related MCP servers

More servers
Playwright logo

Playwright

microsoft/playwright

72.2k

Playwright is a framework for web automation and testing. It drives Chromium, Firefox, and WebKit with a single API — in your tests, in your scripts, and as a tool for AI agents.

Developer Tools
repomix logo

repomix

yamadashy/repomix

15.2k

Repomix is a tool that packs a codebase into an AI-friendly format, supporting local and remote repository processing and providing code compression, security checks and multiple output formats.

Developer Tools
UI-TARS-desktop logo

UI-TARS-desktop

bytedance/UI-TARS-desktop

12.9k

TARS is ByteDance's multimodal AI agent stack, shipping two projects: Agent TARS (a CLI and Web UI agent built on MCP) and UI-TARS-desktop (a desktop GUI agent).

Developer Tools
blender logo

blender

ahujasid/blender-mcp

10.6k

formerly blender-mcp — the PyPI package is now mcp-for-blender. Existing setups keep working; no config change is required. Read more.

Developer Tools
Playwright Browser Automation logo

Playwright Browser Automation

microsoft/playwright-mcp

9.2k

A Model Context Protocol (MCP) server that provides browser automation capabilities using Playwright. This server enables LLMs to interact with web pages through structured accessibility snapshots, bypassing the need for screenshots or visually-tuned models.

Developer Tools
2344 logo

2344

comet-ml/opik

7k

Opik is the open-source LLM observability and evaluation platform for AI agent tracing, LLM evaluation, prompt management, and production monitoring. Built by Comet. Apache-2.0 licensed, free to self-host the full platform, with 20,000+ GitHub stars.

Developer Tools