diagrams-mcp
v0.3.1MCP server that lets agents read, draw and edit Diagrams in the open editor tab.
MCP server that lets agents such as Claude Code and Codex read, draw and edit flow diagrams in the Diagrams editor. Diagrams stay in your browser. The server runs on your machine and forwards each tool call to the open editor tab. Other agents: run npx -y -g diagrams-mcp as a stdio MCP server. The -g keeps npx working in projects that pin another package manager, such as bun.
Summary extracted from the README.
diagrams-mcp
MCP server that lets agents such as Claude Code and Codex read, draw and edit flow diagrams in the Diagrams editor.
Diagrams stay in your browser. The server runs on your machine and forwards each tool call to the open editor tab.
Setup
-
Add the server to your agent:
claude mcp add diagrams -- npx -y -g diagrams-mcpcodex mcp add diagrams -- npx -y -g diagrams-mcpOther agents: run
npx -y -g diagrams-mcpas a stdio MCP server. The-gkeeps npx working in projects that pin another package manager, such as bun. -
Open the editor, click Connect agent in the top bar, then Connect. Allow it if your browser asks to let the site reach apps on your device.
Tools
list_diagrams, open_diagram, create_diagram, rename_diagram, read_diagram, draw_flow, edit_diagram, screenshot.
Options
AGENT_BRIDGE_PORT: port the editor connects to (default 7350).AGENT_BRIDGE_ORIGINS: extra editor origins to accept, comma-separated.