1. Conduid
  2. Developer Tools
  3. Ast MCP Server
MCP server · Developer Tools

Ast MCP Server

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.

58Fair

Scored 20 hours ago · breakdown

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

From source
git clone https://github.com/angrysky56/ast-mcp-server

Tools (22)

analyze_and_cacheAnalyze code and cache the results for resource access
analyze_codeAnalyze code structure and complexity
ParameterTypeDescription
codestring
filenamestring
languagestring
analyze_projectRecursively analyze a project, generate reports, and optionaly sync to Graph DB.
ParameterTypeDescription
file_extensionsarrayList of extensions to include (default: .py, .js, .ts, .tsx, .go)
include_summarybooleanWhether to generate AI summaries for each file (default: True)
project_name *stringName of the project (for output grouping)
project_path *stringRoot directory to analyze
sync_to_dbbooleanWhether 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.
ParameterTypeDescription
codestring
filenamestring
include_summaryboolean
languagestring
output_folderstring
project_name *string
ast_diff_and_cacheGenerate an AST diff and cache it
diff_astFind differences between two versions of code
ParameterTypeDescription
filenamestring
languagestring
new_code *string
old_code *string
find_node_at_positionLocate a specific node at a given line and column
ParameterTypeDescription
codestring
columninteger
filenamestring
languagestring
lineinteger
generate_and_cache_asgGenerate an ASG and cache it for resource access
generate_and_cache_enhanced_asgGenerate an enhanced ASG and cache it
generate_asgGenerate an Abstract Semantic Graph from code
ParameterTypeDescription
codestring
filenamestring
languagestring
generate_enhanced_asgGenerate an enhanced ASG with better scope handling
ParameterTypeDescription
codestring
filenamestring
languagestring
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 access
parse_and_cache_incrementalParse code incrementally and cache the results
parse_to_astParse code into an Abstract Syntax Tree
ParameterTypeDescription
codestring
filenamestring
languagestring
parse_to_ast_incrementalParse code with incremental support for faster processing
ParameterTypeDescription
codestring
filenamestring
languagestring
old_codestring
query_graphQuery nodes from saved graph by type/relationships. Returns matching nodes.
ParameterTypeDescription
depthinteger
edge_typesarray
graph_path *string
modestring
node_idstring
node_typestring
search_code_patternsSearch for structural patterns in code using ast-grep.
ParameterTypeDescription
code *string
filenamestring
languagestring
pattern *string
semantic_searchSearch indexed content semantically. Returns matching nodes with relevance scores.
ParameterTypeDescription
limitinteger
node_typestring
projectstring
query *string
supported_languagesGet the list of supported programming languages
transform_code_patternsReplace structural patterns in code using ast-grep.
ParameterTypeDescription
code *string
filenamestring
languagestring
pattern *string
preview_onlyboolean
replacement *string
validate_ast_patternCheck if ast-grep pattern syntax is valid for the specified language.
ParameterTypeDescription
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
Questions

About Ast MCP Server

How do I install Ast MCP Server?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Ast MCP Server safe to use with an AI agent?

Its trust score is 58 out of 100 (fair). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Conduid's scan of 19 source files found that it serves MCP over stdio, starts other programs (4 calls), makes outbound network calls (3 calls) and writes or deletes files (11 calls). Its dependencies are pinned by uv.lock. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Ast MCP Server still maintained?

Yes — the last commit was 21 days ago. The repository has 37 stars and 9 forks.

What tools does Ast MCP Server provide?

Conduid read 22 tools from the source: analyze_and_cache, analyze_code, analyze_project, analyze_source_file, ast_diff_and_cache, diff_ast, find_node_at_position, generate_and_cache_asg and 14 more. 14 of them publish their parameters, listed under Tools above.

What license is Ast MCP Server released under?

The repository declares the MIT license.