About AST MCP
AST MCP is an MCP server published by matthew-brough in the Social category: a Rust-based Model Context Protocol server that exposes structural code intelligence from Tree-sitter, including AST parsing, code outlines, imports, functions, chunking, queries, and safe rewrite previews.
Recent commit activity is the strongest signal that reported issues will get attention.
Install
git clone https://github.com/matthew-brough/AST_MCPThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Tools (6)
ast_query(path, query, captures)raw tree-sitter S-expression — the escape hatch
Parameters not published.
file_outline(path, max_depth, include_docstrings, mode)the `Read` replacement — a file's shape, bodies elided. `mode="names"` returns names, lines and counts only
Parameters not published.
get_docstrings(path \symbols)`
Parameters not published.
get_symbol(name, path, mode)one definition. `name` is a symbol name, a key path (`services.web.ports`), or a heading slug
Parameters not published.
list_imports(path)dependency edges out of a file, plus exports where the language has them
Parameters not published.
search_symbols(query, kind, lang, group, path_glob, limit)find things by name across the repo
Parameters not published.
Ask AI
Ask AI about AST MCP
Powered by Claude · Grounded in docs
Security checks
6 checks have not been run yet.