Skip to main content
Glama
teflux77
by teflux77

title: BPMN Collab MCP emoji: 🔀 colorFrom: blue colorTo: indigo sdk: docker app_port: 7860 license: mit

bpmn-collab-mcp

Human + AI collaborative BPMN 2.0 modeling, over MCP.

  • The AI creates and edits standard BPMN 2.0 XML (importable in Signavio, ARIS, Camunda…).

  • Humans edit the same diagram in a bpmn-js canvas.

  • Every human edit is stored as a versioned revision; the AI reads what changed (get_changes_since) before its next move.

  • Comments are anchored on BPMN element ids, so a review can target one gateway instead of the whole diagram.

  • Business metadata lives inside the XML (extensionElements, namespace pm:), not in side documents.

  • Deterministic validation guards the file: the LLM proposes, the rules dispose.

Status: proof of concept skeleton. See docs/architecture.md and the roadmap below.

Related MCP server: MCP-GLSP

Quick start

npm install
npm run build
npm test
npm start            # http://localhost:7860 (listens on 127.0.0.1; set HOST=0.0.0.0 in containers)
  • MCP endpoint (streamable HTTP, stateless): http://localhost:7860/mcp

  • Human canvas: http://localhost:7860/canvas?id=<diagramId> (the id and URL are returned by create_diagram)

  • Inline canvas: in hosts that support MCP Apps (Claude web/Desktop), create_diagram and get_diagram render the same canvas in the conversation (ui://bpmn-collab/canvas.html); it talks to the server through app-only canvas_* tools and can post "apply the open AI requests" into the chat.

  • Environment: PORT (7860), HOST (127.0.0.1), PUBLIC_URL, DATA_DIR, ALLOWED_HOSTS (extra Host names accepted, comma-separated; localhost and the PUBLIC_URL host are always accepted).

Add it to Claude as a custom connector (remote MCP URL, must be public HTTPS), or test locally with the MCP Inspector:

npx @modelcontextprotocol/inspector

MCP tools

Tool

Purpose

create_diagram / list_diagrams

Start or list diagrams

get_diagram

Current XML (with human edits) + open comments

get_changes_since

Semantic diff by element id between versions (bpmn-js-differ + pm: metadata): added, removed, modified fields, moved

update_diagram

Save a revision (optimistic concurrency via baseVersion, validated; XML without DI is auto-laid out until a human edits)

validate_diagram

Deterministic rules: bpmnlint recommended, layout rules from @miragon/bpmnlint-plugin-rules, project rules (src/lint/, src/layout-check.ts)

list_comments / add_comment / resolve_comment

Element-anchored review threads; ai-request comments are human instructions the AI applies then resolves

export_diagram

Plain BPMN XML

Deploying

Production runs on a VPS behind Caddy (HTTPS), with GitHub Actions publishing the image to GHCR and a pull-based update on the server: see docs/deploy.md. /mcp is restricted to Anthropic's egress range and the admin IP, the canvas and API sit behind basic auth, until OAuth (docs/oauth-plan.md).

The Dockerfile is plain and also runs elsewhere (set PUBLIC_URL, DATA_DIR, and ALLOWED_HOSTS when behind a proxy with another host name).

Roadmap

  1. Publish the project rules (src/lint/rules.ts, already in bpmnlint format) as a bpmnlint-plugin-* package.

  2. DMN (dmn-js) and forms (form-js) linked from pm:decisionRef / pm:formRef.

  3. Process architecture graph (levels, parent/child, calledElement links) kept next to the BPMN files.

  4. Review pass: LLM critique emitted as comments with category and severity.

  5. Auth, persistent storage (SQLite/Postgres), live co-editing (Yjs) if needed.

License: MIT

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    Enables AI agents to create, manipulate, and manage BPMN 2.0 diagrams programmatically, with support for Mermaid conversion, auto-layout, and file persistence.
    24
    13
    MIT
  • A
    license
    Not graded
    quality
    F
    maintenance
    Enables AI-driven graphical diagram creation and manipulation using natural language, with support for BPMN workflows, analysis, and manual editing via the Model Context Protocol.
    1
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables AI agents to read, explain, lint, and edit existing BPMN 2.0 files in a repository while preserving diagram layout and structural integrity through parsed-document patch operations.
    Apache 2.0