Sailor

Sailor is an MCP server that generates and renders Mermaid diagrams into images using LLMs. Built using FastMCP, it connects AI clients like Claude Desktop to Mermaid rendering tools, giving software engineers, architects, and technical writers a streamlined way to create visual documentation. Users can prompt an AI assistant in natural language to design flowcharts, sequence diagrams, class models, entity-relationship diagrams, Gantt charts, state machines, and mindmaps. Sailor then validates the generated syntax and compiles it into visual image formats such as PNGs with customizable themes and background transparencies. In addition to client-based MCP workflows, Sailor includes a standalone Flask web interface for interactive browser-based generation using OpenAI or Anthropic API keys. Whether deployed locally via Docker stdio or hosted remotely over HTTP/SSE transports, Sailor enables developers to inspect code, request targeted diagram enhancements, and quickly receive rendered visual assets directly in their conversational workspace.

Category: Design, Media & Creative

Tags: diagrams, mermaid, rendering, visualization

Visit Sailor

How to install and configure Sailor

  1. Clone the repository and build the Docker image: bash git clone https://github.com/aj-geddes/sailor.git cd sailor docker build -f Dockerfile.mcp-stdio -t sailor-mcp . 2. Open your Claude Desktop configuration file (claude_desktop_config.json). 3. Add the server under mcpServers using the stdio transport: json { "mcpServers": { "sailor-mermaid": { "command": "docker", "args": [ "run", "-i", "--rm", "-v", "/path/to/output:/output", "sailor-mcp" ] } } } 4. Alternatively, configure a remote instance over HTTP: json { "mcpServers": { "sailor-remote": { "transport": { "type": "streamable-http", "url": "https://your-sailor-instance.up.railway.app/mcp" } } } } 5. Restart Claude Desktop completely to load the new server.

What you can do with Sailor

  • Rendering software architecture and system flowcharts directly from natural language prompts inside Claude Desktop sessions. - Validating Mermaid syntax and receiving suggestions to improve chart structure, readability, and layout parameters. - Creating database schema ER diagrams and class inheritance models for technical specifications and project documentation. - Generating project management timelines and Gantt schedules to visually track milestones and development phases. - Producing hand-drawn style or dark-themed sequence diagrams for technical presentations and developer documentation.

Key facts

  • https://github.com/aj-geddes/sailor
  • Design, Media & Creative, Developer Tools & Code Intelligence
  • diagrams, mermaid, rendering, visualization

Part of MCP Servers

Related MCP servers

  • MCP LaTeX Server β€” MCP LaTeX Server is an MCP server that provides tools for creating, editing, validating, and compiling LaTeX documents directly through…
  • MCP JSON β€” MCP JSON is an MCP server collection that bundles tools for file system operations, Google search, browser-based web automation, and…
  • MCP Jupyter Complete β€” MCP Jupyter Complete is an MCP server that provides tools for manipulating Jupyter notebook files through position-based cell operations and…
  • MCP LSP Go β€” MCP LSP Go is an MCP server that connects AI assistants to the official Go Language Server Protocol implementation, gopls,…
  • MCP Manager β€” MCP Manager is an MCP server management tool that connects directly to your Claude Desktop environment, enabling users to discover,…
  • MCP MD2PDF Server β€” MCP MD2PDF Server is an MCP server that enables automated conversion of Markdown documents into formatted PDF files with full…

How do I install Sailor?

You can install Sailor locally using Docker by building Dockerfile.mcp-stdio from the repository. Once built, register the container in your Claude Desktop configuration file with a volume mount for the output directory, then restart the application. It can also be hosted remotely over HTTP or run as a local Flask web application.

What can Sailor do?

Sailor generates, validates, and renders Mermaid diagram code into PNG images. It supports all standard Mermaid types including flowcharts, sequence diagrams, ER diagrams, Gantt charts, and mindmaps. It provides tools for code analysis, visual customization such as dark themes or hand-drawn looks, and guided prompt wizards.

Which MCP clients work with Sailor?

Sailor is compatible with Claude Desktop through either local standard input/output (stdio) Docker execution or remote streamable HTTP connections. It also works with any custom client capable of communicating with standard Model Context Protocol servers.

How do I retrieve images when using a remote Sailor server?

When connecting to a remote instance that cannot write directly to your local file system, call the validate_and_render_mermaid or get_diagram tool with return_base64_text set to true. This returns base64 image data that you can decode and save locally.

  • AI Tools
  • Categories
  • Industries
  • CLI Coding Agents
  • MCP Servers
  • MCP Categories