
您是一名解决方案架构师,希望构建高质量的架构图,或根据近期变化改进现有架构图?我们为您提供保障。
概览
您是一名解决方案架构师,希望构建高质量的架构图,或根据近期变化改进现有架构图?我们为您提供保障。 Visio MCP(模型上下文协议)服务器将 Microsoft Visio 图操作作为工具展示,使您能够从文本描述、图片和文档生成生产级架构图。 通过直接控制 Microsoft Visio,该 MCP 服务器不仅支持初始图表生成,还支持迭代优化和演进。您可以不断改进和调整图表,直到达到最高质量标准。 Visio MCP 服务器设计用于 GitHub Copilot CLI 和 VS Code 代理模式,但也可以与其他基于大型语言模型的系统集成。
概述(AI 翻译)
您是一名解决方案架构师,希望构建高质量的架构图,或根据近期变化改进现有架构图?我们为您提供保障。
Visio MCP(模型上下文协议)服务器将 Microsoft Visio 图操作作为工具展示,使您能够从文本描述、图片和文档生成生产级架构图。
通过直接控制 Microsoft Visio,该 MCP 服务器不仅支持初始图表生成,还支持迭代优化和演进。您可以不断改进和调整图表,直到达到最高质量标准。
Visio MCP 服务器设计用于 GitHub Copilot CLI 和 VS Code 代理模式,但也可以与其他基于大型语言模型的系统集成。
演示
特色
- Azure service icons — 206 Azure services from official Visio stencils (auto-discovered)
- 架构辅助工具 — 层级频段、容器、具有样式指南合规的连接器
- 形状操作 — 添加、修改、删除、连接和列表形状
- 多页面支持 — 添加页面,切换页面
- 导出 — PNG、SVG、JPG 输出
先修条件
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Visio MCP Server
Are you a solution architect looking to build high‑quality architecture diagrams or evolve existing ones to reflect recent changes? We’ve got you covered.
The Visio MCP (Model Context Protocol) Server exposes Microsoft Visio diagram operations as tools, enabling you to generate production‑grade architecture diagrams from text descriptions, images, and documents.
By directly controlling Microsoft Visio, this MCP server supports not only initial diagram generation but also iterative refinement and evolution. You can continuously improve and adapt diagrams until they meet the highest quality standards.
The Visio MCP Server is designed for use with GitHub Copilot CLI and VS Code Agent Mode, but it can also be integrated with other LLM-based systems.
Demo
Features
- Azure service icons — 206 Azure services from official Visio stencils (auto-discovered)
- Architecture helpers — tier bands, containers, connectors with style-guide compliance
- Shape operations — add, modify, remove, connect, and list shapes
- Multi-page support — add pages, switch between them
- Export — PNG, SVG, JPG output
Prerequisites
- Microsoft Visio Professional (installed and licensed)
- Python 3.11+
- Azure Visio stencils — download from Microsoft Azure Architecture Icons and extract to your
My Shapesfolder
Installation
cd visio-mcp
pip install -r requirements.txt
Configuration
Add to your Copilot CLI MCP config (~/.copilot/mcp-config.json):
{
"mcpServers": {
"visio": {
"type": "stdio",
"command": "python",
"args": ["C:\\path\\to\\visio-mcp\\server.py"],
"env": {}
}
}
}
Whitelisting All Visio Tools
By default, Copilot CLI prompts for approval on each MCP tool call. To auto-approve all Visio MCP tools while keeping other tools at normal approval prompts, launch with:
copilot --allow-tool "visio"
To whitelist a specific tool only:
copilot --allow-tool "visio(add_azure_shape)"
To persist across sessions, add to ~/.copilot/config.json:
{
"allowedTools": ["visio"]
}
Available Tools
| Tool | Description |
|---|---|
create_diagram |
Create a new Visio diagram (landscape, 11×8.5 in) |
save_diagram |
Save to .vsdx file |
close_diagram |
Close without saving |
list_open_diagrams |
List all open documents |
add_shape |
Add basic shapes (rectangle, ellipse, diamond, etc.) |
add_azure_shape |
Add Azure service icons from official stencils |
remove_shape |
Remove a shape by ID |
modify_shape |
Change text, position, size, or color |
list_shapes |
List all shapes on the active page |
connect_shapes |
Connect two shapes with styled connectors |
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"visio": {
"type": "stdio",
"command": "python",
"args": ["C:\\path\\to\\visio-mcp\\server.py"],
"env": {}
}
}
}