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.8.0.tar.gz (50.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.8.0-py3-none-any.whl (42.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: appkit_mcp_bpmn-1.8.0.tar.gz
  • Upload date:
  • Size: 50.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.8.0.tar.gz
Algorithm Hash digest
SHA256 f63327cf72bc056b41e88faa2e8e0fdbd604496038b84975a1062933cb6c1499
MD5 8e48c606373b6cd490a0ca21bedecf88
BLAKE2b-256 c16d48080216bb81c2b811a7aecf51e8c8eab04e8b206bffd7fe8ffd30b24622

See more details on using hashes here.

File details

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

File metadata

  • Download URL: appkit_mcp_bpmn-1.8.0-py3-none-any.whl
  • Upload date:
  • Size: 42.0 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.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 600093b366a6da1acd4575e2c8ce892c5b7c2a905c6859bde10afca97fd919d2
MD5 cc667ec6c4643d9786e4e097b7d527d8
BLAKE2b-256 b8e3547d2c757d9a5c3960b543ea0d45318cdafb20d363f383a5ec42e8dd45d8

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