DrawIt MCP Server
Connect Claude, GPT-4, Cursor, or any MCP-compatible AI agent to a private diagram workspace. 60+ design tools, authenticated via a dashboard API key.
Connect Your Agent
The DrawIt MCP server is hosted at https://chamuka.ai/api/mcp. Authentication uses a personal API key from your dashboard. No session ID required.
Connect with API Key
- Sign in and open the dashboard.
- Under Developer Tools, click Generate and copy your
sk_drawit_live_...key (shown once). - Paste the key into your agent's MCP config as
Authorization: Bearer sk_drawit_live_....
https://chamuka.ai/api/mcp
Add to .mcp.json in your project root, or run claude mcp add.
{
"chamuka-drawit": {
"type": "http",
"url": "https://chamuka.ai/api/mcp",
"headers": {
"Authorization": "Bearer sk_drawit_live_YOUR_KEY_HERE"
}
}
}Replace sk_drawit_live_YOUR_KEY_HERE with your key from the dashboard. Keep your API key private.
How It Works
Start with create_design({ name }) for a new diagram, then get_canvas_url() to share the live /design/ editor link with the user.
Advanced: Multiple Workspaces
By default, all tool calls use your account's default workspace. To target a specific canvas, pass an optional session identifier:
mcp-session-idheader on the HTTP connection_sessionargument on any tool call
Claude.ai OAuth
The Claude.ai MCP connector uses OAuth instead of a dashboard API key. When prompted, sign in with your Chamuka account. The connector discovers auth endpoints via /.well-known/oauth-protected-resource.
For Claude Code, Cursor, Hermes, and other HTTP MCP clients, use a dashboard API key as described above. OAuth is not required.
Tool Reference (60+)
All tools are available over the JSON-RPC 2.0 MCP protocol. Below is the full list grouped by category.
create_designlist_designsopen_designget_canvas_urlget_canvas_infoset_canvaszoom_to_fitget_diagram_stateswitch_pageadd_pagerename_pagecopy_pagecreate_elementadd_elementsedit_elementdelete_elementmove_elementsduplicate_elementsgroup_elementsungroup_elementsget_elementfind_elementscreate_framedefine_componentadd_componentinstantiate_componentapply_variantset_instance_propalign_elementsauto_layoutsmart_arrangeboolean_opget_bounding_boxmeasure_distanceapply_themeformat_textset_style_batchset_tokenswitch_token_modequery_spatialquery_neighborsquery_overlapscreate_from_mermaidcreate_from_templategenerate_diagramget_diagram_templatesget_diagram_guidecreate_annotationset_interactionget_selectioncreate_snapshotlist_snapshotsrestore_snapshotdelete_snapshotdiff_snapshotverify_editget_undo_historyundoredocritique_diagramaudit_diagramexport_diagramexport_as_mermaidexport_as_dotexport_to_pngexport_to_pptxexport_to_pdfexport_to_driveexport_batchgenerate_imagedescribe_scenesearch_iconsget_fontsscaffold_diagramclear_diagramlist_commandsget_recent_filesadd_recent_fileclear_recent_filesclear_conversationscreenshot_urlRun Locally
Prefer to run the MCP server locally? Install the CLI and use drawit serve.
# Install the CLI npm install -g @chamuka-labs/drawit-cli # Start the HTTP MCP server on port 3847 drawit serve # Claude Desktop (stdio transport) drawit serve --stdio # Custom port drawit serve --port 4000
Then configure your agent to point at http://localhost:3847:
{
"chamuka-drawit": {
"type": "http",
"url": "http://localhost:3847"
}
}Capabilities
The DrawIt MCP server implements the Model Context Protocol (MCP) over streamable HTTP. It is compatible with any MCP-capable client including Claude Code, Claude Desktop, Cursor, and custom agent frameworks.
Authentication is handled via your dashboard API key in the MCP client config. Call create_design before mutations on a fresh session, then get_canvas_url() to open the live design editor in the browser.