Server data from the Official MCP Registry
Causal DAG analysis: backdoor paths, adjustment sets, bias simulation. Validated against dagitty.
Causal DAG analysis: backdoor paths, adjustment sets, bias simulation. Validated against dagitty.
Remote endpoints: streamable-http: https://dagstudio-mcp.blackswancausallabs.com/mcp
The DAG Studio MCP server is a well-structured causal inference tool with appropriate authentication controls and reasonable permissions. The codebase demonstrates good security practices including token-gated access and proper credential handling. Minor code quality observations exist around broad exception handling in the vendored dagitty reference implementation, but these do not significantly impact the security posture since that code is excluded from the deployed bundle. Supply chain analysis found 2 known vulnerabilities in dependencies (0 critical, 2 high severity).
3 files analyzed · 4 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
This plugin requests these system permissions. Most are normal for its category.
Available as Local & Remote
This plugin can run on your machine or connect to a hosted endpoint. during install.
From the project's GitHub README.
Model Context Protocol (MCP) server for the DAG Studio causal-inference engine. It lets AI agents construct, analyze, and validate causal directed acyclic graphs (DAGs) using the same engine that powers the DAG Studio canvas.
Built and maintained by Black Swan Causal Labs. Listed in the RWE MCP Registry.
| Tool | What it does |
|---|---|
analyze_dag | Backdoor paths, minimal sufficient adjustment sets, identifiability |
parse_dagitty | Parse dagitty DSL (raw or R-wrapped) into the structured DAG model |
generate_code | R / Python analysis code for a DAG, plus a one-click DAG Studio URL |
check_overadjustment | Detect adjustment for mediators, colliders, and descendants of exposure |
simulate_data | Simulate data from a DAG under user-specified structural coefficients |
compute_bias | Empirical bias of an adjustment strategy against the simulated truth |
classify_effect_modification | Classify effect-modifier structure (direct, indirect, proxy, common-cause, pure interaction) |
get_canonical_example | Canonical teaching DAGs (confounding, M-bias, frontdoor, and others) |
validate_engine | Run the full canonical validation suite and report engine version |
Every analytical response carries an engine_version stamp, a concordance attestation, a diagnostics block with severity-coded flags, and citations to the underlying methods literature.
The engine is validated four ways for coherence: against Pearl (2009) theory, against the reference implementation dagitty (Textor et al. 2016), against DAG Studio's own analytical results, and empirically via compute_bias on simulated data.
validate_engine.7a65777) and stamps the attestation surfaced in tool responses.The server runs as a Cloudflare Worker (Streamable HTTP):
https://dagstudio-mcp.blackswancausallabs.com/mcp
Access is token-gated during the trial period. Request a token at jdiazdecaro@blackswancausallabs.com. Tokens are accepted either as a bearer header or as a ?token= query parameter (the query form exists for clients whose connector UI cannot set custom headers, such as the Claude.ai web connector).
Claude Code:
claude mcp add --transport http dag-studio \
https://dagstudio-mcp.blackswancausallabs.com/mcp \
--header "Authorization: Bearer <your token>"
Claude.ai web: add a custom connector pointed at https://dagstudio-mcp.blackswancausallabs.com/mcp?token=<your token>.
dag-engine.js / dag-engine.d.ts: the analytical engine, a pure ESM module with no runtime dependenciessrc/tools/: one file per tool, each exporting { InputSchema, OutputSchema, descriptor, handler }src/worker/: Cloudflare Worker transport and the token gate (auth.ts)src/index.ts: stdio entry point for local useci/: release-gate concordance harness against vendored dagittytests/: unit and integration tests (npm test)MCP_REQUIREMENTS.md: the v1 specificationFDA_GUIDANCE_ALIGNMENT.md: mapping of DAG Studio capabilities onto FDA draft RWE guidance protocol elementsThe engine is developed alongside the DAG Studio canvas app and the vendored copy here is synced at release time. This repository is self-contained: clone it, npm install, and everything builds and tests without further setup.
npm install
npm test # full suite
npm run dev # stdio server via tsx
npm run worker:typecheck # worker bundle typecheck
npm run worker:deploy # deploy (stamps engine_version from git HEAD first)
For interactive inspection: npx @modelcontextprotocol/inspector.
Built on @modelcontextprotocol/sdk (TypeScript). Current against the finalized MCP specification revision 2025-11-25. Migration to the 2026-07-28 revision is planned once stable SDK support ships.
Apache License 2.0 (see LICENSE).
Exception: ci/dagitty-src/ contains the dagitty reference engine (GPL-2.0, Textor et al.), vendored at upstream commit 7a65777 solely as a release-time CI fixture for the concordance check. It retains its own license, is excluded from the published npm package, and is not part of the deployed worker bundle.
Be the first to review this server!
by Modelcontextprotocol · Developer Tools
Web content fetching and conversion for efficient LLM usage
by Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
by mcp-marketplace · Developer Tools
Create, build, and publish Python MCP servers to PyPI — conversationally.