About Ast MCP Server
Ast MCP Server is an MCP server published by angrysky56 in the Developer Tools category: by transforming source code into a queryable Semantic Graph and a structured AST, this tool bridges the gap between "reading text" and "understanding structure." For an AI assistant, it provides the "spatial" awareness needed to navigate deep dependencies without getting lost in large files. Conduid read 22 tools from its source: analyze_and_cache, analyze_code, analyze_project, analyze_source_file, ast_diff_and_cache, diff_ast and 16 more. No package is published for it, so it installs from a source checkout.
The repository has 37 stars and 9 forks, is licensed MIT, and its last commit was on 10 Nov 2026. Conduid has no tagged release on record for it. It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include aiready, ast, codebase-exploration, codebase-navigation, ai-readiness and agent-grounding.
Install
git clone https://github.com/angrysky56/ast-mcp-serverTools (22)
analyze_and_cacheAnalyze code and cache the results for resource accessanalyze_codeAnalyze code structure and complexity| Parameter | Type | Description |
|---|---|---|
| code | string | |
| filename | string | |
| language | string |
analyze_projectRecursively analyze a project, generate reports, and optionaly sync to Graph DB.| Parameter | Type | Description |
|---|---|---|
| file_extensions | array | List of extensions to include (default: .py, .js, .ts, .tsx, .go) |
| include_summary | boolean | Whether to generate AI summaries for each file (default: True) |
| project_name * | string | Name of the project (for output grouping) |
| project_path * | string | Root directory to analyze |
| sync_to_db | boolean | Whether to sync nodes/edges to Neo4j (default: True) |
analyze_source_fileAnalyze a single source file, save reports to disk, and optionally generate an AI summary.| Parameter | Type | Description |
|---|---|---|
| code | string | |
| filename | string | |
| include_summary | boolean | |
| language | string | |
| output_folder | string | |
| project_name * | string |
ast_diff_and_cacheGenerate an AST diff and cache itdiff_astFind differences between two versions of code| Parameter | Type | Description |
|---|---|---|
| filename | string | |
| language | string | |
| new_code * | string | |
| old_code * | string |
find_node_at_positionLocate a specific node at a given line and column| Parameter | Type | Description |
|---|---|---|
| code | string | |
| column | integer | |
| filename | string | |
| language | string | |
| line | integer |
generate_and_cache_asgGenerate an ASG and cache it for resource accessgenerate_and_cache_enhanced_asgGenerate an enhanced ASG and cache itgenerate_asgGenerate an Abstract Semantic Graph from code| Parameter | Type | Description |
|---|---|---|
| code | string | |
| filename | string | |
| language | string |
generate_enhanced_asgGenerate an enhanced ASG with better scope handling| Parameter | Type | Description |
|---|---|---|
| code | string | |
| filename | string | |
| language | string |
list_transformation_examplesGet common ast-grep pattern examples for code modernization and refactoring.parse_and_cacheParse code into an AST and cache it for resource accessparse_and_cache_incrementalParse code incrementally and cache the resultsparse_to_astParse code into an Abstract Syntax Tree| Parameter | Type | Description |
|---|---|---|
| code | string | |
| filename | string | |
| language | string |
parse_to_ast_incrementalParse code with incremental support for faster processing| Parameter | Type | Description |
|---|---|---|
| code | string | |
| filename | string | |
| language | string | |
| old_code | string |
query_graphQuery nodes from saved graph by type/relationships. Returns matching nodes.| Parameter | Type | Description |
|---|---|---|
| depth | integer | |
| edge_types | array | |
| graph_path * | string | |
| mode | string | |
| node_id | string | |
| node_type | string |
search_code_patternsSearch for structural patterns in code using ast-grep.| Parameter | Type | Description |
|---|---|---|
| code * | string | |
| filename | string | |
| language | string | |
| pattern * | string |
semantic_searchSearch indexed content semantically. Returns matching nodes with relevance scores.| Parameter | Type | Description |
|---|---|---|
| limit | integer | |
| node_type | string | |
| project | string | |
| query * | string |
supported_languagesGet the list of supported programming languagestransform_code_patternsReplace structural patterns in code using ast-grep.| Parameter | Type | Description |
|---|---|---|
| code * | string | |
| filename | string | |
| language | string | |
| pattern * | string | |
| preview_only | boolean | |
| replacement * | string |
validate_ast_patternCheck if ast-grep pattern syntax is valid for the specified language.| Parameter | Type | Description |
|---|---|---|
| language * | string | |
| pattern * | string |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.1K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock.
- ✓No dynamic code executionScanned 19 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdioast_mcp_server/server.py:565
- Starts other programs
- 4 callsast_mcp_server/cli.py:59, ast_mcp_server/transformation_tools.py:76, ast_mcp_server/transformation_tools.py:143
- Outbound network calls
- 3 callsast_mcp_server/embeddings.py:65, ast_mcp_server/server_llm.py:57, ast_mcp_server/uss_agent.py:142
- Writes or deletes files
- 11 callsast_mcp_server/build_parsers.py:18, ast_mcp_server/output_manager.py:209, ast_mcp_server/resources.py:21
- Lockfile
- uv.lock
Pattern matches on the source text of 19 files: places to read, not proof of what the code does at run time.
README
The repository's README runs to about 1.1K words, fetched a month ago. The original in the repository is authoritative.
Read full README