endiagram
@endiagram/mcp
EN Diagram 用のMCPサーバー — グラフ理論に基づく決定論的な構造解析ツールです。すべての結果は、名前付きの数学的定理によって裏付けられています。計算にAIは一切使用していません。
インストール
直接実行:
npx @endiagram/mcpまたはグローバルにインストール:
npm install -g @endiagram/mcpRelated MCP server: systems-thinking-mcp
接続
Claude Code
claude mcp add endiagram npx @endiagram/mcpClaude Desktop
claude_desktop_config.json に追加:
{
"mcpServers": {
"endiagram": {
"command": "npx",
"args": ["@endiagram/mcp"]
}
}
}Cursor
プロジェクトルートの .cursor/mcp.json に追加:
{
"mcpServers": {
"endiagram": {
"command": "npx",
"args": ["@endiagram/mcp"]
}
}
}HTTP (インストール不要)
HTTPトランスポートをサポートする任意のMCPクライアント:
https://api.endiagram.com/mcpSmithery
smithery mcp add dushyant30suthar/endiagram環境変数
変数 | デフォルト | 説明 |
|
| EN DiagramサービスのAPIエンドポイント |
ツール
システムに関する6つの質問と、レンダリングツールを提供します。すべてのツールは source(ENコードまたは .en/.txt ファイルパス)を受け取ります。ツール名は仕様ではなく省略形です。呼び出す前に各説明を読んでください。compose と equivalent はモードベースであり、汎用的な解析ツールではありません。
ツール | 回答内容 | レバー |
| システムの形状、ステージ、ブリッジ、サイクル、クリティカルパス、ドミネーターツリー、最小カット、サブシステム、アクター、場所。 |
|
| 常に真であることは何か?保存則、T-不変量(持続可能なサイクル)、枯渇可能なセット、欠損、可逆性。 |
|
| デッドロックの可能性は?エンティティのオーバーフローは?サイフォン、トラップ、非有界サイクル、構造的なライブネスと有界性。 | — |
| XはYに到達可能か?パス、距離、境界の横断。 |
|
| 2つのシステムは同一か、あるいは変更によって何が変わるか? | 比較モード( |
| パーツの結合(マージ)や単独での抽出はどう行うか? | マージ: |
| SVGまたはPNG図。ユーザーが可視化を求めた場合のみ呼び出してください。 | テーマ: |
EN構文
1行につき1ステートメント:
actor do: action needs: input1, input2 yields: output1, output2yields と needs の間で名前を共有すると、自動的に接続が作成されます:
customer do: place order needs: menu yields: order
kitchen do: prepare food needs: order yields: meal
waiter do: deliver needs: meal yields: served customerモデリング
同じ名前は同じものを指します。必要な入力はすべて1つの needs: リストに記述してください(AND)。2つのアクションに同じ yield 名を与えると代替案を提供できます(OR)。シーケンス = あるアクションが他のアクションの yield を消費すること。ステートフルなリソースは再 yield して永続化させます。一度限りのデータは消費されたままになります。実際の原子的な粒度でモデル化してください。個別にアクセスできる可能性がある場合にのみ分割します。
詳細は endiagram.com を参照してください。
テレメトリ
@endiagram/mcp は初回実行時にランダムなインストールIDを生成し、~/.endiagram/install-id(モード 0600)に保存します。これは、IPアドレスのみでは追跡できない問題(モバイルネットワーク、VPN、CGNATなどによるIPの変動)をデバッグするために、リクエストごとに X-Endiagram-Install-Id HTTPヘッダーとして送信されます。
ソースコード、ファイルパス、環境変数、個人情報(PII)は一切送信されません。 インストールIDは、ローカルで生成されたランダムな不透明なUUIDv4です。
初回実行時の通知は stderr に出力されます(stdoutには出力されません。stdoutはMCP JSON-RPCチャネルです)。この通知には開示情報とオプトアウト手順が含まれます。通知はインストールごとに1回のみ表示されます。
オプトアウト
以下の3つの方法のいずれかでインストールIDを無効化できます:
環境変数
ENDIAGRAM_TELEMETRY=offを設定する(0,false,noも可)。~/.endiagram/telemetryというファイルを作成し、中にoffと記述する。~/.endiagram/install-idを削除する。(オプション1または2が設定されていない限り、次回の実行時に新しいIDが生成されます。)
これらが有効な場合、X-Endiagram-Install-Id ヘッダーは一切送信されません。サーバーはIPごとのHMAC cid にフォールバックし、短期的なセッションごとの追跡を行います。
プライバシーポリシー全文: endiagram.com/privacy
ライセンス
MIT
Available Tools
12 toolsanalyze_systemCInspect
Structural signal. You describe the system, the tool computes structural facts. All computation is deterministic — no AI inside. EN syntax: subject do: action needs: inputs yields: outputs.
Inputs: source (required), invariants, detect_antipatterns.
betweenBInspect
Betweenness centrality for a node — what fraction of all shortest paths flow through it.
Inputs: source (required), node (required).
categorizeCInspect
Auto-discover subsystem boundaries from dependency structure.
Inputs: source (required).
composeCInspect
Merge two EN graphs into one with entity linking.
Inputs: source_a (required), source_b (required), links (required).
detailCInspect
Deep structural analysis — concurrency, flow landmarks, resilience, dominator tree, min-cuts.
Inputs: source (required).
diffCInspect
Structural diff between two systems — topology, role, and subsystem changes.
Inputs: source_a (required), source_b (required).
distanceCInspect
Shortest path between two nodes with subsystem crossing annotations.
Inputs: source (required), from (required), to (required).
evolveCInspect
Dry-run architectural changes — apply a patch and see the structural delta.
Inputs: source (required), patch (required).
extractBInspect
Extract a named subsystem as standalone EN source code.
Inputs: source (required), subsystem (required).
impactCInspect
Blast radius — remove a node and see what disconnects.
Inputs: source (required), node (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Most tools target distinct graph operations, but trace, distance, and between all revolve around paths and centrality, while analyze_system, detail, and categorize overlap in structural analysis. Descriptions help but an agent could reasonably pick the wrong tool for some analytical tasks.
Tool names are mostly single lowercase words, but they mix verbs, nouns, and prepositions (between, distance, impact, detail), and analyze_system breaks the pattern with snake_case. There is no consistent verb_noun or predictable naming convention.
Twelve tools is well-scoped for a dependency-graph analysis server. Each tool has a recognizable responsibility within analysis, rendering, transformation, and composition, without feeling padded or thin.
The toolkit covers traversal, centrality, structural diffing, subsystem discovery, deep analysis, rendering, merging, and dry-run evolution. Minor gaps like explicit node creation/deletion or cycle detection exist, but the server's analytical focus is well covered.
Maintenance
Related MCP Connectors
AI Agent with Architectural Memory. Impact analysis (free), tests and code from the graph (pro).
30+ deterministic dev and delivery tools: linting, metrics, diagrams, model advice, AI-text checks.
Code intelligence platform for AI agents. 20 tools for architecture, security & impact analysis.
Deterministic reasoning stack for AI agents: simulate, decide & compute, plus cross-domain tools.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceEnables AI agents to traverse SysML v2 model graphs, query requirements, and perform impact analysis for model-based systems engineering. It allows agents to interact with plain-text models to automate documentation and refine system architectures.-
- FlicenseAqualityNot gradedmaintenanceProvides systems thinking models as composable analysis lenses for architecture, infrastructure, DevOps, incident analysis, and technical decision-making.51-
- AlicenseBqualityCmaintenanceWhole-repo code graph for AI agents: impact analysis, dead code, cycles, semantic code search — 14 tools via hosted MCP endpoint.15MIT

Gridlaceofficial
AlicenseNot gradedqualityBmaintenanceEnables deterministic dependency reasoning over declared graphs, allowing users and AI agents to validate acyclicity, resolve targets, identify runnable parallel layers, assess impact, and explain blockers.Apache 2.0