C4Diagrammer
If you are the rightful owner of C4Diagrammer and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcpreview.com.
C4Diagrammer is a Model Context Protocol (MCP) server implementation designed to generate documentation for existing systems, providing tools for generating code summaries and C4 architecture diagrams using Mermaid.js.
C4Diagrammer is a tool designed to address the challenges of documenting large and complex codebases. By leveraging the C4 model, it generates hierarchical architecture diagrams and documentation that align with Agile practices. The tool automates the creation of README files and C4 diagrams at various levels of detail, from individual components to system-wide overviews. This approach helps teams maintain up-to-date documentation, facilitating easier onboarding and navigation of legacy systems. C4Diagrammer integrates with development environments, allowing developers to generate, validate, and preview diagrams directly from their IDEs. The tool is particularly effective with Claude models for generating accurate Mermaid.js diagrams, although it supports other models with varying success. The architecture of C4Diagrammer is modular, ensuring extensibility and maintainability, with components dedicated to prompt management, diagram generation, and validation.
Features
- README generation capabilities - provides a prompt that when used with the MCP filesystem tool, generates a README.C4Diagrammer.md in every directory where the model finds source code.
- C4 diagram generation - provides a prompt that when used with the MCP filesystem tool, generates a C4Component.C4Diagrammer.md in every directory where the model finds source code.
- Rollup C4 diagram generation - provides a prompt that when used with the MCP filesystem tool, generates a 'master' C4Context or C4Container diagram based on the contents of every README.C4Diagrammer.md file that the model finds in the directory system.
- Mermaid Support - Various tools to help validate & improve quality of generated Mermaid.js diagrams.
- Browser-based preview functionality.