DAG Studio WebMCP MCP Server
Read and edit a live DAG Studio canvas through its predefined WebMCP tools.
DAG Studio WebMCP scores 66 (Good), licensed Apache-2.0 and written in HTML. It can be reached as a remote MCP endpoint. It declares 9 tools. Filed under Design. GitHub shows 0 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
66 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: apache-2.0.
License, quality and maintenance
Where the 66 comes from
22 + 20 + 0 + 10 + 4 + 10 = 66. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Remote auth: API key required. Get a key or token from the provider first, then add it as a header in your client config. How remote auth works
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "black-swan-causal-labs-dag-studio-webmcp": { "url": "https://dag-studio-webmcp-bridge.jdiazdecaro.workers.dev/mcp" } }}
Environment variables
This server does not declare environment variables.
Tools9Tool docs quality grade C
All capabilitiesadd_edgetoolAdds a directed causal claim; duplicate, self, and cyclic edges are rejected.
add_nodetoolAdds a researcher-reviewable variable to the visible canvas.
Returns open backdoor paths, minimal sufficient adjustment sets, identifiability, and diagnostics. Identifiability is exact at any graph size; a flag marks when the list of minimal sets is not exhaustive.
Checks whether a proposed set is a valid adjustment set: it must block every encoded backdoor path and contain no descendant of the exposure (such as a mediator). Reports both conditions.
Generates R/dagitty or Python/NetworkX code for the live graph.
get_current_dagtoolReads live nodes, roles, positions, directed edges, exposure, and outcome.
remove_edgetoolRemoves a directed causal claim.
remove_nodetoolRemoves a node and its incident edges.
Runs the existing linear Gaussian SEM for the live graph, opens the visible simulation result, and returns bounded summaries, correlations, effect estimates, and a 10-row preview.
About
DAG Studio WebMCP
A human–AI causal DAG workspace for the OpenAI 2026 WebMCP Challenge.
The AI proposes. The researcher decides. The engine verifies.
Live HTTPS sandbox · Original DAG Studio · Apache 2.0 License
The problem
Causal directed acyclic graphs encode scientific assumptions: which variables cause which, what is measured or latent, and which paths may bias an effect estimate. Those decisions require domain expertise and scientific accountability. A general-purpose agent can help a researcher inspect and edit a graph, but visual browser automation is slow, ambiguous, and disconnected from the application's causal semantics.
DAG Studio WebMCP turns the existing DAG Studio interface into a shared workspace. A researcher can edit the canvas directly while an agent reads and updates that exact same graph through structured browser-native tools. Every agent mutation is visible and undoable. The causal engine checks the implications of the graph; neither the engine nor the agent claims to determine scientific truth.
Why WebMCP matters
Without WebMCP, an agent must infer node identities, edge directions, and analysis controls from pixels and DOM structure. With WebMCP, DAG Studio explicitly exposes safe, purpose-built operations such as add_node, add_edge, and analyze_current_dag.
This enables a two-way collaboration that was difficult before:
- The agent can read the live graph without scraping the interface.
- The agent can propose a precise, attributed change.
- The researcher immediately sees, moves, edits, accepts, or undoes it.
- Human canvas edits are immediately visible to the agent.
- The existing causal engine verifies backdoor paths and adjustment implications.
- The agent can simulate reproducible data under competing DAG hypotheses and compare their structural and statistical implications.
Live demonstration
Open the sandbox in ChatGPT's WebMCP-capable browser or Chrome with chrome://flags/#enable-webmcp-testing enabled. The header displays WebMCP connected when tools are available.
Suggested prompt:
Read the current DAG. Propose Smoking Status as a possible confounder, add it with arrows to Treatment and Outcome, then analyze the graph. Treat the additions as assumptions for my review and do not make any other changes.
The graph updates in place. Move the new node manually, then ask the agent to read the graph again to demonstrate that both participants share the same state.
WebMCP tools
| Tool | Behavior |
|---|---|
get_current_dag | Reads live nodes, roles, positions, directed edges, exposure, and outcome. |
add_node | Adds a researcher-reviewable variable to the visible canvas. |
remove_node | Removes a node and its incident edges. |
add_edge | Adds a directed causal claim; duplicate, self, and cyclic edges are rejected. |
remove_edge | Removes a directed causal claim. |
analyze_current_dag | Returns open backdoor paths, minimal sufficient adjustment sets, identifiability, and diagnostics. |
check_adjustment_set | Checks a proposed set against the encoded backdoor paths. |
generate_analysis_code | Generates R/dagitty or Python/NetworkX code for the live graph. |
simulate_current_dag | Runs the existing linear Gaussian SEM for the live graph, opens the visible simulation result, and returns bounded summaries, correlations, effect estimates, and a 10-row preview. |
The integration prefers the current document.modelContext API and includes a temporary navigator.modelContext fallback for hosts implementing an earlier WebMCP draft.
Architecture
Researcher edits canvas ─┐
├─ React state + synchronous refs ─ DAG Studio engine
Agent calls WebMCP tools ┘ │
├─ paths and adjustment sets
├─ diagnostics
├─ R/Python generation
└─ reproducible simulation summaries
index.htmlcontains the existing React DAG Studio interface.webmcp-tools.jsdefines and registers the nine tools through dependency-injected access to the canvas's state refs, mutation wrappers, and existing simulation engine.dag-engine.jsanddag-engine.d.tsare the existing DAG Studio causal engine and type declarations. The Challenge work calls this engine; it does not rewrite its causal algorithms.- The graph, analysis, undo history, and WebMCP operations remain client-side.
- The static build is hosted over HTTPS on Cloudflare Pages.
Human control and safety
Causal structure is an assertion, not a fact discovered by software. Tool descriptions and responses therefore frame mutations as proposals for researcher review. Agent changes:
- appear on the same canvas used for human editing;
- receive a visible agent-change notification;
- enter the same undo history as human changes;
- reject graph cycles and invalid node references; and
- return an explicit caveat that results depend on the encoded assumptions.
Examples and the wider interface
The inherited DAG Studio interface includes canonical structures for confounding, mediation, collider bias, and M-bias, along with:
- drag-and-drop DAG editing and typed variables;
- exposure and outcome designation;
- highlighted causal and backdoor paths;
- minimal adjustment guidance and structural-role diagnostics;
- R and Python code generation and code-to-canvas workflows;
- client-side data simulation; and
- image, PDF, PowerPoint, and code export.
What existed before August 25, 2026
The pre-Challenge baseline is the public Black-Swan-Causal-Labs/dag-studio application at commit 31cc431612ba18a8bce1ab0841a88a0bb8b815f3, dated July 8, 2026. It already contained the visual DAG editor, causal inference engine, educational examples, analysis panels, code console, simulation, export, and responsive UI.
The original application did not expose WebMCP tools, attribute agent graph edits, or test human/agent access to one shared graph state.
Built specifically for the WebMCP Challenge
The following work was added during the Challenge submission period after August 25, 2026:
- nine WebMCP tools, including reproducible simulation of the live DAG;
- direct wiring from those tools to the canvas's existing shared state;
- WebMCP connection diagnostics and current/earlier API compatibility;
- visible, undoable agent-change attribution;
- automated tests for tool registration, agent mutations, human-to-agent state visibility, edge/node removal, cycle rejection, engine analysis, adjustment checks, code generation, simulation reproducibility, bounded results, and input validation;
- an isolated HTTPS sandbox that does not alter production DAG Studio; and
- Challenge-specific documentation and demo instructions.
Run locally
git clone https://github.com/Black-Swan-Causal-Labs/dag-studio-webmcp.git
cd dag-studio-webmcp
npm install
npm run dev
Open the printed Vite URL. To expose native WebMCP in Chrome, enable chrome://flags/#enable-webmcp-testing and relaunch Chrome.
Test and build
npm test
npm run build
The test command runs both the original DAG engine parity suite and the WebMCP/shared-state suite. The production build is a static dist/ directory suitable for any HTTPS static host.
Scientific basis
The causal engine implements d-separation and adjustment logic based on Pearl (2009), Greenland, Pearl & Robins (1999), and Textor et al. (2016). Effect-modification classification follows VanderWeele & Robins (2007) and Weinberg (2007). See the in-app About and Education sections for details.
Author and license
John D. Diaz-Decaro, PhD, MS · Black Swan Causal Labs
Apache License 2.0 © 2026 John D. Diaz-Decaro, Black Swan Causal Labs, LLC. See LICENSE.
The reused dag-engine.js and dag-engine.d.ts files originate in DAG Studio
and are shared with dagstudio-mcp.
All three projects distribute the engine under Apache License 2.0; the WebMCP
Challenge work calls the engine without rewriting its causal algorithms.
Remote MCP clients
An optional remote MCP bridge connects other MCP clients to the same live browser canvas. Open the app, select Connect MCP, and enable a temporary connection. Native WebMCP continues to work without pairing. Registry metadata is in server.json.
Frequently asked questions
What is DAG Studio WebMCP MCP Server?
Read and edit a live DAG Studio canvas through its predefined WebMCP tools.
How do I install DAG Studio WebMCP MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. DAG Studio WebMCP MCP Server connects to the remote endpoint https://dag-studio-webmcp-bridge.jdiazdecaro.workers.dev/mcp, so there is nothing to install locally.
Is DAG Studio WebMCP MCP Server free and open source?
Yes. DAG Studio WebMCP MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does DAG Studio WebMCP MCP Server support remote (HTTP) connections?
Yes. DAG Studio WebMCP MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.
What tools does DAG Studio WebMCP MCP Server provide?
DAG Studio WebMCP MCP Server provides 9 tools, including add_edge, add_node, analyze_current_dag, and check_adjustment_set. See the full tool list for descriptions and parameters.
How is DAG Studio WebMCP MCP Server's trust score calculated?
DAG Studio WebMCP MCP Server scores 66 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.