Create your first diagram with Microsoft Visio Desktop MCP

Important

Microsoft Visio Desktop MCP is in preview. Preview software is for evaluation and isn't intended for production environments or critical workloads. Features might change before general availability.

Start with a small diagram and standard Visio shapes to get comfortable before you move on to larger diagrams or your organization's shapes. Before you begin, set up Visio Desktop MCP. These steps use GitHub Copilot in Visual Studio Code. Other AI clients that support local MCP servers work in a similar way.

Create a flowchart

  1. In Visual Studio Code, open the Chat view and switch to Agent mode, with the Visio Desktop MCP tools turned on.

  2. Enter this prompt:

    Open Visio and create a flowchart named Onboarding on a landscape page, using standard Visio flowchart shapes. Steps: Offer accepted, Complete paperwork, Provision account and device, Complete orientation, Ready to start. Connect each step to the next with an arrow. Save it as onboarding.vsdx, then read it back and tell me the full file path, the number of steps, and the number of connectors.

  3. Review the requests to use the Visio Desktop MCP tools (in these articles, the server is named visio-local), and allow the ones you want. Visio opens and builds the flowchart.

  4. When the agent finishes, it tells you where it saved the file and confirms that there are 5 steps and 4 connectors. If the counts are different, ask the agent to check the diagram before you continue.

Creating content doesn't save it, which is why the prompt asks the agent to save the diagram.

An onboarding flowchart with five connected steps, from Offer accepted to Ready to start.

Open it in Visio

The diagram is already open in Visio. If you closed it, open onboarding.vsdx from the path that the agent reported. If you don't name a location, the agent saves new diagrams in Documents\VisioMcp.

Select a shape and change its text, or drag it to a new spot. The connectors stay attached, because these are real Visio shapes and connectors. If a connector comes loose, ask the agent to fix it.

Make a change

Ask for a small change instead of a new diagram. Say what must stay the same.

In onboarding.vsdx, add a "Manager check-in" step between "Complete orientation" and "Ready to start". Read the diagram first, match the style of the other steps, and replace only the affected connector. Don't change anything else. Save the updated diagram to the same file, then confirm the number of steps and connectors.

The agent reads the diagram, adds the new step in the same style, reconnects the flow, and saves the file when you ask. There should now be 6 steps and 5 connectors. Without the save instruction, the changes stay unsaved.

The onboarding flowchart with a new Manager check-in step between Complete orientation and Ready to start.

You can also ask the agent to check the layout and fix any problems. The layout check doesn't confirm that the process is complete, so compare the steps and connections with what you expect.

Tip

You don't need to close the diagram between requests. Don't edit it yourself while the agent is working, and don't open another copy of the same file in a separate Visio window.

Next steps

What can you do with Microsoft Visio Desktop MCP?

Troubleshoot Microsoft Visio Desktop MCP