Skip to main content
Glama
README.md
# mcp-diagram-maker

`mcp-diagram-maker` は、Plotly、PlantUML、Mermaid、Vega-Lite を使用して様々な種類のグラフや図を作成するためのModel Context Protocol (MCP) サーバーです。

## 事例
チャート作成の事例:

### Plotly グラフ
<img src="assert/dummy_pie_chart.png" alt="ダミー円グラフ" width="40%">
<img src="assert/precipitation_hamamatsu_202505.png" alt="浜松降水量グラフ" width="40%">

### PlantUML 図
<img src="assert/flow_diagram.png" alt="フロー図" width="30%">
<img src="assert/washing_machine_sequence.png" alt="洗濯機シーケンス図" width="30%">

### Mermaid チャート
<img src="assert/mermaid.png" alt="Mermaid チャート" width="40%">

### その他
<img src="assert/reder.jpg" alt="Reder" width="40%">

## 機能

- **Plotlyグラフ作成:** PythonコードからPlotlyグラフを生成し、PNG、SVG、HTML形式で出力します。
- **PlantUML図作成:** PlantUMLのソースコードからフロー図などを生成し、PNG、SVG形式で出力します。
- **Mermaidチャート作成:** Mermaidのソースコードからチャートを生成し、HTML形式で出力します。
- **Vega-Liteチャート作成:** Vega-LiteのJSON仕様からチャートを生成し、PNG、SVG形式で出力します。

## インストール

1. cloneして、uvで仮想環境を再現します。
    ```bash
    git clone repositry
    cd mcp-diagram-maker
    uv sync
    ```

## 使い方
`mcp_setting.json` に記述します。
```
{
  "mcpServers": {
    "mcp-diagram-maker": {
      "autoApprove": [],
      "disabled": false,
      "timeout": 240,
      "type": "stdio",
      "command": "uv",
      "args": [
        "--directory",
        "path_to/mcp-diagram-maker",
        "run",
        "mcp-diagram-maker"
      ]
    }
  }
}
```

TDQS

A3.5/5.0

Scored across 4 tools

Disambiguation5/5

Each tool maps to a clearly distinct rendering library and output type: Plotly graphs, Mermaid charts, PlantUML diagrams, and Vega-Lite charts. An agent can select the correct tool based on the source format or desired output without overlap.

Naming Consistency4/5

All tools follow a consistent create_<library>_<artifact> pattern, which is predictable and readable. The only minor inconsistency is the varying artifact noun (graph, chart, diagram, chart) rather than a single term.

Tool Count5/5

Four tools is well-scoped for a diagram-making server focused on multiple rendering backends. Each tool covers a distinct library, so none feels redundant or missing at this scale.

Completeness4/5

The surface covers four major diagram/chart generation formats, which is strong for a creation-focused server. Minor gaps exist around managing outputs, such as listing generated files, converting between formats, or deleting artifacts.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues