diagramsmith
v0.4.3Draw Mermaid, hand-drawn and interactive HTML diagrams locally.
Values you need
| Variable | What it is | |
|---|---|---|
DIAGRAMSMITH_OUT | optional | Folder where diagrams are written (default: ~/diagrams) |
CHROME_PATH | optional | 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 mcpAdd 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
- 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).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: render_mermaid, render_diagram, render_interactive, list_styles.
- 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