Enables creation of AWS architecture diagrams using AWS service icons and components like Lambda, DynamoDB, API Gateway, and other AWS services through Python code generation.
Supports deployment and execution of the diagram generation server through Docker containers for creating AWS and other technical diagrams.
AWS Diagram MCP Server
Model Context Protocol (MCP) server for AWS Diagrams
This MCP server that seamlessly creates diagrams using the Python diagrams package DSL. This server allows you to generate AWS diagrams, sequence diagrams, flow diagrams, and class diagrams using Python code.
Prerequisites
- Install
uv
from Astral or the GitHub README - Install Python using
uv python install 3.10
- Install GraphViz https://www.graphviz.org/
Installation
Cursor | VS Code |
---|---|
Configure the MCP server in your MCP client configuration.
directly from Git:
Features
The Diagrams MCP Server provides the following capabilities:
- Generate Diagrams: Create professional diagrams using Python code
- Multiple Diagram Types: Support for AWS architecture, sequence diagrams, flow charts, class diagrams, and more
- Customization: Customize diagram appearance, layout, and styling
- Security: Code scanning to ensure secure diagram generation
Quick Example
Development
Testing
The project includes a comprehensive test suite to ensure the functionality of the MCP server. The tests are organized by module and cover all aspects of the server's functionality.
To run the tests, use the provided script:
This script will automatically install pytest and its dependencies if they're not already installed.
Or run pytest directly (if you have pytest installed):
To run with coverage:
For more information about the tests, see the tests README.
Development Dependencies
To set up the development environment, install the development dependencies:
This will install the required dependencies for development, including pytest, pytest-asyncio, and pytest-cov.
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Enables users to generate professional AWS architecture diagrams, sequence diagrams, flow charts, and class diagrams using Python code through the diagrams package. Supports customizable styling and secure diagram generation for cloud infrastructure visualization.
Related MCP Servers
- -security-license-qualityThis server provides guidance and recommendations based on AWS's Well-Architected Framework for cloud architectures, enabling analysis and review focused on operational excellence, security, reliability, performance efficiency, cost optimization, and sustainability.Last updated -
- AsecurityAlicenseAqualityA command-line interface and API that allows users to analyze and visualize AWS cloud spending data by enabling Claude to query AWS Cost Explorer through natural language conversations.Last updated -4122MIT License
- -securityAlicense-qualityConverts code into UML diagrams and flowcharts through static analysis, enabling visualization of code structure and explanation of functionality.Last updated -28MIT License
- AsecurityAlicenseAqualityGenerates Apache ECharts diagrams and charts with AI dynamically, supporting all ECharts features and exporting to png, svg, and option formats.Last updated -1710578MIT License