ast-grep

Bridges to the ast-grep code search tool for finding code patterns in projects using abstract syntax tree matching, enabling effic

ast-grep 432
Claude CodeClaude DesktopGeneric
View source ↗

ast-grep MCP provides a bridge to the ast-grep code search tool, enabling AI assistants to find code patterns in projects using abstract syntax tree matching. The implementation exposes a single tool that accepts a pattern, project folder, and optional language parameter, then executes the ast-grep CLI command and returns the results as structured JSON. This server is particularly valuable for developers who want to leverage AI assistants for code analysis, pattern matching, and refactoring tasks without leaving their development environment.

Source

Repository: https://github.com/ast-grep/ast-grep-mcp

Maintain ast-grep?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

ast-grep on getagentictools
[![ast-grep on getagentictools](https://getagentictools.com/badge/mcp/ast-grep-ast-grep-mcp.svg)](https://getagentictools.com/mcp/ast-grep-ast-grep-mcp?ref=badge)