icon for mcp server

Ast-grep 代码分析

STDIO

基于ast-grep的代码搜索分析工具

ast-grep MCP

This is an experimental MCP implementation using ast-grep CLI.

Prerequisite

  1. Installing ast-grep and uv
  2. Installing MCP client, preferably Cursor
  3. Clone this repo, install via uv
  4. Configure MCP json
{ "mcpServers": { "server-name": { "command": "uv", "args": ["--directory", "/path/to/repo", "run", "main.py"], "env": {} } } }
  1. Ask cursor ai to search your codebase!

MCP Now 重磅来袭,抢先一步体验