Skip to main content
Glama
762,312 tools. Updated 2026-11-10 06:20

"Using ast-grep to Modify Code Programmatically" matching MCP tools:

  • Search Code-Fundi repositories with semantic search, grep over docs, or grep over code. Returns matching files with similarity scores, paths, and optional documentation.
    MIT
  • Apply structured operations to a PART 12 Carve AST, validate them, and get the patched AST with canonical Carve source.
    MIT
  • Replace text only within a named code symbol's body using AST scoping; changes stay confined to that symbol, leaving other code untouched.
    MIT
    Destructive

Matching MCP Servers

  • A
    license
    A
    quality
    B
    maintenance
    Enables AI assistants to search and analyze codebases using Abstract Syntax Tree (AST) pattern matching with ast-grep. Supports structural code search, pattern testing, and AST visualization across multiple programming languages.
    4
    489
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Enables structural code search and refactoring across 20+ programming languages using ast-grep patterns, with safe dry-run mode and flexible filtering.
    1
    MIT

Matching MCP Connectors

  • Parallel regex across all Boolsai scans — discover new vendor patterns, niche signals. 4 tools.

  • Math MCP server for primality, factorization, Java templates, and integer multiplication.

  • Find functions, classes, and routes by name, architectural layer, or module, returning matching symbols with type, file, and layer. Use it instead of text grep to locate code by purpose.
    MIT
  • Read a specific symbol's source code by name from a file. Uses AST parsing to find the exact definition, with optional context lines for focused inspection.
    MIT
  • Find all references to a symbol across files using AST analysis, distinguishing definitions from usages.
    MIT
  • Rename identifiers across code files in Patchloom using AST-aware edits that skip strings and comments, keeping references consistent.
    MIT
    Destructive
  • Analyzes Python source code via AST deconstruction to detect unsafe constructs, shell injection, dynamic eval, and socket egress before autonomous tool calls execute.
    Apache 2.0
  • Perform structural PHP code search with AST queries to detect anti-patterns like ->setX(null) calls and method chains missing null guards.
    MIT
  • Detect resource leaks, security vulnerabilities, and logic flaws in Python code via static AST analysis. Use before committing or running to catch defects without executing code.
    MIT
  • Scan a repository for potential bugs using AST pattern matching across 10 languages. Detects issues like mutable default arguments, bare excepts, unreachable code, and empty catch blocks.
    MIT
  • Find code by syntax tree shape, not text. Use patterns like 'console.log($A)' for structural matches, ignoring whitespace and variable names. Ideal for lint-style queries and automated refactors.
    MIT
  • Detect and repair hallucinated imports, identifiers, and method calls in AI-generated Python code by comparing candidate code against workspace AST symbol tables and applying AST corrections.
    MIT
  • Debug code rules by inspecting syntax tree structures. Use to discover correct syntax kinds and analyze how patterns are interpreted in ast-grep.
    MIT
  • Match code by structural shape across 19 languages using AST metavariables, not text. Enables cross-language structural queries that grep cannot handle.
    MIT
  • Search source code with AST context to understand how matches fit within functions, classes, and code structures.
    MIT
  • Search code using structural pattern matching to find specific syntax patterns across multiple programming languages for refactoring, security auditing, and code analysis.
    MIT