Koskamo

ast-grep MCP

This MCP server wraps the ast-grep CLI tool, enabling AI agents to perform fast, polyglot code structural search, linting, and rewriting at scale. It allows agents to execute ast-grep commands to find patterns, analyze code quality, and apply rewrites across large codebases using a Rust-based engine.

Package and access

Local package with source-attributed installation metadata. Koskamo does not execute packages during review.

ast-grep MCP logo, by dgageotCommunity listingLocal stdioSource reviewed; not executedPublished by dgageot
Vendor documentation

What its tools do

1 tool, grouped by the hints the source reports. Hints are self-declared, not verified behavior.

Not annotated (1)

0 of 1 have a description · 0 of 1 declare behavior hints

Checks and signals

Each line is separate evidence, not a trust score.

  • Popularity 5 GitHub stars

What you can do with it

  • Perform structural code search across multiple languages
  • Run linting checks on codebases
  • Apply code rewrites based on pattern matching

Source and maintenance

Community listingApache-2.0
Last repository push
Maintenance checked

Packages and installation

Source-provided package data. Koskamo has not executed or live-probed this package.

mcp/ast-grep@sha256:5fc3f2e9dcf2c019e92662f608b8d89e12134ed6d91e6f5461de6efd506a1e72

oci
mcp/ast-grep@sha256:5fc3f2e9dcf2c019e92662f608b8d89e12134ed6d91e6f5461de6efd506a1e72 package definition
{
  "transport": "stdio",
  "identifier": "mcp/ast-grep@sha256:5fc3f2e9dcf2c019e92662f608b8d89e12134ed6d91e6f5461de6efd506a1e72",
  "registryType": "oci",
  "registryBaseUrl": "https://registry-1.docker.io"
}

Tools

Reported by the attributed source; not independently observed by Koskamo.

ast-grep
Reported by the attributed source; not independently observed by Koskamo.
ast-grep input schema
{
  "type": "",
  "required": null,
  "properties": null
}

Maintenance history

Public check and source-refresh events. Editorial and ownership records remain private.

  • · repository · passed · metadata changed · updated
  • · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "mcpServers": {
    "ast-grep-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "mcp/ast-grep@sha256:5fc3f2e9dcf2c019e92662f608b8d89e12134ed6d91e6f5461de6efd506a1e72"
      ]
    }
  }
}

Cline

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "mcpServers": {
    "ast-grep-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "mcp/ast-grep@sha256:5fc3f2e9dcf2c019e92662f608b8d89e12134ed6d91e6f5461de6efd506a1e72"
      ]
    }
  }
}

VS Code

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "servers": {
    "ast-grep-mcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "mcp/ast-grep@sha256:5fc3f2e9dcf2c019e92662f608b8d89e12134ed6d91e6f5461de6efd506a1e72"
      ]
    }
  }
}

Claude Desktop

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "mcpServers": {
    "ast-grep-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "mcp/ast-grep@sha256:5fc3f2e9dcf2c019e92662f608b8d89e12134ed6d91e6f5461de6efd506a1e72"
      ]
    }
  }
}

Let your agent find its tools

Find servers like ast-grep MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.