Is Mermaid MCP server safe?
- npm install-time lifecycle hook
- Node.js filesystem write/delete
- npm prepare hook
What to do: Nothing here argues against installing it. Grant the capabilities it lists only if you expect the tool to need them.
Mermaid MCP server is an MCP server analyzed by SkillTotal's deterministic static scanner. The scan found no malicious indicators. It can: filesystem write, install time execution and mcp tools detected — capabilities are what the code can do, not a verdict on intent. Risk score 0/100 (low).
mcp-mermaid 0.4.1
Get notified when this component changes
Change alerts aren't live yet. Leave your email and we'll let you know when they launch. We use it only for this and delete it on request.
Automated static-analysis result. It can contain false positives and false negatives, and is not a claim about the intent of Mermaid MCP server's authors. Report a false positive.
Behavioral traits
How this component maps to the CSA agentic threat model. Descriptive — it never affects the risk score.
Findings (4)
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.
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.
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.
An MCP tool surface (manifest or tool definitions) was found.
const server = new McpServer(
server.server.setRequestHandler(ListToolsRequestSchema, async () => ({server.server.setRequestHandler(CallToolRequestSchema, async (request) => {const transport = new SSEServerTransport("/messages", res);const transport = new StdioServerTransport();
const transport = new StreamableHTTPServerTransport({Why it matters: Just context — review which tools it offers and their permissions.
Fix: Review the declared MCP tools and their permissions.
How attackers abuse these capabilities
Interactive labs on the attack class behind the rules above. They show the technique, not anything found in Mermaid MCP server.
Maintain Mermaid MCP server?
The free Claude Code plugin scans each npm, PyPI or MCP package with this report's open-source engine before the install command runs. It runs on your machine and needs no account.
Check your own component
Run the same evidence-backed scan on any MCP server, agent skill, or package.
Scan your own componentHow we determine this: deterministic static analysis (regex + AST), evidence-anchored, no code execution. Methodology →