Chalkline / Guides / MCP server for diagrams

MCP servers for diagrams, explained simply

AI assistants can describe a flowchart perfectly and still hand you a wall of text. A diagram MCP server gives them a real drawing tool. Here is what MCP is, how a diagram server works, and how to connect one in about a minute.

Updated 14 November 2026 · 3 minute read

What MCP is, in one paragraph

MCP stands for Model Context Protocol. It is an open standard that lets an AI assistant use outside tools in a safe, predictable way. Think of it like USB for AI: any assistant that speaks MCP (Claude, Cursor, VS Code, Windsurf and many others) can plug into any tool that speaks MCP, without custom code for each pair.

An MCP server is the tool side of that plug. It tells the assistant "here are the things I can do, and here is what I need from you", and then does the work when asked.

What a diagram MCP server does

Without one, an assistant can only write diagram text, such as Mermaid, and hope your app renders it. With one, it can:

  • Draw a flowchart, sequence, ER, state or mind map diagram and lay it out properly.
  • Return something you can use: a picture, a file, or a link that opens the diagram ready to edit.
  • Convert a diagram to other formats, such as SVG, LaTeX TikZ or draw.io.
  • Read an existing diagram and describe it in words.
What happens when you ask for a diagramWhat happens when you ask for a diagramYouAI assistantDiagram MCP serverDraw our signup flowcreate_diagram with flowchart textEdit link, view link and SVGHere is your diagram
What happens when you ask for a diagramOpen this example in Chalkline →

Remote or local: which kind to use

There are two ways to run an MCP server, and the choice matters for setup and privacy.

Remote serverLocal server
Where it runsOn the internet, at an addressOn your own computer
SetupPaste one addressAdd a command to a settings file
NeedsA client that supports custom connectorsNode.js or similar on your computer
Works offlineNoYes
Best forclaude.ai, quick start, any deviceDevelopers, private code, offline work

How to connect the Chalkline diagram server

Chalkline offers both kinds, free and with no API key or account.

Remote, in claude.ai or the Claude desktop app: open Settings, then Connectors, then Add custom connector, and enter:

https://chalkline.in/mcp

Remote, in Claude Code:

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

Local, for Claude Desktop, Cursor, Windsurf and other clients, with Node 18 or newer:

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

The full list of clients, including VS Code, is in use Chalkline with AI.

What the tools are

Once connected, the assistant sees these tools and picks the right one by itself:

ToolUse it for
create_diagramFlowchart, sequence, class, ER, state, Gantt, timeline, mind map, network, SQL, D2 or PlantUML
create_chartLine, bar, scatter, pie, donut or radar chart from CSV
code_to_flowchartA flowchart from Python, JavaScript, TypeScript, Java, C, C++ or Go
convert_diagramSVG, TikZ, draw.io, Excalidraw, Mermaid or Chalkline JSON
describe_diagramA plain words description of a shared board
list_templates, use_templateStarting from a ready made template

Example prompts to try

  • "Draw a flowchart of how a support ticket is handled, top to bottom."
  • "Make a sequence diagram of a password reset by email."
  • "Here is my schema. Draw the ER diagram." (then paste your CREATE TABLE statements)
  • "Turn this function into a flowchart." (then paste the code)
  • "Convert that diagram to TikZ for my LaTeX paper."

Is it safe?

A good diagram server should be clear about what it keeps. Chalkline's online server stores nothing: each request is answered on its own, and the diagram is packed inside the link it returns. Only people you give the link to can open it. If you would rather nothing leaves your computer at all, use the local server.

As with any MCP server, only connect ones you trust, and read what a tool is about to do when your assistant asks for permission.

Choosing a diagram MCP server

Ask these questions of any server you are considering:

  1. Does it return something editable? A picture is nice; a diagram you can move and restyle is better.
  2. Which diagram kinds does it know? Flowcharts are common; ER, sequence, state and charts are not.
  3. Does it need an account or key?
  4. Where does my diagram go? Stored on a server, or carried in the link?
  5. Can I run it locally when I need privacy or offline use?

For a comparison with the Excalidraw and draw.io servers, see Excalidraw MCP alternatives. For step by step prompts in Claude, see how to make Claude draw diagrams.