Read and edit a live DAG Studio canvas through its predefined WebMCP tools.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
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 Β· MIT License
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.
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:
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.
| 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.
index.html contains the existing React DAG Studio interface.webmcp-tools.js defines and registers the nine tools through dependency-injected access to the canvas's state refs, mutation wrappers, and existing simulation engine.dag-engine.js and dag-engine.d.ts are the existing DAG Studio causal engine and type declarations. The Challenge work calls this engine; it does not rewrite its causal algorithms.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:
The inherited DAG Studio interface includes canonical structures for confounding, mediation, collider bias, and M-bias, along with:
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.
The following work was added during the Challenge submission period after August 25, 2026:
Open the printed Vite URL. To expose native WebMCP in Chrome, enable chrome://flags/#enable-webmcp-testing and relaunch Chrome.
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.
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.
John D. Diaz-Decaro, PhD, MS Β· Black Swan Causal Labs
MIT Β© 2026 John D. Diaz-Decaro, Black Swan Causal Labs, LLC. See LICENSE.
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.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/dag-studio-webmcp)<a href="https://allmcps.com/mcp/dag-studio-webmcp"><img src="https://allmcps.com/api/badge/dag-studio-webmcp?style=directory" alt="DAG Studio WebMCP on AllMCPs" /></a>