CloudSketch AI Logo
FeaturesTemplatesPricingEnterpriseAboutContactLog in
๐ŸŒ™โ˜€๏ธ
Log inStart free
Home/Features/MCP server

For developers ยท MCP server

Generate architecture diagrams from Claude, Cursor and VS Code

The CloudSketch AI MCP server lets your AI assistant draw accurate C4, cloud, ERD, UML, sequence and process diagrams from a plain-English description, without leaving your editor. You get Mermaid code to paste into your docs, and a link to edit the diagram or export it to PowerPoint, Word, PNG, SVG or PDF.

Ask things like

  • "Draw a C4 container diagram of our order service: React app, Node API, Postgres, Redis cache and Stripe."
  • "Make an ERD for a clinic booking system with doctors, patients, slots and payments."
  • "Sequence diagram of our UPI payment flow, for managers."
  • "Open this Mermaid in CloudSketch so I can export it to PowerPoint."

Set up in two minutes

  1. Get an API token.Sign in (a free account works), open Account โ†’ API tokens and create one. It's shown once.
  2. Add the server to your client. You need Node.js 18 or newer; the server has no other dependencies.

Claude Desktop, Cursor, Windsurf

{
  "mcpServers": {
    "cloudsketch-ai": {
      "command": "npx",
      "args": [
        "-y",
        "cloudsketch-mcp"
      ],
      "env": {
        "CLOUDSKETCH_API_TOKEN": "csk_your_token"
      }
    }
  }
}

Claude Code

claude mcp add cloudsketch-ai -e CLOUDSKETCH_API_TOKEN=csk_your_token -- npx -y cloudsketch-mcp

VS Code (.vscode/mcp.json)

{
  "servers": {
    "cloudsketch-ai": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "cloudsketch-mcp"
      ],
      "env": {
        "CLOUDSKETCH_API_TOKEN": "csk_your_token"
      }
    }
  }
}

Source code, other setups and the tool reference: github.com/cloudsketchai/cloudsketch-mcp (MIT licence).

Tools

ToolWhat it doesCredits
generate_diagramDescription, diagram type and audience โ†’ Mermaid code and an edit link. 18 types.1 (2 for C4, mind maps, technical sequence)
open_in_cloudsketchAny Mermaid code โ†’ a link that opens it in the editor. Nothing is uploaded.None
check_creditsYour plan and credits left today and this month.None
list_diagram_typesThe 18 types and what each is for.None
Get your API token โ†’How accurate is it?

Questions

Which assistants and editors does it work with?

Any client that supports the Model Context Protocol over stdio, including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot agent mode) and Windsurf.

What does a diagram cost?

The same as on the website: 1 credit, or 2 for C4, mind maps and technical sequence diagrams. A free account has 20 credits to start and 10 a month; Pro has 150 a month.

Can the token read my diagrams?

No. An API token can only generate diagrams with your credits and check how many are left. It cannot open your saved diagrams, billing or settings, and you can delete it at any time from your account.

Is my description stored?

The description is sent to CloudSketch AI to make the diagram, exactly as if you had typed it on the website, and the diagram is saved to your workspace. The open_in_cloudsketch tool sends nothing; it only builds a link.