Figcraft - Code-driven SVG Diagram Generator

by zeqinlee

356 downloads
Not rated
GitHub

About

Code-driven SVG diagram library for TypeScript/Node.js. Generate publication-quality architecture diagrams, flowcharts, and neural network diagrams with just a few lines of code. Features 10

Details

Author
zeqinlee
Downloads
356
Categories
Developer Tools

- 10 built-in shapes: Rect, Circle, Diamond, Trapezoid, Cylinder, Cuboid, Sphere, Stack, Text, Image
- 11 arrow head styles with open variants
- Smart auto-routing with obstacle avoidance (v0.2.0+)
- Layout helpers: row(), col(), grid(), group()
- Export to SVG, PNG, JPG, WebP, PDF
- Pure Node.js — no browser required

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Figcraft - Code-driven SVG Diagram Generator
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install via npm install figcraft, then invoke the MCP tools create_diagram (to generate diagrams from TypeScript code) or get_element_types (to see available shapes and their parameters). Refer to the online documentation at https://figcraft.xflowing.com/docs.html for full usage details.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "figcraft - code-driven svg diagram generator": {
            "figcraft": {
                "command": "npx",
                "args": [
                    "figcraft-mcp"
                ]
            }
        }
    }
}

McpServers

{
    "figcraft": {
        "command": "npx",
        "args": [
            "figcraft-mcp"
        ]
    }
}

Features

- 10 built-in shapes: Rect, Circle, Diamond, Trapezoid, Cylinder, Cuboid, Sphere, Stack, Text, Image - 11 arrow head styles with open variants - Smart auto-routing with obstacle avoidance (v0.2.0+) - Layout helpers: row(), col(), grid(), group() - Export to SVG, PNG, JPG, WebP, PDF - No browser required — pure Node.js ## MCP Tools - create_diagram — Generate SVG diagrams from TypeScript code - get_element_types — List all available shapes and their parameters ## Quick Start npm install figcraft ## Documentation https://figcraft.xflowing.com/docs.html
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.