About Openflowkit
Openflowkit is an MCP server published by Vrun-design in the Content category: 100% Free, Open-source local-first AI diagramming for architecture diagrams and flowcharts with animated exports. Conduid read 27 tools from its source: add_diagram, add_shape, analyze_codebase, delete_shapes, discover_architecture, drift_report and 21 more. No package is published for it, so it installs from a source checkout.
The repository has 1.0K stars and 188 forks, and its last commit was on 7 Nov 2026. The latest release is v2.2.0 (7 Nov 2026): Comments on the canvas. It follows mcp-v0.3.0 (7 Nov 2026), and the 5 most recent releases go back to mcp-v0.2.3 (12 Oct 2026). Its topics include architecture-diagrams, code-to-diagram, design-tool, devtools, diagramming and flowchart.
Install
git clone https://github.com/Vrun-design/openflowkitTools (27)
add_diagramAdd a new diagram to the page. Queued for the user to review; returns compile errors to fix.| Parameter | Type | Description |
|---|---|---|
| dsl * | any |
add_shapeAdd one hand-drawn shape (not a diagram: use add_diagram for those). Returns its id.| Parameter | Type | Description |
|---|---|---|
| kind * | string | |
| label | string | |
| x * | number | |
| y * | number |
analyze_codebaseWalk a directory on disk and report detected cloud platform, services, top-level structure, and language breakdown. No network access — pure local filesystem scan. Useful to seed an architecture diagram.| Parameter | Type | Description |
|---|---|---|
| maxFiles | number | Cap on files scanned. Defaults to 500. |
| rootPath * | string | Absolute path to the project root directory. |
delete_shapesDelete shapes, connectors, or whole diagrams by frame id. Queued for review.| Parameter | Type | Description |
|---|---|---|
| ids * | any |
discover_architectureWalk a local repo (compose, Dockerfiles, k8s, terraform, package manifests, datastore and HTTP-client usage) and return a proposed OFK C4 workspace as DSL, with evidence per unit. Deterministic, offline; review the proposal before committing it.| Parameter | Type | Description |
|---|---|---|
| maxFiles | number | Cap on files scanned. Defaults to 2000. |
| name | string | System name; defaults to the repo directory name. |
drift_reportCompare an architecture model (inline dsl, a documentId, or else architecture.ofk in path) against a repository. Returns missing (in repo, not in model), undrawn (in model, no repo evidence) and changed (name matches, tech or dir differs) with evidence lines.explain_elementEverything known about one element: the model entry, its relations, repository evidence (when a path is given) and the ADR markdown files its links point at.| Parameter | Type | Description |
|---|---|---|
| elementId * | string | Element id (shop.api) or display name. |
find_iconsIcon ids for a concept or product ("database", "queue", "lambda"). Use the returned ids in `icon:` attributes; never invent one.| Parameter | Type | Description |
|---|---|---|
| concept * | string |
get_starter_templateReturn the OpenFlow DSL for a named starter template. Use list_starter_templates to discover available names.| Parameter | Type | Description |
|---|---|---|
| name * | string | Template name (one of: |
get_syntaxThe OpenFlow DSL grammar, so you can write source for render_diagram. Pass a family (flowchart, architecture, sequence, state, erd, class, gitgraph, mindmap, chart, wireframe) for just that section.| Parameter | Type | Description |
|---|---|---|
| family | string | One family’s section; omit for the full reference. |
get_viewWhat the person is looking at in the editor now: the page, Canvas or Map mode, their selection (ids, kinds, labels), the camera, and the top-level shapes on screen. Use it to resolve "this", "here" or "the one I selected" before acting.list_diagram_node_typesQuick reference for the OpenFlow DSL vocabulary: family names, shape words, edge arrows, and the wireframe controls and screen frames. Call get_syntax for the full grammar.list_diagramsEvery diagram in the document: frame id, page, family, title, and whether it is in scope for changes.list_shapesHand-drawn shapes in scope (not part of a diagram): id, kind, label, position, size, locked.list_starter_templatesList built-in OpenFlow starter templates that can be loaded without any AI call. Returns names, titles, categories, and one-line summaries.move_shapesMove shapes, or whole diagrams by frame id, by dx/dy pixels (+x right, +y down). Queued for review.| Parameter | Type | Description |
|---|---|---|
| dx * | number | |
| dy * | number | |
| ids * | any |
openflow_createCreate an empty file-mode document in this process.| Parameter | Type | Description |
|---|---|---|
| name | string |
openflow_openLoad a canonical document from disk into file mode and return its id.| Parameter | Type | Description |
|---|---|---|
| path * | string | Absolute or cwd-relative path to a .openflow.json file. |
openflow_saveWrite a document to disk (svg: true also writes the first page as a .svg beside it). With a paired editor and no documentId, saves what the editor currently shows.| Parameter | Type | Description |
|---|---|---|
| documentId | string | File-mode document; omit to save the paired editor document (or, in file mode, the one opened or created last). |
| path * | string | Inside the server's working directory; .openflow.json, .ofk or .json only. |
| svg | boolean | Also write the first page as <same name>.svg next to the file. |
read_diagramThe full DSL of one diagram. Call it for any diagram not shown in full before changing or explaining it.| Parameter | Type | Description |
|---|---|---|
| frame_id * | string |
render_diagramDraw a diagram from OpenFlow DSL or Mermaid and show it inline. Pass `source` (flowchart, architecture, sequence, state, ER and more; call get_syntax first if you are unsure of the DSL). Returns the picture plus the canonical DSL (edit it and call again to revise) and a link that opens it in the editor. Invalid source returns diagnostics with line numbers: fix and retry.| Parameter | Type | Description |
|---|---|---|
| source * | string | OpenFlow DSL or Mermaid, at most 100 KB. |
| theme | string | Picture theme; default light. |
| title | string | Diagram title. |
selectSelect shapes and connectors on the page in view and bring them on screen, so the person sees what you mean ("these three"). Changes the view only, not the document; the person can carry on from the selection.server_infoReturn the server version and the tools, resources and prompts it serves. Useful when debugging client connections.style_shapesColour shapes. Pass only what changes. Queued for review.| Parameter | Type | Description |
|---|---|---|
| fill | any | |
| ids * | any | |
| stroke | any | |
| stroke_style | string | |
| text_color | any |
update_diagramReplace an in-scope diagram with its complete new DSL (not a diff). Queued for the user to review; returns compile errors to fix.| Parameter | Type | Description |
|---|---|---|
| dsl * | any | |
| frame_id * | string |
validate_openflow_dslParse and compile OpenFlow DSL — or Mermaid, Structurizr DSL or D2, converted first — and return structured diagnostics (code, severity, line, column, message, hint), the same check as `openflowkit validate`. `ok` is false on any error: text that cannot be drawn, or a line the parser could not read (create_diagram would draw without it). Warnings name guesses (an unknown word, a misspelled header) that still draw. For another language, `converted.dsl` is what it became and `converted.losses` name the lines of your text that did not carry over; diagnostics then refer to `converted.dsl`.| Parameter | Type | Description |
|---|---|---|
| dsl * | string | OpenFlow DSL, Mermaid, Structurizr DSL or D2 source to validate. |
whoamiLocal-only status: whether an editor is paired, and the documents this server holds.Security checks
6 checks have not been run yet.