The Diagrams.so MCP server exposes the API as Model Context Protocol tools, so an AI agent can generate, review, fix, edit, and export diagrams as part of a larger task without you writing any HTTP. It ships on npm and installs with a single command.

Install

Restart your client, then ask: “Generate an AWS 3-tier web app diagram and show me the warnings.” If this machine is not connected yet, the first tool call replies with a link. Open it, press Approve, and ask again. No terminal is needed, which is what makes this work in Claude Desktop.
Run npx @diagrams-so/mcp install to print ready-to-paste config for Claude Code, Claude Desktop, and Cursor.
Installing the package globally gives you a shorter command:
npx @diagrams-so/mcp <command> works without installing anything, and the original diagrams-so-mcp name still works.

Commands

A one-click .mcpb bundle for Claude Desktop is distributed through the MCP registry and the Claude Desktop extensions directory. It does not ask for an API key: install it, then connect on first use. Until it is listed there, use the npx command above, which works in every MCP client from the public npm package.

Configuration

Prefer login. It stores a scoped, revocable, 90-day credential outside your client config. Never share a key or paste it into a chat.

What the agent can do

The server provides 23 tools covering the full API. Reads and exports are free; generate, edit, fix, re-layout, and fork cost credits, attributed to source="mcp" in your usage history. See the complete Tools reference for every tool and example prompts.

Next steps

Tools reference

All 23 tools, grouped, with example prompts.

Authentication

How keys and scopes work.