IG

iakov-gan/mcp-server-visio

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

24 stars 12 forks 品質 61 トレンド 10

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.

概要

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.

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 Shapes folder

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
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "visio": { "type": "stdio", "command": "python", "args": ["C:\\path\\to\\visio-mcp\\server.py"], "env": {} } } }