Install, authenticate once, then generate
1. Add the marketplace and install
The plugin bundles the MCP server, so one install gives you both the slash commands and thedocdiagram MCP tools.
docdiagram MCP server, the same per-server approval as any project’s .mcp.json. Approve it and the server starts automatically in every session.
2. Authenticate
Start a session and run the auth skill:https://app.docdiagram.com/settings/api-keys?cc=true in your browser. Click Generate code, copy the 16-character code, and paste it back when Claude prompts you.
The plugin writes the API key to ~/.docdiagram/config.yaml (readable only by you). The skills and the bundled MCP server both read this one file, so you authenticate once.
No API key set up yet? The auth flow mints one for you. You do not need to visit the dashboard first.
3. Generate your first diagram
Other MCP clients
Not using Claude Code? Skip the plugin and run the MCP server straight from PyPI:/docdiagram:auth once to write the shared config, or by setting DOCDIAGRAM_API_KEY in your client’s MCP environment.
Sign out
To remove your stored credentials, run/docdiagram:logout. It deletes ~/.docdiagram/config.yaml.
Next
Standalone diagrams
Prompt to image, no repo needed.
Embedded diagrams
Diagrams that live in your docs repo.