SkillTotal

Is Mermaid MCP server safe?

mcp-mermaid is an AI npm_package analyzed by SkillTotal's deterministic static scanner. The scan found no malicious indicators, though 3 risky constructs are reported for review. It can: filesystem write and install time execution — capabilities are what the code can do, not a verdict on intent. Risk score 0/100 (low).

mcp-mermaid 0.4.1

npm_package · https://github.com/hustcc/mcp-mermaid
LOW
0
/ 100 malicious-risk
Snapshot · scanned Jun 20, 2026 · mcp-mermaid@0.4.1 · engine 0.18.0 / ruleset 19
No malicious indicators - review capabilities before installing
Notable — review in context (capabilities are not malware):
  • npm install-time lifecycle hook
  • Node.js filesystem write/delete
  • npm prepare hook

No malicious indicators found by static analysis.

Capabilities — what this component can do (not a risk score):
filesystem writeinstall time execution

Findings (3)

HIGHnpm install-time lifecycle hookST-INSTALL-NPM

package.json runs scripts automatically when the package is installed.

"postinstall": "playwright install --with-deps chromium"

Why it matters: Install scripts are a favorite supply-chain foothold — they execute on every machine that installs the package.

Fix: Inspect the hook command. Install-time scripts are a common supply chain execution vector; ensure they do nothing beyond a documented build step.

MEDIUMNode.js filesystem write/deleteST-FS-NODE-WRITE

The component writes or deletes files on disk.

fs.writeFileSync(filePath, screenshot);
fs.writeFileSync(cssTmpPath, cssContent);

Why it matters: Usually legitimate, but worth confirming the paths can't be controlled by untrusted input.

Fix: Confirm which files are written/deleted and that paths cannot be influenced by untrusted input.

MEDIUMnpm prepare hookST-INSTALL-NPM-PREPARE

package.json has a 'prepare' script (runs on git/local installs and before publishing).

"prepare": "husky && npm run build",

Why it matters: Usually a build step, but confirm it doesn't fetch or run remote code.

Fix: Usually a legitimate build step; confirm it only builds and does not fetch or execute remote code.

Check your own component

Run the same evidence-backed scan on any MCP server, agent skill, or package.

Scan your own component

Or get notified if this component's risk changes:

How we determine this: deterministic static analysis (regex + AST), evidence-anchored, no code execution. Methodology →