Skip to content
plugmcp
DirectorySkillsCategoriesBlog
EN/中文
Sign inSign up
Home/Servers/DAG Studio WebMCP

DAG Studio WebMCP

by io.github.Black-Swan-Causal-Labs

Read and edit a live DAG Studio canvas through its predefined WebMCP tools.

Power your agent

Add this server

The publisher's own URL. Not a PlugMCP endpoint.

Server URL
https://dag-studio-webmcp-bridge.jdiazdecaro.workers.dev/mcp
Provider
Add in Claude

Claude opens with the name and URL filled in. You still confirm it there.

Claude Code
claude mcp add --transport http io.github.black-swan-causal-labs-dag-studio-webmcp https://dag-studio-webmcp-bridge.jdiazdecaro.workers.dev/mcp

Run in a terminal.

Claude Desktop
{
  "mcpServers": {
    "io.github.black-swan-causal-labs-dag-studio-webmcp": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://dag-studio-webmcp-bridge.jdiazdecaro.workers.dev/mcp"
      ]
    }
  }
}

claude_desktop_config.json

Step-by-step: add this in Claude

Remote URL or a command on your machine? How the two installs differ

Run on PlugMCP

Host a copy with our keys and logs.

A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.

Launch

Related MCP

View more
  • Firecrawl🔥 Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM clients.
  • N
    NotionToken-auth Notion MCP: pages, databases, blocks, comments, files. Runs headless in CI and agents.
  • Context7Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors

Related skills

View all
  • reaReverse engineer anything with agents, from app behavior down to native binaries.
  • rea-changelog-updatePrepare or rewrite REA release changelogs and GitHub release notes from pinned Git history, with verified contributor thanks and Release Please synchronization.
  • rea-tool-designDesign or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.

Questions

How do I install DAG Studio WebMCP?
Copy the http config for Cursor, Claude Desktop, Claude Code, or VS Code on this page. It uses the publisher's install, not a PlugMCP proxy.
Does DAG Studio WebMCP need an API key?
No required environment variable is listed on this record.
What transport does DAG Studio WebMCP use?
DAG Studio WebMCP is reached over HTTP.
When was DAG Studio WebMCP last checked?
Last checked 2026-10-21. Read and edit a live DAG Studio canvas through its predefined WebMCP tools.

Read and edit a live DAG Studio canvas through its predefined WebMCP tools.

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:

  1. The agent can read the live graph without scraping the interface.
  2. The agent can propose a precise, attributed change.
  3. The researcher immediately sees, moves, edits, accepts, or undoes it.
  4. Human canvas edits are immediately visible to the agent.
  5. The existing causal engine verifies backdoor paths and adjustment implications.
  6. 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

ToolBehavior
get_current_dagReads live nodes, roles, positions, directed edges, exposure, and outcome.
add_nodeAdds a researcher-reviewable variable to the visible canvas.
remove_nodeRemoves a node and its incident edges.
add_edgeAdds a directed causal claim; duplicate, self, and cyclic edges are rejected.
remove_edgeRemoves a directed causal claim.
analyze_current_dagReturns open backdoor paths, minimal sufficient adjustment sets, identifiability, and diagnostics.
check_adjustment_setChecks a proposed set against the encoded backdoor paths.
generate_analysis_codeGenerates R/dagitty or Python/NetworkX code for the live graph.
simulate_current_dagRuns 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.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.
  • 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.

How do I install DAG Studio WebMCP?
Copy the http config for Cursor, Claude Desktop, Claude Code, or VS Code on this page. It uses the publisher's install, not a PlugMCP proxy.
Does DAG Studio WebMCP need an API key?
No required environment variable is listed on this record.
What transport does DAG Studio WebMCP use?
DAG Studio WebMCP is reached over HTTP.
When was DAG Studio WebMCP last checked?
Last checked 2026-10-21. Read and edit a live DAG Studio canvas through its predefined WebMCP tools.

No tool list yet. Remote servers get one after the first health check.

plugmcp

Plug any tool into any agent. MCP servers for people who do not write servers. Gateway for volume, n8n for apps.

  • github.com/TODO
  • x.com/TODO
  • linkedin.com/company/TODO

PlugMCP, 2026

Product
  • Browse
  • Install
  • Host your own
  • Pricing
  • Voice mode
  • Browser
Directory
  • All MCP servers
  • MCP Apps
  • Tools
  • Agent skills
  • Categories
  • New
  • Voice
  • Submit a server
Developers
  • Docs
  • Blog
  • Club
  • Work with us
  • What is MCP
  • What is WebMCP
  • Status
Company
  • About
  • Contact
  • Terms
  • Privacy
  • DPA