Skip to main content

MCP BPMN 2.0 Diagram Server

Project description

appkit-mcp-bpmn

MCP server component for generating and viewing BPMN 2.0 diagrams.

Features

  • Generate BPMN diagrams from natural language descriptions via LLM
  • Save & validate BPMN 2.0 XML with schema-aware validation
  • Render diagrams in-browser using bpmn-js Viewer (read-only)
  • Download diagrams as .bpmn files
  • Public API — no authentication required

MCP Tools

generate_bpmn_diagram

Generate a BPMN 2.0 diagram from a natural language description.

Parameters:

  • description (str, required): Workflow description in natural language
  • diagram_type (str, optional): "process" | "collaboration" | "choreography" (default: "process")

Returns: JSON with {success, id, xml, download_url, view_url, error}

save_bpmn_diagram

Save pre-built BPMN 2.0 XML to the filesystem.

Parameters:

  • xml (str, required): Complete BPMN 2.0 XML string

Returns: JSON with {success, id, xml, download_url, view_url, error}

MCP Resource

ui://appkit/bpmn_viewer.html

Interactive BPMN diagram viewer powered by bpmn-js. Renders tool results via the MCP App ui/notifications/tool-result protocol.

Features:

  • Zoom to fit viewport
  • Download diagram as .bpmn file
  • Error display for invalid XML

Quick Start

from appkit_mcp_bpmn.server import create_bpmn_mcp_server

mcp = create_bpmn_mcp_server()
app = mcp.http_app(path="/mcp", transport="streamable-http")

Example Workflow

1. User: "Create an expense approval workflow"
2. LLM calls generate_bpmn_diagram(description="...", diagram_type="process")
3. Server generates XML via LLM, validates, saves to uploaded_files/
4. Returns {id, view_url, download_url}
5. MCP App renders diagram in bpmn-js Viewer

Dependencies

  • appkit-commons — Configuration and logging
  • appkit-mcp-commons — Shared MCP base models
  • lxml — XML parsing and validation
  • openai (optional) — LLM generation via OpenAI API

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

appkit_mcp_bpmn-1.7.0.tar.gz (44.9 kB view details)

Uploaded Source

Built Distribution

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

appkit_mcp_bpmn-1.7.0-py3-none-any.whl (37.6 kB view details)

Uploaded Python 3

File details

Details for the file appkit_mcp_bpmn-1.7.0.tar.gz.

File metadata

  • Download URL: appkit_mcp_bpmn-1.7.0.tar.gz
  • Upload date:
  • Size: 44.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for appkit_mcp_bpmn-1.7.0.tar.gz
Algorithm Hash digest
SHA256 27f16b9c1358b3cefd92fafda81dcbdbd592d3372412cd8e8ba74856918e58aa
MD5 0740d40ef23a7a08ea905b34733cbf8a
BLAKE2b-256 00ef15a847e20beb1cfc5c7df025646d478530a2816f25dc16e9df514d772b72

See more details on using hashes here.

File details

Details for the file appkit_mcp_bpmn-1.7.0-py3-none-any.whl.

File metadata

  • Download URL: appkit_mcp_bpmn-1.7.0-py3-none-any.whl
  • Upload date:
  • Size: 37.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for appkit_mcp_bpmn-1.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8a8f8b2018c24240195c66e6323436c7b9ff5f5f3b969be58260f3367c6f56b6
MD5 d878925edf7e431c64b6082b61363e56
BLAKE2b-256 ad6f94bb836a680013651175891c59873dbf464826f808b8d37cf0af9f1047e5

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