Skip to main content
Glama

AWS Diagram MCP Server

by lukeburciu

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

  1. Install uv from Astral or the GitHub README
  2. Install Python using uv python install 3.10
  3. Install GraphViz https://www.graphviz.org/

Installation

CursorVS Code

Configure the MCP server in your MCP client configuration.

directly from Git:

{ "mcpServers": { "aws-diagram-mcp-server": { "type": "stdio", "command": "uvx", "args": [ "--from", "git+https://github.com/lukeburciu/aws-diagrams-mcp-server@main", "aws-diagram-mcp-server" ], "env": { "FASTMCP_LOG_LEVEL": "ERROR" }, "autoApprove": [], "disabled": false } } }

Features

The Diagrams MCP Server provides the following capabilities:

  1. Generate Diagrams: Create professional diagrams using Python code
  2. Multiple Diagram Types: Support for AWS architecture, sequence diagrams, flow charts, class diagrams, and more
  3. Customization: Customize diagram appearance, layout, and styling
  4. Security: Code scanning to ensure secure diagram generation

Quick Example

from diagrams import Diagram from diagrams.aws.compute import Lambda from diagrams.aws.database import Dynamodb from diagrams.aws.network import APIGateway with Diagram("Serverless Application", show=False): api = APIGateway("API Gateway") function = Lambda("Function") database = Dynamodb("DynamoDB") api >> function >> database

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:

./run_tests.sh

This script will automatically install pytest and its dependencies if they're not already installed.

Or run pytest directly (if you have pytest installed):

pytest -xvs tests/

To run with coverage:

pytest --cov=awslabs.aws_diagram_mcp_server --cov-report=term-missing tests/

For more information about the tests, see the tests README.

Development Dependencies

To set up the development environment, install the development dependencies:

uv pip install -e ".[dev]"

This will install the required dependencies for development, including pytest, pytest-asyncio, and pytest-cov.

Deploy Server
-
security - not tested
A
license - permissive license
-
quality - not tested

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.

  1. Prerequisites
    1. Installation
      1. directly from Git:
    2. Features
      1. Quick Example
        1. Development
          1. Testing
          2. Development Dependencies

        Related MCP Servers

        • -
          security
          -
          license
          -
          quality
          This 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 -
        • A
          security
          A
          license
          A
          quality
          A 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 -
          4
          122
          MIT License
          • Linux
          • Apple
        • -
          security
          A
          license
          -
          quality
          Converts code into UML diagrams and flowcharts through static analysis, enabling visualization of code structure and explanation of functionality.
          Last updated -
          28
          MIT License
          • Linux
          • Apple
        • A
          security
          A
          license
          A
          quality
          Generates Apache ECharts diagrams and charts with AI dynamically, supporting all ECharts features and exporting to png, svg, and option formats.
          Last updated -
          17
          105
          78
          MIT License
          • Apple

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/lukeburciu/aws-diagrams-mcp-server'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server