MCP.so
登录

Sargoth Mermaid Renderer - MCP Server

@floor-licker

基本信息

分类

其他

许可证

MIT license

传输方式

stdio

作者

floor-licker

关于 Sargoth Mermaid Renderer - MCP Server

MCP Server for the Sargoth Mermaid Editor API

#chart#diagram#mermaid#diagram-editor#diagram-generator

Sargoth Mermaid Renderer - MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "sargoth-mcp": {
      "command": "python",
      "args": [
        "mcp_server.py"
      ]
    }
  }
}

Sargoth Mermaid Renderer - MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Sargoth Mermaid Renderer - MCP Server?

An MCP (Model Context Protocol) server that lets AI assistants like Claude Desktop generate, validate, and improve Mermaid diagrams. It connects to the free Sargoth.xyz Mermaid rendering API, requiring no account or setup, and is aimed at users who want to create professional SVG/PNG diagrams from natural‑language descriptions during AI conversations.

How to use Sargoth Mermaid Renderer - MCP Server?

Install Python 3.8+, run pip install -r requirements.txt, make mcp_server.py executable, and test with python mcp_server.py. For integration with Claude Desktop, add the server’s absolute path and command to the claude_desktop_config.json file; other MCP clients use a similar JSON configuration.

Key features of Sargoth Mermaid Renderer - MCP Server

  • Render Mermaid code as SVG (render_mermaid_svg)
  • Render Mermaid code as PNG with scaling (render_mermaid_png)
  • Validate Mermaid syntax and analyze complexity (validate_mermaid)
  • Suggest improvements for Mermaid code (suggest_mermaid_improvements)
  • Supports four themes: modern, classic, dark, minimal
  • Defaults to production API at sargoth.xyz; local development supported

Use cases of Sargoth Mermaid Renderer - MCP Server

  • Creating flowcharts, sequence diagrams, or state diagrams in AI conversations
  • Validating and fixing Mermaid syntax errors interactively
  • Generating CI/CD pipeline diagrams in SVG or PNG format
  • Producing educational class diagrams and technical documentation visuals
  • Batch‑processing multiple diagrams sequentially with AI assistance

常见问题

1

What dependencies are required?

Python 3.8 or newer and the packages listed in `requirements.txt`. No account or API key is needed when using the default production endpoint.

2

How do I configure it with Claude Desktop?

Edit `claude_desktop_config.json` (location varies by OS) and add an `mcpServers` entry with `command: "python"` and `args` containing the absolute path to `mcp_server.py`. Restart Claude Desktop afterward.

3

What themes and output formats are available?

Four themes: `modern`, `classic`, `dark`, `minimal`. Output formats are SVG (via `render_mermaid_svg`) and PNG (via `render_mermaid_png`, with an optional scale factor 1–4, default 2).

4

Can I run it against a local Mermaid renderer?

Yes. Use the `--api-url` flag, e.g., `python mcp_server.py --api-url http://localhost:5000`, after starting your local Mermaid API. The default connects to `https://sargoth.xyz`.

5

How does the server handle security and transport?

The production API uses HTTPS. For local development, the server communicates over HTTP on `localhost`. The server requires outbound HTTPS access to sargoth.xyz when using the default endpoint.

评论

其他 分类下的更多 MCP 服务器