awslabs.aws-diagram-mcp-server

v1.0.23
awslabs.aws-diagram-mcp-server Checked 1 day ago Published 8 months ago

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

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

generate_diagram

[DEPRECATED] Generate a diagram from Python code using the diagrams package. DEPRECATED: This server is deprecated. Use the diagram agent skill instead: https://github.com/awslabs/agent-plugins/tree/main/plugins/deploy-on-aws This tool accepts Python code as a string that uses the diagrams package DSL and generates a PNG diagram without displaying it. The code is executed with show=False to prevent automatic display. USAGE INSTRUCTIONS: Never import. Start writing code immediately with `with Diagram(` and use the icons you found with list_icons. 1. First use get_diagram_examples to understa…

ParameterTypeDescription
code *stringPython code using the diagrams package DSL. The runtime already imports everything needed so you can start immediately using `with Diagram(`
filenameThe filename to save the diagram to. If not provided, a random name will be generated.
timeoutintegerThe timeout for diagram generation in seconds. Default is 90 seconds.
workspace_dirThe user's current workspace directory. CRITICAL: Client must always send the current workspace directory when calling this tool! If provided, diagrams will be saved to a 'generated-diagrams' subdirec…

get_diagram_examples

[DEPRECATED] Get example code for different types of diagrams. DEPRECATED: This server is deprecated. Use the diagram agent skill instead: https://github.com/awslabs/agent-plugins/tree/main/plugins/deploy-on-aws This tool provides ready-to-use example code for various diagram types. Use these examples to understand the syntax and capabilities of the diagrams package before creating your own custom diagrams. USAGE INSTRUCTIONS: 1. Select the diagram type you're interested in (or 'all' to see all examples) 2. Study the returned examples to understand the structure and syntax 3. Use these exam…

ParameterTypeDescription
diagram_typestringType of diagram example to return. Options: aws, sequence, flow, class, k8s, onprem, custom, all

list_icons

[DEPRECATED] List available icons from the diagrams package, with optional filtering. DEPRECATED: This server is deprecated. Use the diagram agent skill instead: https://github.com/awslabs/agent-plugins/tree/main/plugins/deploy-on-aws This tool dynamically inspects the diagrams package to find available providers, services, and icons that can be used in diagrams. USAGE INSTRUCTIONS: 1. Call without filters to get a list of available providers 2. Call with provider_filter to get all services and icons for that provider 3. Call with both provider_filter and service_filter to get icons for a s…

ParameterTypeDescription
provider_filterFilter icons by provider name (e.g., "aws", "gcp", "k8s")
service_filterFilter icons by service name (e.g., "compute", "database", "network")