# OpenFlowKit MCP server

> Draw architecture diagrams on a live canvas or edit diagram files, and map a repository with cited code references.

- Listing: https://mcp.tc/i/openflowkit-2
- Connect: this is a local (stdio) server; install it on your machine (see Install). The listing link is a page, not an MCP endpoint.
- Type: local (stdio)
- Auth: no API key needed
- Category: [Developer Tools](https://mcp.tc/c/developer-tools)
- Vendor: openflowkit
- Homepage: <https://docs.openflowkit.com/cli/>
- Repository: <https://github.com/openflowkit/openflowkit>
- Package: npm `openflowkit`

## About

OpenFlowKit gives an agent tools to create, update, restyle and export architecture diagrams. It can draw on the open OpenFlowKit canvas, take screenshots to check its work, convert Mermaid, D2 or Structurizr text, edit .openflow.json files in a repo, and analyze a codebase to map its architecture and report drift.

It runs locally over stdio through the npm package openflowkit (npx -y openflowkit mcp, Node 20.11+). No account or API key is needed. To draw on the live canvas, click Connect agent in the app to get a config with a pairing token; without the app open, the tools work on files.

## What it can do

- Create and update diagrams from text or Mermaid
- Restyle, move, add and delete diagram elements
- Take screenshots of the canvas for self-checking
- Export to SVG, PNG, PDF, JSON or animated SVG
- Edit .openflow.json diagram files in a repository
- Discover architecture from a codebase and report drift
- Search icons and use starter templates

## Example prompts

- "Draw the architecture of this repository."
- "Make the boxes I selected red and add a cache in front of the API."
- "Turn the Mermaid in our README into an editable diagram."
- "Compare architecture.ofk with the code and tell me what drifted."

## Install

### Claude Code

1. Run this in a terminal, in your project folder:

```bash
claude mcp add --transport stdio openflowkit-2 -- npx -y openflowkit mcp
```

2. Start Claude Code and type `/mcp`. **openflowkit-2** should show as connected.

Add `--scope user` to make it available in every project.

### Claude Desktop

1. Open **Settings → Developer → Edit Config**. It opens `claude_desktop_config.json`. Add:

`claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "openflowkit-2": {
      "command": "npx",
      "args": [
        "-y",
        "openflowkit",
        "mcp"
      ]
    }
  }
}
```

2. Save the file and restart Claude Desktop.

Needs Node.js on your computer. The file lives in `~/Library/Application Support/Claude/` on macOS and `%APPDATA%\Claude\` on Windows.

### Cursor

[Add to Cursor](<https://cursor.com/install-mcp?name=openflowkit-2&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIm9wZW5mbG93a2l0IiwibWNwIl19>) (opens Cursor)

Or add it by hand to `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` (this project):

`mcp.json`:

```json
{
  "mcpServers": {
    "openflowkit-2": {
      "command": "npx",
      "args": [
        "-y",
        "openflowkit",
        "mcp"
      ]
    }
  }
}
```

Needs Node.js on your computer.

### VS Code

[Install in VS Code](<https://vscode.dev/redirect/mcp/install?name=openflowkit-2&config=%7B%22type%22%3A%22stdio%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22openflowkit%22%2C%22mcp%22%5D%7D>) (opens VS Code)

Or from a terminal:

```bash
code --add-mcp '{"name":"openflowkit-2","type":"stdio","command":"npx","args":["-y","openflowkit","mcp"]}'
```

Or commit it to the repo in `.vscode/mcp.json`:

`.vscode/mcp.json`:

```json
{
  "servers": {
    "openflowkit-2": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "openflowkit",
        "mcp"
      ]
    }
  }
}
```

Needs Node.js on your computer.

### Devin Desktop

1. Add it to `~/.config/devin/mcp_config.json` (macOS and Linux) or `%APPDATA%\devin\mcp_config.json` (Windows):

`mcp_config.json`:

```json
{
  "mcpServers": {
    "openflowkit-2": {
      "command": "npx",
      "args": [
        "-y",
        "openflowkit",
        "mcp"
      ]
    }
  }
}
```

2. Refresh the MCP server list in Cascade.

Devin Desktop is the new name for Windsurf.

### Codex

```bash
codex mcp add openflowkit-2 -- npx -y openflowkit mcp
```

Or edit `~/.codex/config.toml` directly:

`config.toml`:

```toml
[mcp_servers.openflowkit-2]
command = "npx"
args = ["-y", "openflowkit", "mcp"]
```

Needs Node.js on your computer.

### Gemini CLI

```bash
gemini mcp add openflowkit-2 npx -- -y openflowkit mcp
```

This adds it to the current project. Add `-s user` to use it everywhere.

### Any client

Most clients that start local servers accept this shape:

```json
{
  "mcpServers": {
    "openflowkit-2": {
      "command": "npx",
      "args": [
        "-y",
        "openflowkit",
        "mcp"
      ]
    }
  }
}
```

Zed puts servers under `context_servers` in its settings, with the same `command`, `args` and `env` fields.

Needs Node.js on your computer.

## Recent changes

- 2026-11-07 17:26 UTC: New version 0.3.0 (was 0.2.4), read from npm. Source: automatic check.
- 2026-10-13 07:29 UTC: New version 0.2.4 (was 0.2.3), read from npm. Source: automatic check.
- 2026-10-13 04:27 UTC: Tracking started: version 0.2.3. Source: automatic check.

More on the History tab, with descriptions before and after for the newest entries: https://mcp.tc/i/openflowkit-2#history (Atom feed: https://mcp.tc/i/openflowkit-2/history.xml). It records what mcp.tc's anonymous checks saw, every 3 hours where the tool list can be read without sign-in; it is not a security review.

## Details

- Server version: 0.3.0
- Last checked: 2026-10-13
- Listed: 2026-10-13
- Updated: 2026-10-26

---
Source: https://mcp.tc/i/openflowkit-2 (mcp.tc is an independent directory, not affiliated with this server's publisher). Corrections: https://mcp.tc/report
