sailor

aj-geddes/sailor

3.2

If you are the rightful owner of sailor and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

Sailor is a Model Context Protocol (MCP) server designed to generate and render Mermaid diagrams through a web interface or integration with Claude Desktop.

Sailor is a versatile tool that combines a user-friendly web interface with a robust MCP server to facilitate the creation and rendering of Mermaid diagrams. It allows users to generate diagrams using natural language descriptions, leveraging AI capabilities from OpenAI or Anthropic APIs. The platform supports a wide range of diagram types, including flowcharts, sequence diagrams, Gantt charts, and more. With its containerized setup, Sailor ensures easy deployment and integration, particularly with Claude Desktop, enabling seamless AI-powered diagram generation. The tool also offers customization options for themes and styles, providing users with the flexibility to tailor the appearance of their diagrams to suit their needs.

Features

  • AI-Powered Generation: Generate diagrams using OpenAI or Anthropic APIs.
  • Live Preview: Real-time rendering with syntax highlighting.
  • Multiple Themes: Offers various themes like default, dark, forest, and neutral.
  • Hand-drawn Look: Optional sketch-style rendering for a unique appearance.
  • Flexible Output: Supports PNG with transparent background.

Usages

docker with Claude Desktop

{
  "mcpServers": {
    "sailor-mermaid": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-v",
        "C:\\Users\\YourName\\Pictures:/output",
        "sailor-mcp"
      ]
    }
  }
}

Tools

  1. request_mermaid_generation

    Request AI to generate Mermaid diagram code based on your description.

  2. validate_and_render_mermaid

    Validate and render existing Mermaid code as an image.

  3. get_mermaid_examples

    Get examples of different Mermaid diagram types.