Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Audited from source

Ast Analyzer MCP server

by angrysky56/ast-mcp-serverMIT licenceAudited 8 Oct 2026 · source 7c59749259b1

PyPI ast-mcp-server★ 37
!CAUTIONGrade C · 79/100 · 8 Oct 2026 · 7c59749
37GitHub stars

Is it safe? With care — CAUTION, grade C (79/100). It exposes 2 tools: 0 read, 2 write and 0 destructive. The audit recorded 10 findings (0 critical, 0 high, 3 medium, 7 low). Maintainer's description: 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.

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “Ast Analyzer MCP server (angrysky56/ast-mcp-server)”. Retrieved 8 Oct 2026. https://modelsatlas.com/mcp/angrysky56/ast-analyzer

Trust audit

Audit 0.4.1 · full source read 8 Oct 2026

Trust score79/100!CAUTION C
0 critical0 high3 medium7 low0 info

10 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.

What the source does

  • FilesystemDeclared1 observation
  • NetworkDeclared3 observations
  • ShellDeclared3 observations
  • DependenciesPinnedNothing floats
  • SecretsNone foundNo keys in source

“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.

Five audit layers

LayerWhat we checkResult
L0 ProvenanceRepo owner, licence, archive status, activityPASS 2 findings
L1 Static sourceSecrets, path traversal, supply chainWARN 8 findings
L2 InstructionsPrompt injection and authority framing in docs and tool descriptionsPASS
L3 InventoryDeclared tools match the sourcePASS
L4 SandboxRun in isolation and watch behaviourSKIPPED

Provenance & runtime

Who published it, and what the audit could and could not run

Provenance

  • Repository owner angrysky56User accountAccount type recorded when we read the repository.
  • PackagePublished on PyPIast-mcp-server, no version recorded
  • LicenceMITFrom the repository, as read at the audited commit.
  • Last push8 months agoActivity of the repository when we read it.
  • Source commit read7c59749259b1The audit covers exactly this commit, read on 8 Oct 2026.

Runtime

  • Sandbox runNot run yetThis audit read the source only; it did not execute the server.
  • Tool inventory2 declaredRead from the source and classed read, write or destructive.

Every value here is read from the record's own repository and audit.Suggest a correction

Findings (10)

Sorted by severity

MEDIUMCode injectioncode.dynamic_import · ast_mcp_server/build_parsers.py:38
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
importlib.import_module(module_name)
Why
No further detail recorded for this rule.
Fix
—
MEDIUMCode injectioncode.dynamic_import · ast_mcp_server/build_parsers.py:61
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
module = importlib.import_module(module_name)
Why
No further detail recorded for this rule.
Fix
—
MEDIUMCode injectioncode.dynamic_import · ast_mcp_server/tools.py:71
F-02 Code injectionCWE-78 · CWE-94 · CWE-95Layer L1
module = importlib.import_module(module_name)
Why
No further detail recorded for this rule.
Fix
—
LOWInventory / provenanceinv.hidden_file · .trunk/configs/.markdownlint.yaml
F-13 Inventory / provenanceCWE-1104Layer L0
.markdownlint.yaml
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInventory / provenanceinv.hidden_file · .trunk/configs/.shellcheckrc
F-13 Inventory / provenanceCWE-1104Layer L0
.shellcheckrc
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInsecure cryptocrypto.weak_hash · ast_mcp_server/neo4j_client.py:99
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
ast_id = hashlib.md5(
Why
No further detail recorded for this rule.
Fix
—
LOWInsecure cryptocrypto.weak_hash · ast_mcp_server/neo4j_client.py:195
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
asg_id = hashlib.md5(
Why
No further detail recorded for this rule.
Fix
—
LOWInsecure cryptocrypto.weak_hash · ast_mcp_server/neo4j_client.py:284
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
analysis_id = hashlib.md5(
Why
No further detail recorded for this rule.
Fix
—
LOWInsecure cryptocrypto.weak_hash · ast_mcp_server/neo4j_client.py:292
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
func_id = hashlib.md5(
Why
No further detail recorded for this rule.
Fix
—
LOWInsecure cryptocrypto.weak_hash · ast_mcp_server/resources.py:29
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
return hashlib.md5(code.encode("utf-8"), usedforsecurity=False).hexdigest()
Why
No further detail recorded for this rule.
Fix
—

Tools it exposes

2 declared in source · 0 destructive

0 read2 write0 destructive
ToolRiskWhat it does
analyze_projectwriteRecursively analyze a project, generate reports, and optionaly sync to Graph DB.
analyze_source_filewriteAnalyze a single source file, save reports to disk, and optionally generate an AI summary.

Install

audited commit 7c59749

Read the findings first. The most severe is Code injection (medium) at ast_mcp_server/build_parsers.py.

One-click links open your editor with the config below filled in, exactly as the snippets show it. The audit covers commit 7c59749 only.

claude mcp add ast-mcp-server --env NEO4J_PASSWORD=${NEO4J_PASSWORD} --env OPENROUTER_API_KEY=${OPENROUTER_API_KEY} -- uvx ast-mcp-server

The command does not pin a version; the audit covers commit 7c59749259b1. Transport: not declared. Reads these environment variables: NEO4J_PASSWORD, OPENROUTER_API_KEY. Give it the narrowest token it needs.

Audit history

  1. !CAUTION C 79 / 100

    First audit · 7c59749259b1

README badge

For maintainers · updates on every re-audit

ModelsAtlas: CAUTION CMODELSATLASCAUTION · C
[![ModelsAtlas: CAUTION C](https://modelsatlas.com/mcp/angrysky56/ast-analyzer/badge.svg)](https://modelsatlas.com/mcp/angrysky56/ast-analyzer/)

The badge always shows the latest audit; a maintainer cannot pin an old verdict.

Other ratings

Cited, never blended into our score

No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.

Questions about Ast Analyzer MCP server

What is the Ast Analyzer 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.
What tools does Ast Analyzer expose?
2 in total: 0 read-only, 2 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Ast Analyzer safe to connect to an agent?
With care. The audit graded it C (79/100) and found 10 things worth knowing before you trust this server, listed below with the exact line each was found on.
What credentials does Ast Analyzer need?
It reads NEO4J_PASSWORD and OPENROUTER_API_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How current is this page?
The grade is for one exact copy of the source (7c59749259b1), read on 2026-10-08. The repository is watched and re-audited when it changes.

Sources

  • angrysky56/ast-mcp-server on GitHub — the source we read, its licence, stars and activityObserved · 8 Oct 2026
  • ModelsAtlas trust audit — CAUTION verdict for commit 7c59749259b1Observed · 8 Oct 2026

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.