Skip to main content

An MCP server that seamlessly creates diagrams using the Python diagrams package DSL

Reason this release was yanked:

deprecated and removed from source

Project description

AWS Diagram MCP Server

An 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.

Tests

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

Here are some ways you can work with MCP across AWS, and we'll be adding support to more products including Amazon Q Developer CLI soon: (e.g. for Amazon Q Developer CLI MCP, ~/.aws/amazonq/mcp.json):

{
  "mcpServers": {
    "aws-diagram-mcp-server": {
      "command": "uvx",
      "args": ["awslabs.aws-diagram-mcp-server-mcp-server"],
      "env": {
        "SHELL": "/usr/bin/zsh"
      }
    }
  }
}

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

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.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

awslabs_aws_diagram_mcp_server-0.8.111441.tar.gz (58.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file awslabs_aws_diagram_mcp_server-0.8.111441.tar.gz.

File metadata

File hashes

Hashes for awslabs_aws_diagram_mcp_server-0.8.111441.tar.gz
Algorithm Hash digest
SHA256 d4d48f4782caa31e0d7c1b4082f92d201fb86c97ff6b87e4fa83e15c6e1579a4
MD5 dc45c21698c7c4d719608a4bd35416a0
BLAKE2b-256 c88c4b245c98eaf1bffb261007249da1ba1b4cc8eff928a2680f72ff8fea6145

See more details on using hashes here.

Provenance

The following attestation bundles were made for awslabs_aws_diagram_mcp_server-0.8.111441.tar.gz:

Publisher: release.yml on awslabs/mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file awslabs_aws_diagram_mcp_server-0.8.111441-py3-none-any.whl.

File metadata

File hashes

Hashes for awslabs_aws_diagram_mcp_server-0.8.111441-py3-none-any.whl
Algorithm Hash digest
SHA256 fdedba87dd5d1fb68309977c0932f10807524bb405702dd4e574d06f96160bcd
MD5 da8c692f02a1c587389e2fe071425645
BLAKE2b-256 a8040b992420e834f8e85ace4dcf79dacd222a0eaced9614bbe07a7450a8594c

See more details on using hashes here.

Provenance

The following attestation bundles were made for awslabs_aws_diagram_mcp_server-0.8.111441-py3-none-any.whl:

Publisher: release.yml on awslabs/mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page