Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Enables AI assistants to generate sequence diagrams from textual descriptions using Swimlanes.io, producing markdown documentation with embedded images.

README.md

Swimlanes.io MCP Server

A Model Context Protocol (MCP) server that integrates with Swimlanes.io to generate sequence diagrams from textual descriptions. This server enables AI assistants like GitHub Copilot to automatically analyze project codebases and create comprehensive diagram documentation.

Features

  • Markdown Documentation Generation: Creates complete markdown files with embedded diagrams
  • Version Control Ready: Stores both source syntax and rendered images for git tracking
  • Multiple Output Formats: Supports both direct image generation and shareable links
  • Project Analysis: Designed for Copilot to analyze codebases and generate relevant diagrams
  • Organized Structure: Automatically organizes diagrams into logical folder structures

Installation

npm install
npm run build

Usage

With Claude Desktop

Add to your Claude Desktop configuration:

{
  "mcpServers": {
    "swimlanes": {
      "command": "node",
      "args": ["path/to/dist/index.js"]
    }
  }
}

With MCP Inspector (for testing)

npx @modelcontextprotocol/inspector node dist/index.js

Tools

1. create_swimlane_documentation

Generates complete markdown documentation with embedded diagrams.

Parameters:

  • text (string, required): Swimlanes syntax content
  • title (string, required): Diagram title
  • description (string, optional): Description of the diagram
  • outputPath (string, optional): Where to save the markdown file
  • includeImage (boolean, optional): Whether to embed rendered image (default: true)
  • folderStructure (string, optional): Folder organization (e.g., "auth", "api")

2. generate_swimlane_image

Generates and saves a PNG image of a swimlane diagram.

Parameters:

  • text (string, required): Swimlanes syntax content
  • title (string, optional): Optional title
  • highResolution (boolean, optional): For printing quality (default: false)
  • outputPath (string, optional): Where to save the image

3. get_swimlane_image_link

Generates a direct link to a PNG image without downloading.

Parameters:

  • text (string, required): Swimlanes syntax content
  • title (string, optional): Optional title
  • highResolution (boolean, optional): For printing quality (default: false)

Swimlanes.io Syntax

The server supports the full Swimlanes.io syntax:

title: Example Diagram
A -> B: Message
B -> A: Response
note over A: Internal process

For complete syntax reference, see: <https://swimlanes.io/gallery/full-syntax>

Example Usage with Copilot

Ask Copilot: "Using the SL_MCP Server, build me swim lane diagrams for this project"

Copilot will analyze your codebase and generate appropriate diagrams for:

  • Authentication flows
  • API request lifecycles
  • Service communications
  • User journeys
  • Data processing pipelines

Development

# Install dependencies
npm install

# Build the project
npm run build

# Watch mode for development
npm run dev

# Run tests
npm run test

# Lint code
npm run lint

Project Structure

src/
├── index.ts           # Main MCP server entry point
├── types.ts           # TypeScript type definitions
└── tools/
    ├── index.ts       # Tool exports
    └── swimlane-tools.ts  # Core tool implementations

Generated Documentation Structure

The server creates well-organized documentation:

docs/diagrams/
├── auth/
│   ├── login-flow.md
│   └── images/
│       └── login-flow.png
├── api/
│   ├── request-lifecycle.md
│   └── images/
│       └── request-lifecycle.png
└── architecture/
    ├── service-communication.md
    └── images/
        └── service-communication.png

License

MIT

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Files & Docs servers.