visio-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
visio-mcp
MCP server for Microsoft Visio on Windows. It drives Visio over COM to generate diagrams with real stencil shapes, glued connectors and automatic layout, to edit drawings open in Visio, and to read drawings as context.
One visio_create_diagram call builds a whole diagram: it drops the shapes, glues the connectors, lays out the page and returns a PNG, so the model can check the result in the same call.
Requirements
Windows with the Visio desktop app installed. Tested with Visio Professional 16.0, click-to-run.
Python 3.11 or later, and uv.
Related MCP server: VisioMCP
Install
The PyPI name visio-mcp belongs to another project, so install from GitHub:
uv tool install --compile-bytecode git+https://github.com/HurleySk/visio-mcpThen register it with your MCP client. For Claude Code:
claude mcp add --scope user visio-mcp -- visio-mcpFor a client configured with JSON:
{
"mcpServers": {
"visio-mcp": { "command": "visio-mcp" }
}
}Restart the client to see the tools. To update, run the install command again with --force.
Tools
25 tools in four groups. TOOLS.md lists every parameter and is generated from what clients are sent.
Group | Tools |
Generate |
|
Edit |
|
Read |
|
Files |
|
How it behaves
It uses the Visio you have open. If Visio isn't running, only the tools that create or open a drawing start it, in a visible window. Read tools never start it. The server never quits Visio.
Each change is one Ctrl+Z step. Every tool that changes a drawing does so in one undo scope, and rolls back if it fails part-way. A bad request is refused before anything changes.
Masters are found by search.
visio_find_masterssearches the shapes installed with Visio, and a master is named likeBASFLO:Decision. The server picks US or metric shapes to match the drawing.Shapes are named by ID, else exact name, else exact text. If a name matches several shapes, the error lists them. Edits echo each shape's ID, text and master, because Visio can reuse an ID after a delete.
Positions are in inches, with x and y the shape's centre measured from the page's bottom-left corner.
Files are never replaced by accident. Saving or exporting over an existing file needs
overwrite, and closing a drawing with unsaved changes needsdiscard.
Settings
Variable | Default | Effect |
|
| Seconds a tool waits for Visio. Generating a diagram and adding elements allow 120. |
| Visio's own | The folder to search for stencils and templates, if Visio's install folder can't be found. |
Troubleshooting
"Visio is running with different administrator rights from this server". Windows blocks COM between a process running as administrator and one that isn't. Start Visio and the app that runs this server the same way: both as administrator, or neither.
"Visio is running but cannot be reached". With two Visio windows open, only the newer one can be reached, and the older one may stay out of reach after the newer one closes. Click the Visio window and retry, or close and reopen Visio.
modal_dialogorbusyerrors. Visio is showing a dialog or is in the middle of editing text. Close the dialog or click off the text, then retry.second_visiowarning. A Visio this server can't reach was already running, so a new window was opened. Drawings in the other window aren't available until the rights match.drop_handler_skippedwarning. Some masters, such as org chart shapes and off-page references, run an add-on when dropped, and its dialog would block the call. Those masters are dropped with Visio's automation events off for that one drop, so the shape arrives without what the add-on would have added.events_restoredwarning. Visio saves its automation events setting when it exits. If a server stopped while it had events off for a drop, the next call turns them back on. To check by hand, with Visio closed:HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Visio\Application\EventsEnabledset to0means events are off.
Development
uv sync
uv run pytest # unit tests, no Visio needed
uv run pytest -m visio # against real Visio: starts its own instances, so save your work firstThe real-Visio tests start and quit their own Visio instances and never touch a drawing they didn't make. docs/spike-results.md records what testing against real Visio established, including the traps.
After changing a tool's signature or docstring, regenerate the snapshot and TOOLS.md:
uv run python scripts/dump_tools.py tests/snapshots/live_tools.json
uv run python scripts/tools_md.py tests/snapshots/live_tools.json TOOLS.mdLicence
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Draw architecture diagrams, UML, planning boards and clickable wireframes from your AI assistant.
Turn calls and notes into process flow diagrams in Claude, ChatGPT, VS Code, Cursor, and Teams.
Create, read and live-edit visual boards, Kanban plans, Gantt timelines and diagrams with AI agents.
Turn conversations about work processes into process maps: read, draw, correct and export.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceEnables to create and edit Microsoft Visio diagrams programmatically via a standardized API.87MIT
- FlicenseNot gradedqualityDmaintenanceConnects Claude to Microsoft Visio to generate enterprise architecture diagrams from natural language or structured inventory data, supporting multiple diagram types and export formats.4-
- FlicenseAqualityDmaintenanceDrives Microsoft Visio desktop via COM automation to create, style, and layout diagrams such as flowcharts and cloud architecture, then exports PNGs for visual feedback and iteration.231-
- AlicenseAqualityCmaintenanceEnables AI clients to create, edit, read, and export Microsoft Visio diagrams via COM automation on Windows.4262MIT