DAG Studio MCP
Causal DAG analysis: backdoor paths, adjustment sets, bias simulation.
Connector by blackswancausallabs.com · Domain verified by the MCP Registry
Chalk Labs
Need help deploying DAG Studio MCP?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, VS Code, Cursor, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install connector/blackswancausallabs-com-dagstudio-mcp
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Remote endpoint
https://dagstudio-mcp.blackswancausallabs.com/mcpRemote (HTTP)
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this server can do and what it asks for, from its tool list, install config and code. Checked Nov 1, 2026.
- Tools
- 6 read · 0 write · 0 delete · 3 not yet classified
- Secrets
- 1 (API keys, tokens or passwords)
- Install scripts
- Nothing to install (hosted)
- Runs as
- Hosted (remote endpoint)
Tools by what they do 9
Read from the source code; the running server may list different tools.
Read 6 · Look things up without changing anything.
analyze_dagcheck_overadjustmentclassify_effect_modificationcompute_biasget_canonical_exampleparse_dagitty
Not yet classified 3 · We could not tell from the name and description.
generate_codesimulate_datavalidate_engine
Secrets and settings it asks for
Secrets: values you paste in that let it act as you.
Authorization
Network hosts it talks to 6
bayes.cs.ucla.edu· found in codedagstudio-mcp.blackswancausallabs.com· found in remote endpoint, install command, codedagstudio.blackswancausallabs.com· found in codedoi.org· found in codegithub.com· found in codeglobal.oup.com· found in code
Tools (9)
Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].
analyze_dagReturns identifiability status and minimal adjustment sets given the DAG provided. Specifically: open backdoor paths from exposure to outcome (Pearl 2009 Theorem 3.3.2), the minimal sufficient adjustment sets that block them, and all directed paths. Accepts either a canonical DAG object or a `dagitty_string`. Returns a diagnostics block summarizing identifiability, unmeasured confounding, and any flagged issues, plus a static concordance attestation for the engine release. DAG Studio verifies analyses given a DAG. It does not verify that the DAG correctly encodes domain knowledge or that the…
check_overadjustmentGiven a DAG and a proposed adjustment set, identify variables whose inclusion biases the estimate. Detects three failure modes: • descendant_of_exposure — variable is caused by the exposure; conditioning on it blocks part of the causal effect being estimated, changing the estimand (Schisterman 2009). • collider — variable is a collider on a non-causal X→Y path whose conditioning opens that path; conditioning is unjustified unless another set member re-blocks it. • descendant_of_collider — variable is downstream of an unconditioned collider; conditioning induces the same M-bias as conditi…
classify_effect_modificationFor each modifier annotation on the DAG, classify the effect-modification structure per VanderWeele & Robins (2007) and Weinberg (2007). The five types and their regulatory implications: • direct — modifier is structurally independent of the E-D system; subgroup-specific effects are interpretable as pure modification. • indirect — modifier acts through a mediator; subgroup effects conflate modification with mediation. • common-cause — modifier shares an ancestor with the exposure; subgroup effects are confounded unless the ancestor is also adjusted. • proxy — modifier is unobserved; su…
compute_biasNumerically demonstrate the bias of a proposed adjustment set. Computes the true total effect analytically from the SEM edge coefficients (sum of products along all directed X→Y paths), then fits two OLS regressions on simulated data: crude (Y ~ X) and adjusted (Y ~ X + Z). Reports each estimate, each bias against the true effect, and the bias reduction |crude_bias| − |adjusted_bias|. Translates a structural claim ("adjust for {age, smoking}") into a numerical demonstration. Composes check_overadjustment internally — any overadjustment flags emitted there are surfaced in this tool's diagnosti…
generate_codeEmit idiomatic Python (networkx.DiGraph) or R (dagitty DSL) source representing the DAG. The identifier_map lets agents trace canvas labels to sanitized code identifiers when these differ (e.g., when labels contain spaces or special characters that aren't valid Python/R identifiers). Useful for handing the DAG to a downstream analysis pipeline. Also returns dagstudio_url — a one-click deep-link that opens the same DAG on the DAG Studio canvas at dagstudio.blackswancausallabs.com. Surface this URL to the user alongside the generated code so they can paste-free open the DAG visually, regardless …
get_canonical_exampleReturn one of the canonical validated DAGs from the engine's test suite by ID (T01–T15 for backdoor / adjustment-set canonical structures, EM01–EM20 for effect-modification structures from VanderWeele-Robins 2007 and Weinberg 2007). Useful for few-shot prompting, regression checks, and teaching. The returned DAG is the same one the engine is validated against, so analyze_dag's output on it will match the listed expected values.
parse_dagittyParse a dagitty DSL string into the canonical DAG shape used by other DAG Studio tools. Accepts dagitty('dag { ... }'), dagitty("..."), and dagitty::dagitty(...) forms. Bidirected (<->) and undirected (--) edges are skipped — DAG Studio represents only directed edges. This tool parses notation; it does not validate that the encoded DAG is a correct or complete causal model. That is a domain-knowledge question outside the scope of any graph tool. When the DAG depicts a paper's causal model, encode the structural assumptions of the study being protocolized, including those that are implicit in…
simulate_dataGenerate synthetic data from a Linear Gaussian Structural Equation Model consistent with the DAG. Root variables are sampled N(0,1); each non-root is a linear combination of its parents (default β = 0.5 per edge, overridable via `coefficients`) plus N(0, 0.25) noise. Output is deterministic given seed (default 42). Useful for sensitivity analysis and for demonstrating structural claims (e.g., 'adjustment for {age, smoking} eliminates the confounding shown by these data'). Outputs are consistent with the DAG under the linear Gaussian model only — real datasets generated under unknown processes…
validate_engineRun the canonical validation suite (T01–T15 backdoor / adjustment-set cases, EM01–EM20 effect-modification structures from VanderWeele-Robins 2007 and Weinberg 2007) against the current engine and return pass/fail per case. Use this when an agent or reviewer wants to verify the engine is trustworthy before relying on analyze_dag, check_overadjustment, or classify_effect_modification.
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit
- Sep 28, 2026 (1 month ago)
- Last release
- Jul 20, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- Registry name
com.blackswancausallabs/dagstudio-mcp- Version
- 0.1.0
- Auth
- Bearer token
- License
- Apache-2.0
- First seen
- Oct 24, 2026
- Last checked
- Nov 1, 2026
More from blackswancausallabs.com
- 0.582score
Docket Lens
blackswancausallabs.com
Retrieve FDA docket comments, attachments and draft/final guidance for reviewable analysis.
ConnectorAFreshness: ALocalClaude Desktop - 0.554score
NHANES (design-correct survey analysis)
blackswancausallabs.com
Design-correct NHANES analysis: survey weights, pooled cycles, CIs and NCHS reliability flags.
ConnectorAFreshness: ALocal★ 2↓ 33/wkClaude Code +5 - 0.501score
TARGET Checklist MCP
blackswancausallabs.com
Score how completely a target-trial-emulation study reports what the TARGET guideline requires.
ConnectorBFreshness: BLocal↓ 41/wkClaude Code +5 - 0.498score
ROBINS-I V2 MCP
blackswancausallabs.com
ROBINS-I V2 (not V1): risk of bias in one result of a non-randomized cohort study
ConnectorBFreshness: BLocal↓ 28/wkClaude Code +5 - 0.497score
openFDA Regulatory Metadata
blackswancausallabs.com
Resolve FDA application numbers and product names to regulatory metadata (CDER, CBER, CDRH).
ConnectorBFreshness: BLocal↓ 24/wkClaude Code +5
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get DAG Studio MCP running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
DAG Studio MCP. Agent Mart. https://agentmart.dev/connectors/blackswancausallabs-com-dagstudio-mcp (last updated 2026-11-01)