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.
What its tools do
1 tool, grouped by the hints the source reports. Hints are self-declared, not verified behavior.
Not annotated (1)
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
- 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
{
"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
{
"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.
Cursor
{
"mcpServers": {
"ast-grep-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"mcp/ast-grep@sha256:5fc3f2e9dcf2c019e92662f608b8d89e12134ed6d91e6f5461de6efd506a1e72"
]
}
}
}Cline
{
"mcpServers": {
"ast-grep-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"mcp/ast-grep@sha256:5fc3f2e9dcf2c019e92662f608b8d89e12134ed6d91e6f5461de6efd506a1e72"
]
}
}
}VS Code
{
"servers": {
"ast-grep-mcp": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"mcp/ast-grep@sha256:5fc3f2e9dcf2c019e92662f608b8d89e12134ed6d91e6f5461de6efd506a1e72"
]
}
}
}Claude Desktop
{
"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.