An MCP server that seamlessly creates diagrams using the Python diagrams package DSL
Reason this release was yanked:
Superceeded by diagram agent skill in the deploy-on-aws plugin https://github.com/awslabs/agent-plugins/tree/main/plugins/deploy-on-aws
Project description
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
uvfrom Astral or the GitHub README - Install Python using
uv python install 3.10 - 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": {
"awslabs.aws-diagram-mcp-server": {
"command": "uvx",
"args": ["awslabs.aws-diagram-mcp-server"],
"env": {
"FASTMCP_LOG_LEVEL": "ERROR"
},
"autoApprove": [],
"disabled": false
}
}
}
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file awslabs_aws_diagram_mcp_server-0.8.2025141004.tar.gz.
File metadata
- Download URL: awslabs_aws_diagram_mcp_server-0.8.2025141004.tar.gz
- Upload date:
- Size: 62.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8583018732db5e416c2fef99432f3f38beec4d59a038b31d854f82a0a797159e
|
|
| MD5 |
d7c11c057e74e5bcfce839a2445c43bd
|
|
| BLAKE2b-256 |
79ad9c8c12c349d59037d82421b7074e2b638defc34efffcbdbfae7b0a033c3f
|
Provenance
The following attestation bundles were made for awslabs_aws_diagram_mcp_server-0.8.2025141004.tar.gz:
Publisher:
release.yml on awslabs/mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
awslabs_aws_diagram_mcp_server-0.8.2025141004.tar.gz -
Subject digest:
8583018732db5e416c2fef99432f3f38beec4d59a038b31d854f82a0a797159e - Sigstore transparency entry: 196632059
- Sigstore integration time:
-
Permalink:
awslabs/mcp@924451f2bea4997e9831057e629a448b7818937f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/awslabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@924451f2bea4997e9831057e629a448b7818937f -
Trigger Event:
schedule
-
Statement type:
File details
Details for the file awslabs_aws_diagram_mcp_server-0.8.2025141004-py3-none-any.whl.
File metadata
- Download URL: awslabs_aws_diagram_mcp_server-0.8.2025141004-py3-none-any.whl
- Upload date:
- Size: 23.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
047f0c9ed8ec015c040c25a6322788732033bed018b87f14f9d92c475368da02
|
|
| MD5 |
6de931991a060cf389bd35592c7f1149
|
|
| BLAKE2b-256 |
ca4d2fa49a336660b72560241a3e31bcda3f47da383327b4e787eb4b45d4ecc0
|
Provenance
The following attestation bundles were made for awslabs_aws_diagram_mcp_server-0.8.2025141004-py3-none-any.whl:
Publisher:
release.yml on awslabs/mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
awslabs_aws_diagram_mcp_server-0.8.2025141004-py3-none-any.whl -
Subject digest:
047f0c9ed8ec015c040c25a6322788732033bed018b87f14f9d92c475368da02 - Sigstore transparency entry: 196632061
- Sigstore integration time:
-
Permalink:
awslabs/mcp@924451f2bea4997e9831057e629a448b7818937f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/awslabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@924451f2bea4997e9831057e629a448b7818937f -
Trigger Event:
schedule
-
Statement type: