1. Conduid
  2. Cloud
  3. Diagram MCP Server
MCP server · Cloud

Diagram MCP Server

An MCP server that seamlessly creates infrastructure diagrams for AWS, Azure, GCP, Kubernetes and more

Unclaimed Apache-2.0 last commit 10 months ago gcpmcpdiagrams-as-codecloudkubernetesazureaws
69Good

Scored 22 hours ago · breakdown

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
uvx infrastructure-diagram-mcp-server
pip
pip install infrastructure-diagram-mcp-server
From source
git clone https://github.com/andrewmoshu/diagram-mcp-server

Tools (6)

generate_diagramGenerate a diagram from Python code using the diagrams package.
ParameterTypeDescription
code *stringPython code using the diagrams package DSL. The runtime already imports everything needed so you can start immediately using `with Diagram(`
filenamestringThe filename to save the diagram to. If not provided, a random name will be generated.
timeoutintegerThe timeout for diagram generation in seconds. Default is 90 seconds.
workspace_dirstringThe 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.
ParameterTypeDescription
diagram_typeanyType 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.
ParameterTypeDescription
provider_filterstringFilter icons by provider name (e.g., "aws", "gcp", "k8s")
service_filterstringFilter icons by service name (e.g., "compute", "database", "network")
parse_helm_chartParse a Helm chart and extract K8s resources and their relationships.
ParameterTypeDescription
chart_path *stringPath to Helm chart directory (containing Chart.yaml) or .tgz file
namespacestringTarget namespace for templating
release_namestringHelm release name for templating
values_filestringPath to values.yaml override file
values_inlinestringInline YAML values to override chart defaults (as a YAML string)
parse_k8s_manifestParse Kubernetes YAML manifests and extract resources and their relationships.
ParameterTypeDescription
input_source *stringFile path to YAML file/directory, OR inline YAML content (multi-document supported with --- separators)
parse_terraformParse Terraform configurations and extract resources and their relationships.
ParameterTypeDescription
input_source *stringPath 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
Questions

About Diagram MCP Server

How do I install Diagram MCP Server?

Run uvx infrastructure-diagram-mcp-server, then add the server to your MCP client's configuration.

Is Diagram MCP Server safe to use with an AI agent?

Its trust score is 69 out of 100 (good). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass No dynamic code execution and Scoped permissions. Conduid's scan of 10 source files found that it serves MCP over stdio, starts other programs (2 calls) and writes or deletes files (5 calls). Its dependencies are pinned by uv.lock. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Diagram MCP Server still maintained?

The last commit was 10 months ago and 6 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.

What tools does Diagram MCP Server provide?

Conduid read 6 tools from the source: generate_diagram, get_diagram_examples, list_icons, parse_helm_chart, parse_k8s_manifest and parse_terraform. 6 of them publish their parameters, listed under Tools above.

What license is Diagram MCP Server released under?

The repository declares the Apache-2.0 license.