archflow-mcp

v0.9.9
archflow-mcp Checked 1 hour ago Published 2 days ago

MCP server for ArchFlow: lets AI assistants (Claude and other MCP clients) build isometric architecture diagrams

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_icons List icons

Icons available for nodes. Search by words in any language (matches ids and names), or filter by category. Without arguments: the categories and all icons.

ParameterTypeDescription
categorystringCategory id, e.g. af-network
langstringLanguage of the names: en, pl, de, fr, es, it, pt, cs, nl, uk
querystring

list_diagrams List diagrams

Diagrams in ArchFlow storage: id, name, last change.

get_diagram Read a diagram

A diagram as nodes (with ids and slot positions), zones, connectors and texts.

ParameterTypeDescription
diagram *stringDiagram id or name (see list_diagrams)

build_diagram Build a diagram

Creates a whole diagram in one go and saves it. Group nodes into zones (laid out left to right, a higher "row" goes below); nodes and zones are placed automatically unless a node has a position. Returns where the diagram was saved.

ParameterTypeDescription
nodes *array
title *string
connectorsarray
descriptionstring
layoutstringHow to place nodes without zone or position (default: row, grid for many)
replacestringOverwrite this existing diagram instead of creating a new one
textsarray
zonesarray

add_nodes Add nodes

Adds nodes to a diagram. Place each one with "near" (next to a node), "zone" (inside a zone, which grows if needed) or "position"; otherwise it goes to the right of everything.

ParameterTypeDescription
diagram *stringDiagram id or name (see list_diagrams)
nodes *array

update_node Change a node

Changes the name, icon, description or position of a node. An empty description removes it.

ParameterTypeDescription
diagram *stringDiagram id or name (see list_diagrams)
node *stringNode id
descriptionstring
iconstring
namestring
positionobjectPosition in slots (1 slot = normal distance between nodes)

remove_node Remove a node

Removes a node and the connectors attached to it.

ParameterTypeDescription
diagram *stringDiagram id or name (see list_diagrams)
node *stringNode id

add_connectors Connect nodes

Adds arrows between nodes, optionally with a label and a line style.

ParameterTypeDescription
connectors *array
diagram *stringDiagram id or name (see list_diagrams)

remove_connector Remove a connector

Removes a connector by its id, or the connector(s) going from one node to another.

ParameterTypeDescription
diagram *stringDiagram id or name (see list_diagrams)
fromstring
idstring
tostring

add_zone Add a zone

Adds a coloured area under the given nodes (fitted around them), with an optional title.

ParameterTypeDescription
diagram *stringDiagram id or name (see list_diagrams)
nodes *arrayNode ids
colorstring
marginintegerExtra tiles around the nodes (default 0)
namestring

remove_zone Remove a zone

Removes a zone (the coloured area and its title). Its nodes stay.

ParameterTypeDescription
diagram *stringDiagram id or name (see list_diagrams)
zone *stringZone id

add_text Add a text

Adds a text on the canvas, at a position or under a node.

ParameterTypeDescription
diagram *stringDiagram id or name (see list_diagrams)
text *string
nearstringNode id
positionobjectPosition in slots (1 slot = normal distance between nodes)
sizestring

rename_diagram Rename a diagram

Changes the title of a diagram (its file or id follows the new name).

ParameterTypeDescription
diagram *stringDiagram id or name (see list_diagrams)
title *string

export_json Export to a file

Writes a diagram to a JSON file, which can be opened in ArchFlow with ☰ → Open from file (JSON) or shared.

ParameterTypeDescription
diagram *stringDiagram id or name (see list_diagrams)
path *stringFile path; ".json" is added if missing