Back to Home
veelenga icon

claude-mermaid

Verified Safe

by veelenga

Overview

Provides an MCP server for rendering Mermaid diagrams in Claude Code with live reload, multiple save formats, and interactive previews.

Installation

Run Command
claude-mermaid

Environment Variables

  • CLAUDE_MERMAID_LOG_LEVEL

Security Notes

The server implements strong security practices including Content Security Policy (CSP) headers for web previews and robust path validation (`validateSavePath`, `validatePreviewId`) to prevent path traversal attacks when saving or accessing diagrams. `execFile` is used for rendering diagrams via `mermaid-cli`, which is generally safer than `exec`. Input parameters for `mermaid-cli` are sanitized or enum-restricted, mitigating command injection risks. No hardcoded secrets or obvious malicious patterns were found. The primary attack surface is through the `mermaid-cli` itself and the interpretation of diagram code, which is an inherent risk when rendering user-provided code, but not directly attributable to server vulnerabilities.

Similar Servers

Stats

Interest Score50
Security Score9
Cost ClassMedium
Avg Tokens500
Stars44
Forks8
Last Update2026-01-19

Tags

MermaidDiagramsLive ReloadMCP ServerClaude CodeDevelopment Workflow