Chalkline / Guides / Use Chalkline with AI

Let your AI assistant draw diagrams with Chalkline

AI assistants describe diagrams well but cannot draw them. Connect Chalkline as an MCP tool and they hand you real, editable diagrams with a link. Setup takes a minute and needs no key.

Updated 7 November 2026 · 2 minute read

What you get

Ask in plain words, for example:

  • "Draw a flowchart of our refund process."
  • "Make a sequence diagram of the OAuth login."
  • "Turn these CREATE TABLE statements into an ER diagram."
  • "Chart this CSV as a bar chart."
  • "Turn this Python function into a flowchart."

The assistant answers with a link that opens the diagram in Chalkline, ready to edit, a read only view link, an SVG picture and a short description. Nothing is stored on any server: the diagram travels inside the link.

Connect it

Claude (claude.ai and the desktop app)

Open Settings → Connectors → Add custom connector and enter:

https://chalkline.in/mcp

Claude Code

claude mcp add --transport http chalkline https://chalkline.in/mcp

Cursor, Windsurf and other MCP clients

Add this to the client's MCP settings file (for Cursor, .cursor/mcp.json):

{ "mcpServers": { "chalkline": { "url": "https://chalkline.in/mcp" } } }

VS Code

Add to .vscode/mcp.json:

{ "servers": { "chalkline": { "type": "http", "url": "https://chalkline.in/mcp" } } }

Run it on your own computer

Prefer everything local? With Node 18 or newer:

{ "mcpServers": { "chalkline": { "command": "npx", "args": ["-y", "https://chalkline.in/chalkline-mcp.tgz"] } } }

The tools

ToolWhat it does
create_diagramFlowchart, sequence, class, ER, state, Gantt, timeline, mind map, network, SQL, D2 or PlantUML from text
create_chartLine, bar, scatter, pie, donut or radar chart from a CSV table
code_to_flowchartFlowchart, call map or classes from Python, JavaScript, TypeScript, Java, C, C++ or Go
convert_diagramTo SVG, TikZ, draw.io, Excalidraw, Mermaid or Chalkline JSON
describe_diagramDescribes a shared Chalkline board in words
list_templates, use_templateStarts from a ready made template

How it works

From a question to an editable diagramFrom a question to an editable diagramYouAI assistantChalkline MCP toolLink with the diagram insideChalkline editor
From a question to an editable diagramOpen this example in Chalkline →

The assistant writes diagram text, Chalkline lays it out and packs it into a link, and you open the link to see and edit it. The online server keeps no data, needs no account and no API key.

Tips for better results

  • Say which kind of diagram you want: "a sequence diagram", "a top to bottom flowchart".
  • Give the steps or the code; the assistant fills in the rest.
  • Ask for changes in words ("make the error path red", "add a cache"), or open the link and change it yourself.
  • Ask for convert_diagram to TikZ when the figure goes into a LaTeX paper.
See what the tools produceOpen the editor with a diagram built from code
Open the example

Privacy

Diagrams are not saved by the server. Links contain the diagram itself, so only people you send a link to can see it. For code, code_to_flowchart returns a link and the code is parsed on the device that opens it. More about the server on the MCP server page. New to MCP? Read MCP servers for diagrams, see how to make Claude draw diagrams, or compare Excalidraw MCP alternatives.