drawler-mcp

v0.1.7
drawler-mcp Checked 2 days ago Published 13 days ago

MCP server for Drawler (drawler.9tools.net): let Claude, Codex, Cursor… draw workflows, mind maps, ERD diagrams live on your canvas via peer-to-peer share

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

drawler_connect Join a Drawler share room

Join a Drawler live-share room to draw directly on the user's canvas. Needs the "Edit link" ["Link được sửa"] the user copies from the Share button. The owner must click "Allow edit" ["Cho sửa"] in the app; this tool waits up to 2 minutes.

ParameterTypeDescription
link *stringLink like https://<domain>/share/<room id>/<key>
namestringDisplay name in the room, default "AI"

drawler_status Connection status

Show where drawing goes (share room or offline), the current permission, and whether the request was approved.

drawler_chat_read Read / wait for room messages

Read new messages in the share room chat (users send drawing/editing requests here). If there are none, waits until one arrives or wait_seconds runs out (default 45). This is the only way to receive the next request: if it times out with no message, call it again — do not end your turn. Returned messages are marked as read.

ParameterTypeDescription
historyintegerAlso return the last N messages (including read ones) for context
wait_secondsintegerMax seconds to wait for new messages (0–600), default 45. 0 = read only, no waiting

drawler_chat_send Send a room message

Send a message to the share room chat: answer the user, report that drawing is done, or ask when a request is unclear. Keep it short and use the user's language. Always call drawler_chat_read afterwards to wait for a reply.

ParameterTypeDescription
text *stringMessage text
reply_tostringMessage id (from drawler_chat_read) to quote in the reply

drawler_disconnect Leave the share room

Leave the share room. Drawing tools then work on the offline diagram.

drawler_get_diagram Read the current diagram

Return the diagram type, shapes (id, kind, label, position, size, columns…) and connectors. Call before editing to get ids.

ParameterTypeDescription
rawbooleantrue: return the raw app JSON instead of the summary

drawler_list_shapes List shape kinds

List the "kind" values available when adding shapes to a diagram type.

ParameterTypeDescription
typestringDefault: the current diagram type

drawler_new Switch / create diagram type

Change the diagram type (workflow, mindmap, usecase, database, mongodb). In a share room: if the owner's diagram is empty its type is changed in place, otherwise the owner creates a new diagram (own id) of that type and keeps the old one. Offline: creates an empty diagram. clear=true wipes that canvas.

ParameterTypeDescription
type *string
clearboolean

drawler_draw_text Draw a whole diagram from text

Fastest way to draw a whole diagram. Switches to the right diagram type based on format: - mermaid → workflow (flowchart TD/LR, A[Process] --> B{Condition} -->|Yes| C([End]), subgraph becomes a group frame) - outline → mindmap (Markdown outline: "# Topic", "- Branch", " - Sub-idea") - usecase → usecase (one line per actor "Actor: use case 1, use case 2"; "System: Name"; "A include B") - sql → database (CREATE TABLE … PRIMARY KEY / REFERENCES / ALTER TABLE … FOREIGN KEY / CREATE TYPE … AS ENUM) - mongo_json → mongodb ({"users":[{…}], "posts":[{…}]} or an array of documents)…

ParameterTypeDescription
format *string
text *string
modestringDefault replace

drawler_add Add shapes and connectors

Add shapes (nodes) and connectors (edges) to the current diagram in one call. Each shape can have a "ref" (temporary name) that edges in the same call can reference; edges can also use existing ids. Without x/y, shapes are laid out in layers along the connectors, below (or to the right of) the existing diagram. Mind map: just label + parent (id/ref of the parent branch), positions are computed. Database/MongoDB: kind table/collection/enum + columns; connect tables with sourceColumn/targetColumn (FK column → PK column). Call drawler_list_shapes to see the kinds.

ParameterTypeDescription
directionstringLayout direction for shapes without coordinates
edgesarray
nodesarray

drawler_update Update shapes / connectors

Change a shape's text, color, note, size, position or columns; a connector's label, line style, arrow or direction. Send only the fields to change.

ParameterTypeDescription
edgesarray
nodesarray

drawler_delete Delete shapes / connectors

Delete by id. Deleting a shape also deletes its connectors, the shapes inside a group frame, and child branches (mind map).

ParameterTypeDescription
ids *array

drawler_relayout Re-layout

Tidy up positions along the flow (TB: top to bottom, LR: left to right). Mind maps are laid out as a two-sided tree. Group frames and their contents stay as they are.

ParameterTypeDescription
directionstring

drawler_export_file Export diagram to file

Write the current diagram to a Drawler .json file (open it with the "Open" button in the app). Works offline too.

ParameterTypeDescription
path *stringFile path, e.g. ./login-flow.json