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.
Most people can use Visio Desktop MCP without changing any settings. Use this article when you want to change where new diagrams are saved, hide the Visio window, or change how Visio Desktop MCP writes log files.
Where diagrams are saved
When the agent saves a new diagram and you don't name a location, Visio Desktop MCP saves it in Documents\VisioMcp. To use a different default folder, change the VISIO_MCP_ROOT setting. You can also ask the agent to save to a specific location at any time.
The default folder doesn't limit where you can work. Your AI client approves the files and folders that the agent uses, and your Windows file permissions still apply.
Keep these points in mind:
- Changes aren't saved automatically. When the agent creates or changes a diagram, the changes stay unsaved until you ask the agent to save. If the agent closes a diagram without saving, unsaved changes are lost.
- Exporting doesn't save the diagram. An export creates a separate image or PDF file. Ask for a save as well if you want to keep your changes in the
.vsdxfile. - Saving a copy doesn't replace an existing file. If a file with that name already exists, the agent needs your permission to replace it. Saving back to the diagram's own file updates that file.
- Exports can replace earlier exports. Ask for a new file name if you want to keep a previous export.
Keep a copy of important diagrams.
Change a setting
Settings go in an env section in the visio-local entry of your AI client's MCP configuration. Use the configuration that actually starts the server, such as your user profile or workspace configuration. For example, in Visual Studio Code:
{
"servers": {
"visio-local": {
"type": "stdio",
"command": "dnx",
"args": [
"Microsoft.Visio.Mcp",
"--prerelease"
],
"env": {
"VISIO_MCP_ROOT": "C:\\Diagrams",
"VISIO_APP_VISIBLE": "true",
"VISIO_MCP_LOCAL_LOG_ENABLED": "true"
}
}
}
}
Add the settings to your existing entry, and keep other servers and settings as they are. Save your diagrams, and then restart Visio Desktop MCP in your AI client so the new settings take effect.
Visio Desktop MCP reads only VISIO_MCP_ROOT, VISIO_APP_VISIBLE, and VISIO_MCP_LOCAL_LOG_ENABLED. Other VISIO_MCP_* settings from earlier previews are ignored, so you can remove them.
Note
Setting values are text. Use the exact values in the table below. For example, VISIO_APP_VISIBLE shows Visio only for 1, true, yes, or on, and VISIO_MCP_LOCAL_LOG_ENABLED turns off log files only for 0, false, or off. Some AI clients don't expand %VARIABLE% paths, so use full folder paths. To go back to a default, remove the setting.
Supported settings
| Setting | Default | What it does |
|---|---|---|
VISIO_MCP_ROOT |
Documents\VisioMcp |
The default folder for new diagrams and for large results that the agent reads back. |
VISIO_APP_VISIBLE |
Visible | Any value other than 1, true, yes, or on hides the Visio window while the agent works. Visio still needs to run in your signed-in Windows session. |
VISIO_MCP_LOCAL_LOG_ENABLED |
On | Set to 0, false, or off to stop writing log files. |
The log level is built in and can't be changed.
To use your organization's stencils and templates, put them in My Shapes or a location set in Visio, and then ask the agent to refresh the shape index. You don't need a setting for this. See Use your organization's shapes.
Some behavior is built in:
- Built-in shapes follow your Windows display language, with English or another installed Visio language as the fallback.
- If the shape index is more than 15 minutes old, it refreshes in the background on the first request. To pick up changes right away, ask the agent to refresh the shape index.
Telemetry and privacy
Visio Desktop MCP can send diagnostic data to Microsoft. It follows your Office diagnostic data settings and your organization's policy. There's no separate Visio Desktop MCP setting to turn it off, and log file settings don't affect it.
Diagram content that the agent works with is sent to your AI client and the model you select, under that service's terms. Office diagnostic data settings don't control that.
Log files
When log files are turned on, Visio Desktop MCP writes a daily log file to:
%LOCALAPPDATA%\VisioMcp\logs\visio-mcp-YYYY-MM-DD.log
Log files aren't deleted automatically. Delete old log files when you no longer need them. Changing VISIO_MCP_ROOT doesn't move the logs. In Visual Studio Code, you can also run MCP: List Servers, select visio-local, and select Show Output to see startup errors.
Before you share a log, review it and remove any confidential or personal information.
Related topics
Set up Microsoft Visio Desktop MCP