Azure Diagram

v1.0.0Cloud Servicesstable

MCP server that turns natural-language prompts into Microsoft Azure architecture diagrams (PNG) using Python Diagrams + Graphviz.

architectureazureazure-architecturediagramsgithub-copilot
Share:
25
Stars
0
Downloads
0
Weekly
0/5

What is Azure Diagram?

Azure Diagram is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp server that turns natural-language prompts into microsoft azure architecture diagrams (png) using python diagrams + graphviz.

MCP server that turns natural-language prompts into Microsoft Azure architecture diagrams (PNG) using Python Diagrams + Graphviz.

This server falls under the Cloud Services category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • MCP server that turns natural-language prompts into Microsof

Use Cases

Natural language architecture diagrams
Azure infrastructure visualization
PNG diagram generation
dminkovski

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedApr 23, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx azure-diagram

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Azure Diagram

The Azure Diagram MCP Server converts natural-language architecture descriptions into Microsoft Azure infrastructure diagrams rendered as PNG files, using the Python diagrams library and Graphviz for rendering. It exposes a generate_diagram tool that interprets plain-English prompts like 'an Azure Function connected to SQL Database through a Load Balancer' and produces professional architecture visuals saved to the local diagrams/ folder. DevOps engineers, cloud architects, and solution designers use it to rapidly sketch and document Azure topologies without manually placing icons in drawing tools.

Prerequisites

  • Python 3.10+ installed on your system
  • Graphviz installed and available on system PATH (required for diagram rendering)
  • The Python diagrams package and project dependencies installed via pip
  • Visual Studio Code with GitHub Copilot (primary tested client) or another MCP-compatible client
1

Install Graphviz on your system

Graphviz must be installed at the OS level before the Python diagrams package can render PNGs. Install it using your system package manager.

# macOS
brew install graphviz

# Ubuntu/Debian
apt-get install graphviz

# Windows (via Chocolatey)
choco install graphviz
2

Clone the repository and install Python dependencies

Clone the azure-diagram-mcp repository and install all required Python packages from requirements.txt.

git clone https://github.com/dminkovski/azure-diagram-mcp.git
cd azure-diagram-mcp
pip install -r requirements.txt
3

Configure your MCP client to run the server

Add the server to your MCP client configuration. Point the command to the Python executable and the server's main script. Update the path to match where you cloned the repository.

{
  "mcpServers": {
    "azure-diagram": {
      "command": "python",
      "args": ["/path/to/azure-diagram-mcp/server.py"]
    }
  }
}
4

Create the output directory

The server saves generated diagrams to a diagrams/ folder relative to the working directory. Create it if it does not exist.

mkdir -p /path/to/azure-diagram-mcp/diagrams
5

Restart your MCP client and generate your first diagram

Restart your client. Describe an Azure architecture in plain English and the generate_diagram tool will render a PNG. The diagram is saved to the diagrams/ folder and the path is returned.

Azure Diagram Examples

Client configuration

MCP configuration for running the Azure Diagram server via Python, pointing to the cloned repository's server script.

{
  "mcpServers": {
    "azure-diagram": {
      "command": "python",
      "args": ["/Users/me/projects/azure-diagram-mcp/server.py"]
    }
  }
}

Prompts to try

Natural-language architecture descriptions that the generate_diagram tool converts into Azure architecture PNGs.

- "Generate an Azure architecture diagram with an Azure Function connected to a SQL Database through a Load Balancer"
- "Create a diagram showing an API Gateway routing traffic to three App Services backed by a Redis Cache"
- "Draw an Azure data pipeline: Event Hub → Stream Analytics → Azure Data Lake → Power BI"
- "Diagram a hub-and-spoke Azure Virtual Network topology with a firewall in the hub"

Troubleshooting Azure Diagram

Error: 'dot' executable not found or Graphviz not on PATH

Graphviz must be installed at the OS level and its 'dot' binary must be on your system PATH. After installing via brew/apt/choco, run 'dot -V' to confirm it's accessible. On macOS, you may need to add /usr/local/bin or /opt/homebrew/bin to your PATH.

generate_diagram fails with 'module diagrams not found'

The Python diagrams package must be installed in the same Python environment the server is running in. Run 'pip install diagrams' in the correct environment, or use a virtual environment: 'python -m venv venv && source venv/bin/activate && pip install -r requirements.txt'.

Diagram is generated but the PNG appears blank or contains only text

The Azure icon set requires specific versions of the diagrams package. Ensure you're installing from requirements.txt (not just 'pip install diagrams') to get the exact version tested with the server. Also verify Graphviz is version 2.40 or newer.

Frequently Asked Questions about Azure Diagram

What is Azure Diagram?

Azure Diagram is a Model Context Protocol (MCP) server that mcp server that turns natural-language prompts into microsoft azure architecture diagrams (png) using python diagrams + graphviz. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Azure Diagram?

Follow the installation instructions on the Azure Diagram GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Azure Diagram?

Azure Diagram works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Azure Diagram free to use?

Yes, Azure Diagram is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Cloud Services MCP Servers

Explore all cloud services servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "azure-diagram": { "command": "npx", "args": ["-y", "azure-diagram"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Azure Diagram?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides