
For developers ยท MCP server
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.
{
"mcpServers": {
"cloudsketch-ai": {
"command": "npx",
"args": [
"-y",
"cloudsketch-mcp"
],
"env": {
"CLOUDSKETCH_API_TOKEN": "csk_your_token"
}
}
}
}claude mcp add cloudsketch-ai -e CLOUDSKETCH_API_TOKEN=csk_your_token -- npx -y cloudsketch-mcp{
"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).
| Tool | What it does | Credits |
|---|---|---|
generate_diagram | Description, diagram type and audience โ Mermaid code and an edit link. 18 types. | 1 (2 for C4, mind maps, technical sequence) |
open_in_cloudsketch | Any Mermaid code โ a link that opens it in the editor. Nothing is uploaded. | None |
check_credits | Your plan and credits left today and this month. | None |
list_diagram_types | The 18 types and what each is for. | None |
Any client that supports the Model Context Protocol over stdio, including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot agent mode) and Windsurf.
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.
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.
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.