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.
Visio Desktop MCP gives your AI agent a set of tools for working with Visio diagrams. You don't use these tools directly. You describe what you want, and the agent chooses the tools. Knowing them helps you write better prompts and decide which tool requests to approve.
Tip
To see the tools in the version you have, ask your agent: What can I do with the Visio Desktop MCP tools?
Tools
| Tool | What it does | Writes files? |
|---|---|---|
manage_visio |
Opens or closes Visio, and refreshes the index of available shapes. | No |
manage_document |
Creates, opens, saves, and closes diagrams. Adds and changes pages, applies themes, and exports. Saving writes the .vsdx file, exporting writes separate files, and closing a diagram discards unsaved changes. |
Yes |
content_search |
Finds Visio shapes, stencils, and templates by name or keyword, including your organization's stencils. | No |
get_visual_model_schema |
Describes the format the agent uses for shapes, connectors, containers, and changes. | No |
create_diagram |
Adds shapes, connectors, containers, swimlanes, layers, Shape Data, and formatting to one existing page of an open diagram. Changes stay unsaved until the agent saves. | No |
read_diagram |
Reads a diagram's pages, shapes, text, connectors, containers, swimlanes, and Shape Data, including unsaved changes. Doesn't change the diagram. | Only a JSON file for large results |
update_diagram |
Makes focused changes to one existing page of an open diagram. Changes stay unsaved until the agent saves. | No |
validate_diagram |
Checks a diagram for layout problems. | No |
For each tool's parameters and the format the agent uses to describe diagrams, see the Visio Desktop MCP Server documentation.
How the agent uses the tools
- Creating a diagram. The agent opens Visio, creates or opens a diagram, adds content to a page, and then saves it when you ask.
- Changing a diagram. The agent reads the diagram first, makes focused changes on the page you name, and saves when you ask.
- Pages and themes. Adding or changing pages and applying a theme are separate actions from changing page content.
What the agent can change
| Area | Changes |
|---|---|
| Shapes | Add, edit, move, resize, rotate, restyle, or delete shapes. Add callouts that point to a shape. Add Shape Data and hyperlinks. |
| Connectors | Add, reconnect, relabel, restyle, or delete connectors. Add Shape Data and hyperlinks. |
| Containers and swimlanes | Create containers and swimlanes with real members. Add or remove members, change their order, or resize a container to fit its members. |
| Layers | Create, change, or delete layers, and move shapes and connectors between them. |
| Pages | Add, rename, resize, reorder, or delete pages, or make a page active. Clear a page to remove its content but keep the page and its settings. |
| Themes | Apply a named theme to all foreground pages. |
Layout checks
| Problem | What it means |
|---|---|
| Overlap | Shapes cover each other. |
| Text overflow | Text doesn't fit in its shape. |
| Connector label collision | A connector label overlaps other content. |
| Hidden connector | A connector is hidden behind a shape. |
| Unattached connector | A connector end isn't attached to a shape. |
| Off the page | Content is outside the page. |
| Not visible in images | Content won't appear in a PNG or JPG export. |
| Low contrast text | Text is hard to read against its background. |
The layout check reports problems. It doesn't fix or save the diagram. Items that the check skipped haven't been checked.
Export formats
| Export | Formats |
|---|---|
| One page, selected pages, or all pages, as separate images | PNG, JPG, GIF, BMP, TIFF, EMF, SVG |
| Whole diagram | PDF, XPS |
You can choose a resolution for PNG exports. Exports use the current diagram, including unsaved changes, but exporting doesn't save the diagram. Exports can replace earlier exports with the same name, so ask for a new file name if you want to keep them.
Good to know
- Saving is separate. Creating or changing content, pages, or themes doesn't save the diagram. Ask the agent to save when you want to keep the changes. Closing a diagram discards unsaved changes.
- Existing files aren't replaced without your permission. Saving a copy won't replace an existing file unless you allow it. Saving back to the diagram's own file updates that file. Exports can replace earlier exports.
- The default folder is
Documents\VisioMcp. It doesn't limit where you can work. Your AI client approves the files and folders the agent uses. See Configure Microsoft Visio Desktop MCP. - The agent reads before it edits so that it can find the exact shapes to change. It can read unsaved changes, so you don't need to close and reopen a diagram between requests.
- Refresh after you change custom stencils. Ask the agent to refresh the shape index before it searches again. See Use your organization's shapes.
- Errors explain what to fix. Fix the reported problem instead of repeating the same request. For common errors, see Troubleshoot Microsoft Visio Desktop MCP.