Skip to content
VS Code

diagramsmith for VS Code

io.github.zune2004/diagramsmith

Draw Mermaid, hand-drawn and interactive HTML diagrams locally. No account, no API key.

client:VS Code transport:stdio runtime:npm

Install diagramsmith in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "diagramsmith-out",
      "description": "DIAGRAMSMITH_OUT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "chrome-path",
      "description": "CHROME_PATH",
      "password": true
    }
  ],
  "servers": {
    "diagramsmith": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "diagramsmith"
      ],
      "env": {
        "DIAGRAMSMITH_OUT": "${input:diagramsmith-out}",
        "CHROME_PATH": "${input:chrome-path}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

diagramsmith in other clients