Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Fcp Drawio

БесплатноНе проверен

MCP server that enables LLMs to create and edit draw.io diagrams using high-level intent commands, with automatic layout and styling.

GitHubEmbed

Описание

MCP server that enables LLMs to create and edit draw.io diagrams using high-level intent commands, with automatic layout and styling.

README

MCP server for creating and editing draw.io diagrams through intent-level commands.

What It Does

fcp-drawio lets LLMs build architecture diagrams, flowcharts, and system maps by describing what they want -- not how to draw it. The LLM sends high-level operations like add svc AuthService theme:blue and connect AuthService -> UserDB, and fcp-drawio renders them into fully styled draw.io XML, positioning shapes with near:/dir: heuristics and collision avoidance by default -- or hands off to an ELK auto-layout pass on demand via the layout op. Built on the FCP framework.

Multiplayer Game Backend architecture diagram
Multiplayer game backend — 20 nodes, 5 swim lanes, auto-layout (open in draw.io)

Quick Example

drawio([
  'add svc AuthService theme:blue',
  'add db UserDB theme:green near:AuthService dir:right',
  'connect AuthService -> UserDB label:queries',
])

Response:

+svc AuthService @(200,200 140x60) blue
+db UserDB @(400,200 120x80) green
~AuthService->UserDB "queries" solid
digest: 3s 1e 0g

This produces a draw.io diagram with a blue rounded-rectangle service node, a green database cylinder, and a labeled edge between them -- all positioned automatically.

Available MCP Tools

Tool Purpose
drawio(ops) Batch mutations -- add shapes, connect, style, group, layout
drawio_query(q) Inspect the diagram -- map, list, describe, connections, find
drawio_session(action) Lifecycle -- new, open, save, checkpoint, undo, redo
drawio_help() Full reference card

Component Library

Type Shape Use For
svc Rounded rect Services, components
db Cylinder Databases, storage
api Hexagon APIs, gateways
queue Parallelogram Queues, streams
cloud Cloud External services
actor Person Users, personas
doc Document Files, reports
box Rectangle Generic
decision Diamond Decisions, conditions
circle Ellipse States, events
process Double-bordered rect Predefined processes
triangle Triangle Warnings, deltas

Themes

Apply color themes to any shape: blue, green, red, orange, purple, yellow, gray, dark.

Installation

Requires Node >= 22.

npm install @ostk-ai/fcp-drawio

MCP Client Configuration

{
  "mcpServers": {
    "drawio": {
      "command": "node",
      "args": ["node_modules/@ostk-ai/fcp-drawio/dist/index.js"]
    }
  }
}

Architecture

4-layer architecture:

MCP Server (Intent Layer)
  src/server/ -- Parses op strings, resolves refs, dispatches
        |
Semantic Model (Domain Brain)
  src/model/ -- In-memory entity graph, event sourcing
        |
Layout
  Default: near/dir positioning heuristics + collision-pushing
  On demand: `layout` op runs elkjs (layered/force/tree, flow:TB/LR/BT/RL)
        |
Serialization (XML)
  src/serialization/ -- Semantic model <-> mxGraphModel XML

Supporting modules:

  • src/parser/ -- Operation string parser
  • src/lib/ -- Component library, themes, stencils, draw.io CLI integration

See docs/examples/ for example diagrams (including the multiplayer game backend) and docs/ for design documents.

Development

npm install
npm run build     # tsc
npm test          # vitest, 498 tests
npm run test:watch
npm run dev       # tsc --watch

License

MIT

from github.com/os-tack/fcp-drawio

Установка Fcp Drawio

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/os-tack/fcp-drawio

FAQ

Fcp Drawio MCP бесплатный?

Да, Fcp Drawio MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Fcp Drawio?

Нет, Fcp Drawio работает без API-ключей и переменных окружения.

Fcp Drawio — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Fcp Drawio в Claude Desktop, Claude Code или Cursor?

Открой Fcp Drawio на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Fcp Drawio with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории development