eraser-io-mcp-server

buck-0x/eraser-io-mcp-server

3.3

If you are the rightful owner of eraser-io-mcp-server 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.

The Eraser Diagram Renderer is a Python MCP server and CLI tool designed to render various types of diagrams using the Eraser API.

The Eraser Diagram Renderer is a versatile tool that leverages the Eraser API to create a wide range of diagrams, including sequence diagrams, flowcharts, entity-relationship diagrams, and cloud architecture diagrams. It offers customization options such as themes, backgrounds, and scaling, allowing users to tailor the output to their specific needs. The tool can return either image URLs or base64-encoded file content, providing flexibility in how the diagrams are used or shared. Additionally, it includes a feature for icon validation, which checks for undefined icons and provides warnings if any are detected. This ensures that diagrams are rendered accurately and without missing elements. The tool is designed to be used both as a command-line interface and as a server, making it suitable for integration into various environments and workflows. Authentication is handled via an Eraser API token, which can be set through environment variables or a .env file. The tool also supports handling special characters and multi-line diagrams, making it robust for complex diagramming needs.

Features

  • Multiple Diagram Types: Supports sequence, flowchart, ER, cloud architecture, and more.
  • Customizable: Offers themes, backgrounds, and scaling options.
  • Flexible Output: Provides image URLs or base64-encoded file content.
  • Eraser File URL: Returns a link to edit the diagram in Eraser.
  • Icon Validation: Checks for undefined icons and provides warnings.

Usages

usage with Claude Desktop

{
  "mcpServers": {
    "eraser-diagram-renderer": {
      "command": "python",
      "args": ["render_eraser_diagram.py"]
    }
  }
}

usage with VS Code

{
  "mcp": {
    "servers": {
      "eraser-diagram-renderer": {
        "command": "python",
        "args": ["render_eraser_diagram.py"]
      }
    }
  }
}