About Diagram MCP Server
Diagram MCP Server is an MCP server published by andrewmoshu in the Cloud category: an MCP server that seamlessly creates infrastructure diagrams for AWS, Azure, GCP, Kubernetes and more. Conduid read 6 tools from its source: generate_diagram, get_diagram_examples, list_icons, parse_helm_chart, parse_k8s_manifest and parse_terraform. It is published to PyPI as infrastructure-diagram-mcp-server and runs with uvx.
The repository has 150 stars and 20 forks, is licensed Apache-2.0, and its last commit was on 21 Jan 2026. Conduid has no tagged release on record for it. It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass No dynamic code execution and Scoped permissions. Its topics include gcp, diagrams-as-code, cloud, kubernetes, azure and aws.
Install
uvx infrastructure-diagram-mcp-serverpip install infrastructure-diagram-mcp-servergit clone https://github.com/andrewmoshu/diagram-mcp-serverTools (6)
generate_diagramGenerate a diagram from Python code using the diagrams package.| Parameter | Type | Description |
|---|---|---|
| code * | string | Python code using the diagrams package DSL. The runtime already imports everything needed so you can start immediately using `with Diagram(` |
| filename | string | The filename to save the diagram to. If not provided, a random name will be generated. |
| timeout | integer | The timeout for diagram generation in seconds. Default is 90 seconds. |
| workspace_dir | string | The user's current workspace directory. CRITICAL: Client must always send the current workspace directory when calling this tool! If provided, diagrams will be saved to a 'generated-diagrams' subdirectory. |
get_diagram_examplesGet example code for different types of diagrams.| Parameter | Type | Description |
|---|---|---|
| diagram_type | any | Type of diagram example to return. Options: aws, gcp, azure, k8s, onprem, hybrid, multicloud, sequence, flow, class, custom, all |
list_iconsList available icons from the diagrams package, with optional filtering.| Parameter | Type | Description |
|---|---|---|
| provider_filter | string | Filter icons by provider name (e.g., "aws", "gcp", "k8s") |
| service_filter | string | Filter icons by service name (e.g., "compute", "database", "network") |
parse_helm_chartParse a Helm chart and extract K8s resources and their relationships.| Parameter | Type | Description |
|---|---|---|
| chart_path * | string | Path to Helm chart directory (containing Chart.yaml) or .tgz file |
| namespace | string | Target namespace for templating |
| release_name | string | Helm release name for templating |
| values_file | string | Path to values.yaml override file |
| values_inline | string | Inline YAML values to override chart defaults (as a YAML string) |
parse_k8s_manifestParse Kubernetes YAML manifests and extract resources and their relationships.| Parameter | Type | Description |
|---|---|---|
| input_source * | string | File path to YAML file/directory, OR inline YAML content (multi-document supported with --- separators) |
parse_terraformParse Terraform configurations and extract resources and their relationships.| Parameter | Type | Description |
|---|---|---|
| input_source * | string | Path to .tf file, directory containing .tf files, OR inline HCL content |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 2.2K words.
- ✓License declaredThe repository declares the Apache-2.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock.
- !No dynamic code executionScanned 10 source files and found 4 calls to eval or shell execution, in infrastructure_diagram_mcp_server/diagrams_tools.py:366, infrastructure_diagram_mcp_server/scanner.py:239 and infrastructure_diagram_mcp_server/scanner.py:269 among others. Review how tool inputs reach them before granting credentials.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdioinfrastructure_diagram_mcp_server/server.py:660
- Starts other programs
- 2 callsinfrastructure_diagram_mcp_server/parsers/helm_parser.py:56, infrastructure_diagram_mcp_server/parsers/helm_parser.py:299
- Outbound network calls
- No outbound network calls
- Writes or deletes files
- 5 callsinfrastructure_diagram_mcp_server/diagrams_tools.py:96, infrastructure_diagram_mcp_server/diagrams_tools.py:120, infrastructure_diagram_mcp_server/diagrams_tools.py:390
- Lockfile
- uv.lock
Pattern matches on the source text of 10 files: places to read, not proof of what the code does at run time.
README
The repository's README runs to about 2.2K words, fetched a month ago. The original in the repository is authoritative.
Read full README