diagramsmith

v0.4.3
io.github.Zune2004/diagramsmith Checked 2 days ago Published 1 day ago

Draw Mermaid, hand-drawn and interactive HTML diagrams locally.

Values you need

VariableWhat it is
DIAGRAMSMITH_OUToptional Folder where diagrams are written (default: ~/diagrams)
CHROME_PATHoptional Path to Chrome or Edge if it is not found automatically

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add diagramsmith -- npx -y diagramsmith@0.4.0 mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "diagramsmith": {
      "args": [
        "-y",
        "diagramsmith@0.4.0",
        "mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "diagramsmith": {
      "args": [
        "-y",
        "diagramsmith@0.4.0",
        "mcp"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "diagramsmith": {
      "args": [
        "-y",
        "diagramsmith@0.4.0",
        "mcp"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.diagramsmith]
command = "npx"
args = ["-y", "diagramsmith@0.4.0", "mcp"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: render_mermaid, render_diagram, render_interactive, list_styles.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json