diagram-mcp-server
by andrewmoshu
Overview
Generates infrastructure diagrams from Python code or Infrastructure-as-Code (IaC) files across various cloud providers and on-premises environments.
Installation
uvx infrastructure-diagram-mcp-serverEnvironment Variables
- FASTMCP_LOG_LEVEL
- CFLAGS
- LDFLAGS
- INCLUDE
- LIB
Security Notes
The server uses `exec()` to run user-provided Python code in the `generate_diagram` function. While a code scanner (`bandit` and custom checks for dangerous functions like `exec`, `eval`, `os.system`, `subprocess`) is implemented to detect and reject potentially malicious code, relying on a detection mechanism for arbitrary code execution is inherently risky. A sophisticated bypass could lead to remote code execution. Additionally, `urllib.request.urlretrieve` can fetch content from arbitrary URLs if allowed by the code, posing potential supply chain or SSRF risks.
Similar Servers
tfmcp
A CLI tool and MCP server that enables LLMs to analyze, manage, and operate Terraform configurations and infrastructure environments.
charlie
A universal command-line interface (CLI) and Python library that generates agent-specific configurations (commands, rules, MCP servers) for various AI agents from a single YAML or Markdown specification, supporting configuration inheritance and variable templating.
generator-app-remote-mcp-server-generic
Provides backend services for a generic multi-cloud application generator, enabling remote application scaffolding and management across various cloud providers.
overture
Orchestrates Model Context Protocol (MCP) servers and AI agents across multiple AI development tools from a unified configuration.