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 端点 |
工具
关于任何系统的六个问题,外加一个渲染工具。每个工具都接受 source(EN 代码或 .en/.txt 文件路径)。工具名称是简写,而非规范 —— 调用前请阅读每个描述;compose 和 equivalent 是基于模式的,而非通用分析器。
工具 | 回答的问题 | 控制参数 |
| 这是什么系统?形状、阶段、桥接、循环、关键路径、支配树、最小割、子系统、参与者、位置。 |
|
| 什么是恒真的?守恒定律、T-不变量(可持续循环)、可耗尽集、缺陷、可逆性。 |
|
| 会死锁吗?实体会溢出吗?虹吸、陷阱、无界循环、结构活性和有界性。 | — |
| X 能到达 Y 吗?路径、距离、边界穿越。 |
|
| 两个系统是否相同,或者如果我更改了这个,会有什么变化? | 比较模式 ( |
| 各部分如何组合(合并)或部分如何独立存在(提取)? | 合并: |
| SVG 或 PNG 图表。仅在用户要求可视化时调用。 | 主题: |
EN 语法
每行一条语句:
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建模
相同的名称 = 相同的事物。将所有必需的输入放入一个 needs: 列表中(AND)。给两个动作相同的 yield 名称以提供替代方案(OR)。序列 = 一个动作消耗另一个动作的 yield。重新产生有状态资源以保持其持久性;一次性数据保持被消耗状态。在真实的原子粒度上建模 —— 仅在各部分可以独立访问时才进行拆分。
了解更多信息,请访问 endiagram.com。
遥测
@endiagram/mcp 在首次运行时生成一个随机安装 ID,存储在 ~/.endiagram/install-id(模式 0600)。它随每个请求作为 X-Endiagram-Install-Id HTTP 标头发送,以便我们可以关联来自同一安装的请求,从而调试仅靠 IP 信号无法追踪的问题(移动网络、VPN、CGNAT 都会导致 IP 折叠或变动)。
不发送源代码、文件路径、环境变量和个人身份信息 (PII)。 安装 ID 是本地生成的随机不透明 UUIDv4。
首次运行通知会打印到 stderr(绝非 stdout —— stdout 是 MCP JSON-RPC 通道),其中包含披露信息和退出说明。该通知每个安装仅触发一次,之后不再触发。
退出遥测
以下三种方法中的任何一种都可以禁用安装 ID:
将
ENDIAGRAM_TELEMETRY=off设置为环境变量(也接受0,false,no)。在
~/.endiagram/telemetry创建一个包含单词off的文件。删除
~/.endiagram/install-id。(除非同时设置了选项 1 或 2,否则下次运行时会生成一个新的。)
当启用上述任何一种方法时,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