ast-grep
MCP Serverby ast-grep · Added 5mo ago
Claude
362
Install
git clone https://github.com/ast-grep/ast-grep-mcpAdd to Claude
claude mcp add ast-grep-ast-grep-mcpQuick Setup Config
Copy & paste ready~/Library/Application Support/Claude/claude_desktop_config.json (macOS) %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"ast-grep": {
"command": "npx",
"args": [
"@modelcontextprotocol/ast-grep"
]
}
}
}Paste into your Claude Desktop config file, then restart Claude.
About
Bridges to the ast-grep code search tool for finding code patterns in projects using abstract syntax tree matching, enabling efficient code analysis and refactoring tasks.
Tags
AI & MLmcp-server