Skip to main content
Claude Code calls DocDiagram, which produces either an image file or a diagram bound to a docs page

One install gives you two ways to make diagrams from the terminal

DocDiagram ships a Claude Code plugin so you can create diagrams from where you already work: the command line. Install it once, authenticate once, and you get slash commands plus a bundled MCP server. There are two workflows, and you can use either or both.

Standalone diagrams

Prompt in, image file out, saved to your current folder. No docs project, no repo. The fastest path.

Embedded diagrams

Create a diagram bound to an MDX page in your docs repo, then refine and re-sync it over time.

What you get

  • Slash-command skills like /docdiagram:diagram and /docdiagram:create that you call inside a Claude Code session.
  • A bundled MCP server (docdiagram) that exposes the same capabilities as tools, so any MCP-aware client can use them.
  • One shared credential. The skills and the MCP server both read ~/.docdiagram/config.yaml, written once by /docdiagram:auth.

Which workflow should I use?

Next

Set up the plugin

Install and authenticate in two commands.