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.
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 server | Local server | |
|---|---|---|
| Where it runs | On the internet, at an address | On your own computer |
| Setup | Paste one address | Add a command to a settings file |
| Needs | A client that supports custom connectors | Node.js or similar on your computer |
| Works offline | No | Yes |
| Best for | claude.ai, quick start, any device | Developers, 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:
| Tool | Use it for |
|---|---|
create_diagram | Flowchart, sequence, class, ER, state, Gantt, timeline, mind map, network, SQL, D2 or PlantUML |
create_chart | Line, bar, scatter, pie, donut or radar chart from CSV |
code_to_flowchart | A flowchart from Python, JavaScript, TypeScript, Java, C, C++ or Go |
convert_diagram | SVG, TikZ, draw.io, Excalidraw, Mermaid or Chalkline JSON |
describe_diagram | A plain words description of a shared board |
list_templates, use_template | Starting 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:
- Does it return something editable? A picture is nice; a diagram you can move and restyle is better.
- Which diagram kinds does it know? Flowcharts are common; ER, sequence, state and charts are not.
- Does it need an account or key?
- Where does my diagram go? Stored on a server, or carried in the link?
- 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.