Diagram
← How to make diagrams with AI

How to make diagrams in GitHub Copilot (VS Code)

Ask VS Code + Copilot (GitHub Copilot’s Agent mode in VS Code) for a diagram in plain words and it draws one. On its own, the result stays in the chat or in a file only you can open. Connect Diagram once, and every diagram VS Code + Copilot makes is saved at a link you can share, which stays current as the diagram changes. It takes three steps.

1. Connect Diagram to VS Code + Copilot

Use the one-click Add to VS Code button on the setup page. Or run "MCP: Add Server" from the Command Palette, choose HTTP, paste this URL, and choose Global. VS Code asks you to trust the server the first time it starts:

https://diagram.la/mcp

Sign in once: When VS Code starts the server, it asks to sign in: allow it, then sign in to Diagram and click Allow.

2. Ask VS Code + Copilot for a diagram

Open your repo and switch Copilot Chat to Agent mode, then describe what you want in plain words. For example:

VS Code + Copilot draws it, saves it to Diagram as a draft only you can see, and gives you a link. Keep the link open: when you ask for a change, the page updates by itself. Nothing is left in a local file you’d have to remember to upload, and you never have to mention Diagram again: it knows to use it.

3. Publish it and share the link

When it looks right, tell VS Code + Copilot to publish it. It asks first and says who will be able to see it: the people on its project. Then paste the link in Slack, a pull request, or a doc. To change it later, ask VS Code + Copilot: the link stays the same and every version is kept.

The kind of thing you can ask for:

Architecture · Dracula

How our app works

Explain your system to anyone.

cloud browser api postgres queue worker httpsread/writeenqueue cloud browser api postgres queue

Questions

Can VS Code + Copilot make diagrams?
Yes. VS Code + Copilot can draw flowcharts, architecture diagrams, org charts, timelines, and more as a web page. Connected to Diagram, it saves each one at a link you can open and share.
Is Diagram free to use with VS Code + Copilot?
Yes. Diagram is free for your first 5 diagrams, and there's nothing to install.
Who can see my diagrams?
A new diagram is a draft only you can see. When you say to publish it, the people on its project can see it. You can also add people, share with your team through an org, or make one diagram public for anyone with the link.
What happens when the diagram changes?
Ask VS Code + Copilot to change it. The change is saved at the same link, and every earlier version is kept.
Does VS Code + Copilot need an API key?
No. VS Code + Copilot signs in to Diagram in the browser (Google or an emailed link).

Diagrams in other tools

More guides