Back to Home
Cubical6 icon

structurizr-mcp

Verified Safe

by Cubical6

Overview

Enables AI assistants to create, manage, analyze, and visualize C4 architecture diagrams as code (Structurizr DSL) for software systems, including people, containers, components, relationships, and various views.

Installation

Run Command
php /absolute/path/to/structurizr-mcp/server.php

Environment Variables

  • WORKSPACE_STORAGE_PATH
  • STRUCTURIZR_CLI_PATH
  • STRUCTURIZR_DOCKER_IMAGE
  • STRUCTURIZR_API_KEY
  • STRUCTURIZR_API_SECRET
  • STRUCTURIZR_API_URL
  • LOG_LEVEL
  • LOG_PATH
  • SERVER_NAME
  • SERVER_VERSION

Security Notes

The server implements robust security measures. It uses Symfony Process with array form to prevent command injection, performs strict input validation (schema-based, sanitization), prevents path traversal by sanitizing workspace IDs and resolving real paths within allowed directories, and handles credentials securely via environment variables with sanitization in logs and memory cleanup. It runs over stdio, reducing direct network exposure risks. Comprehensive documentation on security best practices is provided.

Similar Servers

Stats

Interest Score31
Security Score9
Cost ClassMedium
Avg Tokens7500
Stars1
Forks0
Last Update2025-11-29

Tags

C4 ModelArchitecture as CodeStructurizrAI AgentDiagramming