ast-grep-mcp

by isco0819

Not rated
GitHub

About

MCP server that exposes ast-grep (sg) as two tools for structural code search.

Details

Author
isco0819
Categories
Developer Tools, Search, Knowledge Base

Setup

Install ast-grep-mcp in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/isco0819/ast-grep-mcp

Follow the installation instructions in the repository README, then restart your MCP client.

MCP server that exposesast-grep(sg) as two tools for structural code search.

# via npm npm i -g @ast-grep/cli # via cargo cargo install ast-grep
# from this directory npm install node src/index.js # starts MCP server on stdio # or via npx after publish: # npx ast-grep-mcp

Structural code search using an ast-grep pattern.

Returns:JSON array of{ file, line, match, snippet }

Use ast_search with lang=ts, pattern=console.log($MSG), dir=./src

~/Library/Application Support/Claude/claude_desktop_config.json

{ "mcpServers": { "ast-grep": { "command": "node", "args": ["/absolute/path/to/ast-grep-mcp/src/index.js"] } } }
{ "mcpServers": { "ast-grep": { "command": "node", "args": ["/absolute/path/to/ast-grep-mcp/src/index.js"] } } }
{ "mcpServers": { "ast-grep": { "command": "npx", "args": ["ast-grep-mcp"] } } }
$VAR – single node (any) $$$NODES – multiple nodes (spread) template $X – template literal containing X foo($A, $B) – function call with two args

Seeast-grep pattern syntaxfor full docs.

This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.

Semantic code search for AI agents without indexing your codebase or storing any data. Fast and accurate.

Create and read feature flags, review experiments, generate flag types, search docs, and interact with GrowthBook's feature flagging and experimentation platform.

Word search, crossword, and sudoku generator MCP server with printable PDF worksheets, themed word banks, and verifiable LLM evals. Local-first, from the makers of puzzletide.com.

Official MCP server for Stimulsoft Reports & Dashboards documentation. Semantic search across FAQ, Programming Manual, Server/User Manual, and Server/Cloud API for .NET, WPF, Avalonia, WEB, Blazor, Angular, React, JS, PHP, Java, and Python platforms.

Searching and access your AI coding sessions from Claude Code, Gemini CLI, opencode, and OpenAI Codex.

Search Apple's Developer Documentation with smart search and wildcard support.

Search everything your terminal ever printed. Local MCP server over per-command recorded output: full-text search, exit codes, diffs, secret redaction. Built and maintained by an AI agent (Soren Achebe).

Let AI agents search, register, and manage domains via API

Search, compare, and get docs for 210+ APIs ranked by CLI and agent relevance

Provides semantic code search and codebase interaction features via the CodeAlive API.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.