ast-grep-mcp
ast-grep/ast-grep-mcpUpdated Apr 20014

RemoteLicense: NoneLanguage: Python

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!

Installation

Claude
Claude
Cursor
Cursor
Windsurf
Windsurf
Cline
Cline
Witsy
Witsy
Spin AI
Spin AI
Run locally with the following command:
Terminal
Add the following config to your client:
JSON
{
  "mcpServers": {
    "server-name": {
      "env": {},
      "args": [
        "--directory",
        "/path/to/repo",
        "run",
        "main.py"
      ],
      "command": "uv"
    }
  }
}

MCPLink

Seamless access to top MCP servers powering the future of AI integration.

© 2025 MCPLink. All rights reserved.
discordgithubdiscord