endiagram-mcp is an MCP server that powers EN Diagram, providing deterministic structural analysis for arbitrary systems. Its computation is driven by graph theory, every result corresponds to a named mathematical theorem, and it is officially stated that no AI is used inside the computation.
Purpose
- Perform structural analysis on systems described in EN syntax, focusing on structural concerns such as topology, bottlenecks, blast radius, tracing, differences, and centrality.
- Connect analysis capabilities to MCP clients via the MCP protocol.
Main capabilities
- Provides six questions about arbitrary systems, plus one rendering tool.
- The input for each tool is source, i.e., EN code, or a .en / .txt file path.
- Official note: tool names are shorthand rather than specifications, and each tool's description should be read before calling; compose and equivalent are mode-based tools, not general-purpose analyzers.
EN syntax key points
- One statement per line.
- Shared names between yields and needs automatically establish connections.
- The same name means the same thing.
- Putting all required inputs in one needs: list means AND.
- Giving two actions the same yield name means providing alternatives (OR).
- Sequence: one action consumes another action's product.
- For stateful resources, re-yield to keep them persistent; one-time data remains in a consumed state.
- Model at the true atomic granularity—only split when the parts can be accessed independently.
Usage
- Install: npx @endiagram/mcp
- Can also be installed globally.
- Add the configuration to claude_desktop_config.json.
- Add the configuration to .cursor/mcp.json in the project root.
- HTTP (zero install): suitable for any MCP client that supports HTTP transport.
Privacy and telemetry
- @endiagram/mcp generates a random installation ID on first run, stored at ~/.endiagram/install-id (permissions 0600).
- This ID is sent with every request via the X-Endiagram-Install-Id HTTP header, used to correlate requests from the same installation in order to debug issues that cannot be tracked by IP-based signals alone (mobile networks, VPNs, and CGNAT all cause IP mergingor changes).
- Official statement: source code, file paths, environment variables, or PII are not sent; the installation ID is a locally generated random opaque UUIDv4.
- On first run, a one-time notice is printed to stderr (never stdout—stdout is the MCP JSON-RPC channel), containing disclosure and opt-out instructions; it is triggered only once per installation.
- There are three ways to disable the installation ID: set the environment variable ENDIAGRAM_TELEMETRY=off (0, false, no are also accepted); create the ~/.endiagram/telemetry file and write off in it; delete ~/.endiagram/install-id (unless one of the first two methods is also set, a new one will be generated on the next run).
- When any method is in effect, the X-Endiagram-Install-Id header is not sent at all, and the server falls back to IP-based HMAC cid correlation, which is sufficient for short-term per-session tracking.
Applicable scenarios
- Scenarios that require deterministic graph-theoretic analysis of system structure through an MCP client.
- Workflows that use EN syntax to model systems and want structural views such as topology, bottlenecks, blast radius, tracing, differences, and centrality.
Limitations
- It is officially stated that no AI is used inside the computation, so generative analysis should not be expected.
- Tool names are only shorthand; compose and equivalent are mode-based tools rather than general-purpose analyzers; read each tool's description before use.
- The semantics of EN syntax depend on naming conventions (the same name means the same thing; AND/OR are expressed through needs lists and yield naming), and these rules must be followed when modeling.
- Detailed information such as pricing, fees, platform support scope, and analysis effectiveness is not yet provided.