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.
Connect Visio Desktop MCP to your AI client so that its agent can create and edit diagrams in Visio on your PC. This guide uses GitHub Copilot in Visual Studio Code. You can use any other AI client that supports local MCP servers instead. To set one up, see Manual configuration.
Tip
Let your agent set it up. If your AI client can read web pages, share the link to this article in agent mode and ask: Follow the steps in this article to set up Visio Desktop MCP. Review each command and configuration change before you approve it.
Before you begin
- Visio desktop app. Use a licensed Windows device with the Visio desktop app installed and activated, for example through Visio Plan 2. Open Visio once to complete any sign-in prompts. Visio for the web isn't supported.
- .NET 10 SDK. Install the .NET 10 SDK, version 10.0.100 or later. The .NET runtime alone isn't enough.
- An AI client. Use GitHub Copilot in Visual Studio Code, or another AI client that supports local MCP servers.
- Organization approval. Your organization must allow MCP servers in your AI client and allow your device to download the
Microsoft.Visio.Mcppackage.
To check the .NET SDK, run this command in a terminal. The list should include a 10.0 version.
dotnet --list-sdks
Add Visio Desktop MCP to Visual Studio Code
Press Ctrl+Shift+P, and run MCP: Add Server.
Select Command (stdio).
Enter
dnx Microsoft.Visio.Mcp --prerelease, and press Enter.
For the server ID, enter
visio-local, and press Enter.If you're asked for a configuration target, select Global. Then select Copilot Global.
Visual Studio Code adds the server and opens its configuration file. You don't need to change the file. For more information, see Add MCP servers in VS Code.
Check that it works
Press Ctrl+Alt+I to open Chat, and start a new chat in Agent mode.
Enter this prompt:
Use the Visio Desktop MCP tools to open Visio and confirm that it's ready. Don't create or change any diagrams.
When you're asked Allow tool from visio-local?, review the request, and then allow it:
- Allow in this Session allows the tool until you close this chat. You're asked again in new chats.
- To stop being asked in new chats, select the arrow next to Allow in this Session, and choose an option for this workspace or for all future uses. To approve all Visio Desktop MCP tools at once, run Chat: Manage Tool Approval from the Command Palette, and select visio-local.
Visio opens, and the agent confirms that it's ready. The first start can take a minute while the package downloads. You might be asked again when the agent uses a different Visio Desktop MCP tool.
When this works, continue to Create your first diagram.
Manual configuration
To add Visio Desktop MCP to another AI client, or to edit the configuration yourself, use these values:
| Setting | Value |
|---|---|
| Server name | visio-local |
| Type | Local command (stdio) |
| Command | dnx |
| Arguments | Microsoft.Visio.Mcp and --prerelease, as separate arguments |
Many AI clients use an mcpServers JSON file. For GitHub Copilot, the file is %USERPROFILE%\.copilot\mcp-config.json:
{
"mcpServers": {
"visio-local": {
"type": "stdio",
"command": "dnx",
"args": ["Microsoft.Visio.Mcp", "--prerelease"],
"tools": ["*"]
}
}
}
Keep any other servers that are already in the file, and restart your AI client after you save it. Other AI clients use different files and formats, so check your client's documentation.
If something doesn't work
| Problem | What to try |
|---|---|
The server doesn't start, or dnx isn't recognized |
Install the .NET 10 SDK, and then restart your AI client. A global.json file in your project folder can select an older SDK. |
| The agent doesn't use the Visio tools | In Visual Studio Code, open the Command Palette and run Chat: Open Customizations. Under MCP Servers, check that visio-local is listed and turned on. |
| Visio doesn't open, or shows a prompt | Open Visio yourself, complete any sign-in or activation prompts, close it, and try again. |
| MCP servers or tools are blocked | Your organization might restrict MCP servers. Contact your admin. |
For more help, see Troubleshoot Microsoft Visio Desktop MCP.
Considerations and limitations
- Local desktop session only. Run your AI client, the server, and Visio in the same signed-in Windows session, not in WSL, a container, an SSH session, or a cloud workspace.
- Preview compatibility. Not every AI client or version has been tested with this preview.
- Organization policy applies. A local MCP configuration doesn't override your organization's restrictions on MCP servers or tools.
For the full list, see Preview limitations.