npm @endiagram/mcpstreamable-httpMITupdated 4mo ago
MCP server for EN Diagram — deterministic structural analysis powered by graph theory. Every result is backed by a named mathematical theorem. No AI inside the computation.
¿Qué puedes hacer con endiagram mcp?
@endiagram/mcp
MCP server for EN Diagram — deterministic structural analysis powered by graph theory. Every result is backed by a named mathematical theorem. No AI inside the computation.
Installation
Run directly:
npx @endiagram/mcp
Or install globally:
npm install -g @endiagram/mcp
Connect
Claude Code
claude mcp add endiagram npx @endiagram/mcp
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"endiagram": {
"command": "npx",
"args": ["@endiagram/mcp"]
}
}
}
Cursor
Add to .cursor/mcp.json in your project root:
{
"mcpServers": {
"endiagram": {
"command": "npx",
"args": ["@endiagram/mcp"]
}
}
}
HTTP (zero install)
Any MCP client that supports HTTP transport:
https://api.endiagram.com/mcp
Smithery
smithery mcp add dushyant30suthar/endiagram
Environment Variables
| Variable | Default | Description |
|---|---|---|
EN_API_URL |
https://api.endiagram.com |
API endpoint for the EN Diagram service |
Tools
Six questions about any system, plus a render tool. Every tool takes source (EN code or .en/.txt file path). Tool names are shorthand, not specs — read each description before calling; compose and equivalent are mode-based, not general analyzers.
| Tool | What it answers | Levers |
|---|---|---|
structure |
What is this system? Shape, stages, bridges, cycles, critical path, dominator tree, min-cuts, subsystems, actors, locations. | detect_findings=true flags risks (unguarded-sink, single-cut-path, multi-cut-path); node=X returns per-node centrality (betweenness, closeness, eigenvector). |
invariant |
What's always true? Conservation laws, T-invariants (sustainable cycles), depletable sets, deficiency, reversibility. | rules (one per line) checks custom claims. Four supported shapes: no bridge that is also hub · every path from X to Y passes through at least one of [A,B,C] (precedence) · no node with centrality above N · removing any single node disconnects at most N others. |
live |
Can it deadlock? Can entities overflow? Siphons, traps, unbounded cycles, structural liveness and boundedness. | — |
reachable |
Can X reach Y? Path, distance, boundary crossings. from/to accept entity or action names. |
defense_nodes=a,b,c checks whether guards cover every path. |
equivalent |
Are two systems the same, or what changes if I change this one? | Compare mode (source_a+source_b): edit distance + spectral cospectrality. Evolve mode (source+patch): plain EN adds; - name removes; same-name replaces. |
compose |
How do parts combine (merge) or how does a part stand alone (extract)? | Merge: source_a+source_b+links (a.entity=b.entity per line). Extract: source+subsystem (names come from structure.subsystems). |
render |
SVG or PNG diagram. Only call when the user asks to visualize. | Themes: Editorial, Primer, Carbon (each ± isDark) or seed-derived from color=#RRGGBB. structure_layers bitmask (1=subsystems, 2=pipelines, 4=cycles, 8=forks, 16=joins, 32=hubs, 64=deadlock, 128=overflow). |
EN Syntax
One statement per line:
actor do: action needs: input1, input2 yields: output1, output2
Shared names between yields and needs create connections automatically:
customer do: place order needs: menu yields: order
kitchen do: prepare food needs: order yields: meal
waiter do: deliver needs: meal yields: served customer
Modeling
Same name = same thing. Put all required inputs in one needs: list (AND). Give two actions the same yield-name to offer alternatives (OR). Sequence = one action consuming another's yield. Re-yield stateful resources to keep them persistent; one-shot data stays consumed. Model at the real atomic granularity — split only when the pieces could be accessed independently.
Learn more at endiagram.com.
Telemetry
@endiagram/mcp generates a random install ID on first run, stored at
~/.endiagram/install-id (mode 0600). It is sent with every request as
the X-Endiagram-Install-Id HTTP header so we can correlate requests
from the same install for debugging issues that the per-IP signal alone
cannot track (mobile networks, VPNs, CGNAT all collapse or churn IPs).
No source code, no file paths, no environment variables, and no PII are sent. The install ID is a random opaque UUIDv4 generated locally.
A first-run notice prints to stderr (never stdout — stdout is the MCP JSON-RPC channel) with the disclosure and the opt-out instructions. The notice fires once per install and never again.
Opting out
Any of these three methods disables the install ID:
- Set
ENDIAGRAM_TELEMETRY=offas an environment variable (also accepts0,false,no). - Create a file at
~/.endiagram/telemetrycontaining the wordoff. - Delete
~/.endiagram/install-id. (A new one is generated on next run unless option 1 or 2 is also set.)
When any of these is active, the X-Endiagram-Install-Id header is not
sent at all — the server falls back to its per-IP HMAC cid for
correlation, which works fine for short-term per-session tracing.
Full privacy policy: endiagram.com/privacy
License
MIT
Instalación
Añade endiagram mcp a tu cliente. Elige el que uses.
{
"servers": {
"mcp": {
"type": "http",
"url": "https://api.endiagram.com/mcp"
}
}
}Add to `.vscode/mcp.json` in your workspace.
claude mcp add mcp -- npx -y @endiagram/mcpcodex mcp add mcp -- npx -y @endiagram/mcpamp mcp add mcp -- npx -y @endiagram/mcp{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@endiagram/mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@endiagram/mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@endiagram/mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@endiagram/mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@endiagram/mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"mcp": {
"type": "local",
"command": "npx",
"args": [
"-y",
"@endiagram/mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"mcp": {
"command": {
"path": "npx",
"args": [
"-y",
"@endiagram/mcp"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y @endiagram/mcpRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
Puntuación
39 / 100
Incompleta
- Documentación21/25
- Mantenimiento19/25
- Confianza13/20
- Capacidad0/15
- Instalación15/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 132 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 18 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
Historial de versiones
| Versiones | Publicada |
|---|---|
| 0.3.16Última | 21 abr 2026 |
| 0.3.15 | 19 abr 2026 |
| 0.3.14 | 19 abr 2026 |
| 0.3.13 | 19 abr 2026 |
| 0.3.12 | 19 abr 2026 |
| 0.3.11 | 19 abr 2026 |
| 0.3.10 | 19 abr 2026 |
| 0.3.9 | 19 abr 2026 |
| 0.3.8 | 19 abr 2026 |
| 0.3.4 | 16 abr 2026 |
| 0.3.3 | 16 abr 2026 |
| 0.3.2 | 16 abr 2026 |
| 0.3.1 | 15 abr 2026 |
| 0.3.0 | 9 abr 2026 |
| 0.2.38 | 6 abr 2026 |
| 0.2.37 | 3 abr 2026 |
| 0.2.36 | 2 abr 2026 |
| 0.2.35 | 2 abr 2026 |
| 0.2.34 | 2 abr 2026 |
| 0.2.33 | 31 mar 2026 |
| 0.2.32 | 29 mar 2026 |
| 0.2.31 | 29 mar 2026 |
| 0.2.30 | 28 mar 2026 |
| 0.2.29 | 28 mar 2026 |
| 0.2.28 | 28 mar 2026 |
| 0.2.27 | 28 mar 2026 |
| 0.2.26 | 27 mar 2026 |
| 0.2.25 | 27 mar 2026 |
| 0.2.24 | 27 mar 2026 |
| 0.2.23 | 27 mar 2026 |
| 0.2.22 | 27 mar 2026 |
| 0.2.21 | 26 mar 2026 |
| 0.2.20 | 26 mar 2026 |
| 0.2.19 | 26 mar 2026 |
| 0.2.18 | 26 mar 2026 |
| 0.2.17 | 26 mar 2026 |
| 0.2.16 | 26 mar 2026 |
| 0.2.15 | 26 mar 2026 |
| 0.2.14 | 26 mar 2026 |
| 0.2.13 | 26 mar 2026 |
| 0.2.12 | 26 mar 2026 |
| 0.2.11 | 25 mar 2026 |
| 0.2.10 | 25 mar 2026 |
| 0.2.8 | 25 mar 2026 |
| 0.1.13 | 22 mar 2026 |