Skip to main content

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

Project description

SCP Diagram MCP Server

An MCP server that generates SCP (Samsung Cloud Platform) architecture diagrams and Terraform IaC reference code using the Python diagrams package.

Features

  • Generate professional SCP architecture diagrams
  • Support for multiple diagram types (SCP, sequence, flow, class, k8s, onprem, custom)
  • List available SCP icons and services
  • Get diagram examples and templates
  • Query SCP Terraform provider documentation (resources, data-sources)

The SCP icon provider is bundled inside this package, so no post-install icon generation step is required.

Prerequisites

Two things must be available on the machine that runs the MCP client:

  1. uv — used to download and run the server.
    • Windows: irm https://astral.sh/uv/install.ps1 | iex
    • macOS/Linux: curl -LsSf https://astral.sh/uv/install.sh | sh
  2. Graphviz — the diagrams package shells out to the Graphviz dot executable to render PNGs. It is a native program and must be installed separately and available on PATH.
    • Windows: install from graphviz.org (or winget install Graphviz.Graphviz) and ensure the bin directory is on PATH
    • macOS: brew install graphviz
    • Linux (Debian/Ubuntu): sudo apt-get install graphviz

uvx installs the Python dependencies (diagrams, mcp, pydantic, bandit) automatically; you do not need to pip install anything yourself.

Usage

Register with an MCP client

Once the package is published, add it to your MCP client configuration. uvx downloads and runs it on demand — no manual install:

{
  "mcpServers": {
    "scp-diagram": {
      "command": "uvx",
      "args": ["scp-diagram-mcp-server"]
    }
  }
}

Run locally from source (development)

uv run python -m scp_diagram_mcp_server.server

Tools

Tool Purpose
list_icons Discover available providers/services/icons (use provider_filter="scp")
get_diagram_examples Get example diagram code by type
generate_diagram Render a PNG from diagrams DSL code
list_terraform_resources List SCP Terraform resource/data-source types
get_terraform_examples Get example HCL + attribute schema for SCP resources

Regenerating the bundled SCP provider

The provider under scp_diagram_mcp_server/scp/ is generated from the SCP icon asset package and committed to the repo. Only re-run this when the icons change:

python scripts/generate_scp_provider.py [icon_source_dir]

License

Apache-2.0

Project details


Download files

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

Source Distribution

scp_diagram_mcp_server-1.0.2.tar.gz (621.6 kB view details)

Uploaded Source

Built Distribution

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

scp_diagram_mcp_server-1.0.2-py3-none-any.whl (908.9 kB view details)

Uploaded Python 3

File details

Details for the file scp_diagram_mcp_server-1.0.2.tar.gz.

File metadata

File hashes

Hashes for scp_diagram_mcp_server-1.0.2.tar.gz
Algorithm Hash digest
SHA256 634b95296d7610d13f15ce193a4a148c25239d3b414fac87d3c59332d4fed107
MD5 f011afc78834be519460028d3a4fc9d8
BLAKE2b-256 d643ffb79fb43d02b5cbb556ac12ea9aaf75d4de891c393c592aa1702261b223

See more details on using hashes here.

File details

Details for the file scp_diagram_mcp_server-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for scp_diagram_mcp_server-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 251b51a5ab7d21194ee661184d39f3a3aa828d6251cc03c2505f32ae010e19ef
MD5 8a372b5a7cc56cbee940477c86784873
BLAKE2b-256 7aa778c23d2a5399aec03d51df504ee635704be4d2e8b3a63a9f17cb2d6fea05

See more details on using hashes here.

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