
Store and retrieve entities, relations and observations in a persistent local knowledge graph.

A hosted MCP server that runs cross-domain causal discovery and inference over 18 public data sources, exposing eight tools for causal structure learning, treatment effects, counterfactuals, transportability, confounder detection, persuasion simulation, experiment optimization, and model validation.
Causal Panopticon MCP Server is cataloged as an MCP server attributed to apifyforge. A hosted MCP server that runs cross-domain causal discovery and inference over 18 public data sources, exposing eight tools for causal structure learning, treatment effects, counterfactuals, transportability, confounder detection, persuasion simulation, experiment optimization, and model validation. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Causal Panopticon MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
The README suggests using the default auto mode to let the server select by BIC score, and notes PC suits sparse graphs, GES handles moderate-density graphs faster than NOTEARS for larger node sets, and NOTEARS suits dense continuous structures with gradient-based optimization.
No; the README states that no causal discovery algorithm on observational data can prove causation, and that the tools identify candidate structures consistent with the data under the faithfulness and Markov assumptions, with experimental intervention needed for confirmation.
No; each tool call is processed independently and causal graphs and data are not persisted between calls, though Apify stores run logs and output datasets per run in your account.
README.md · a4c4a988b1f4 · Fetched 2026-11-13 13:22:55 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
Add to your MCP client (Claude Desktop, Cursor, Windsurf):
{
"mcpServers": {
"causal-panopticon-mcp": {
"url": "https://ryanclinton--causal-panopticon-mcp.apify.actor/mcp"
}
}
}
Causal Panopticon is a cross-domain causal discovery and inference engine for AI agents, exposed via the Model Context Protocol. It orchestrates 18 heterogeneous data sources across economics, health, environment, security, policy, finance, academia, and labor — applying 8 peer-reviewed causal algorithms to discover what actually causes what, not just what correlates.
Built for researchers, policy analysts, and AI agents that need to move beyond correlation into causal structure. Each tool call fires up to 18 data actors in parallel, assembles a causal graph, and returns structured inference results — average treatment effects, counterfactual values, transportability verdicts, and validated DAG structures — over a single MCP connection.
| Data Point | Source | Coverage |
|---|---|---|
| 📊 Economic time series | FRED Economic Data | 800K+ US series |
| 👷 Labor statistics | BLS Economic Data | US employment, wages, prices |
| 🌐 Global macroeconomic indicators | IMF Data | 190 countries |
| 🏥 Health statistics | WHO GHO Data | Global health metrics |
| 🧪 Clinical research | ClinicalTrials.gov | Registered trials worldwide |
| 🔬 Biomedical literature | PubMed Search | 35M+ articles |
| 🌦️ Weather and climate data | NOAA Weather | US and global observations |
| 💨 Air quality measurements | OpenAQ | Global monitoring stations |
| 🔐 Cyber vulnerabilities | NVD CVE Search | All published CVEs |
| 📜 US legislation | Congress Bill Search | Active and historical bills |
| 📋 US regulatory filings | Federal Register Search | Federal rules and notices |
| 🏢 Corporate SEC filings | SEC EDGAR Search | All public company filings |
| 📈 Market and equity data | Finnhub Financial Data | Global equities |
| 🎓 Academic publications | OpenAlex | 250M+ scholarly works |
| 🌪️ Disaster declarations | FEMA Disaster Search | US disaster records |
| ⚠️ Consumer product safety | CPSC Recall Search | Product recall alerts |
| 💊 Drug adverse events | FDA Drug Event Search | FAERS database |
| 💼 Job market trends | Job Market Intelligence | Employment signals |
Correlation-based analysis is fast but dangerous for decisions. A policy team that sees a correlation between air quality and hospital admissions cannot determine whether pollution causes illness, whether illness causes people to move to polluted areas, or whether poverty confounds both. Getting that distinction wrong means wasted interventions and missed opportunities.
Manual causal analysis — collecting data from 18 separate sources, applying conditional independence tests, building DAGs, checking back-door criteria — takes weeks for a trained economist. This MCP server does it in a single AI agent tool call.
Connecting via the MCP protocol means your AI agent in Claude Desktop, Cursor, or any MCP-compatible client gains causal reasoning capabilities without writing a line of data collection code.
| Tool | Algorithm | Best for | Cost per call |
|---|---|---|---|
discover_cross_domain_causes | PC / GES / NOTEARS meta-algorithm + transfer entropy | Finding causal structure across domains | $0.04 |
estimate_interventional_effect | Do-calculus (three rules), back-door, front-door, IV | Treatment effect estimation, policy evaluation | $0.04 |
compute_counterfactual | Pearl's SCM: abduction → action → prediction | Retrospective attribution, what-if analysis | $0.04 |
transport_causal_effect | Bareinboim-Pearl transportability, s-admissibility | Generalizing findings across populations | $0.04 |
detect_confounders | Graph structure + partial correlation analysis | Identifying threats to causal inference | $0.04 |
simulate_causal_agents | Bayesian persuasion, Kamenica-Gentzkow concavification | Expert disagreement modeling, policy persuasion | $0.04 |
optimize_causal_experiment | Causal Bayesian optimization, Expected Improvement | Experiment design, active learning | $0.04 |
validate_causal_model | DAG acyclicity, Markov compatibility, faithfulness, BIC | Model checking, algorithm comparison | $0.04 |
auto mode runs all three structural learning algorithms (PC, GES, NOTEARS) and selects the result with the best BIC score, so you get the best-fitting DAG for your data without manual tuningalpha parameterrunActorsParallel, with 180-second per-actor timeout and graceful empty-array fallback on failurePolicy analysts and think tanks evaluating legislative proposals need to know whether a law caused an outcome, not merely whether the two are correlated. Use estimate_interventional_effect with sourceDomain: "policy" and targetDomain: "economics" to estimate the average treatment effect of a legislative change on employment or GDP — with identification criterion reported so you know whether back-door, front-door, or IV was used.
Research teams and AI agents building knowledge graphs often work within single data silos. discover_cross_domain_causes pulls from all 9 domain groups simultaneously, builds per-domain DAGs via the meta-algorithm, and merges them into a colimit graph. The result surfaces cross-domain causal edges — for example, a NOAA climate variable influencing an FRED unemployment series — that no single-domain analysis would find.
Epidemiologists and public health researchers need counterfactual estimates to answer attribution questions. compute_counterfactual implements Pearl's abduction-action-prediction procedure using PubMed and clinical trials data: "What would the mortality rate have been if the intervention had not been introduced?" The exogenous noise terms are inferred from observed residuals, giving a statistically grounded retrospective estimate.
Development economists and international health researchers routinely need to apply findings from one country's data to another. transport_causal_effect evaluates Bareinboim-Pearl s-admissibility using selection diagrams derived from the source and target domain graphs. If the effect is transportable, it returns the reweighted adjusted estimate; if not, it reports why transportability fails.
AI agents tasked with causal learning pipelines — for example, an agent iterating on a research question over multiple runs — can use optimize_causal_experiment to decide which variable to intervene on next. The Expected Improvement acquisition function selects the variable whose intervention maximally reduces posterior variance over the target, with power analysis output for sample size planning.
Before using a discovered DAG to make decisions or pass to a downstream analysis, use validate_causal_model to verify it satisfies DAG acyclicity, Markov compatibility, and faithfulness. Individual test p-values are returned per criterion, so you can report the statistical basis for accepting or rejecting the structure.
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"causal-panopticon": {
"url": "https://causal-panopticon-mcp.apify.actor/mcp",
"headers": {
"Authorization": "Bearer YOUR_APIFY_TOKEN"
}
}
}
}
Add the following to your Cursor MCP settings:
{
"mcpServers": {
"causal-panopticon": {
"url": "https://causal-panopticon-mcp.apify.actor/mcp",
"headers": {
"Authorization": "Bearer YOUR_APIFY_TOKEN"
}
}
}
}
The server endpoint is: https://causal-panopticon-mcp.apify.actor/mcp
The server uses Streamable HTTP transport and supports all standard MCP operations: tools/list, tools/call.
This MCP server has no actor-level input. All parameters are passed directly to each tool when called by the AI agent.
| Tool | Parameter | Type | Required | Default | Description |
|---|---|---|---|---|---|
discover_cross_domain_causes | query | string | Yes | — | Search query sent to all domain actors (e.g. "inflation healthcare employment") |
discover_cross_domain_causes | domains | string[] | No | all 9 | Subset of: economics, health, environment, security, policy, finance, academia, disaster, labor |
discover_cross_domain_causes | algorithm | enum | No | auto | auto, pc, ges, or notears |
discover_cross_domain_causes | alpha | number | No | 0.05 | Significance level for PC conditional independence tests |
discover_cross_domain_causes | maxResults | number | No | 20 | Max results fetched per upstream actor |
estimate_interventional_effect | query | string | Yes | — | Data collection query |
estimate_interventional_effect | treatment | string | Yes | — | Treatment/intervention variable name |
estimate_interventional_effect | outcome | string | Yes | — | Outcome variable name |
estimate_interventional_effect | domains | string[] | No | all 9 | Domains for data collection |
estimate_interventional_effect | maxResults | number | No | 15 | Max results per actor |
compute_counterfactual | query | string | Yes | — | Data collection query |
compute_counterfactual | interventionVariable | string | Yes | — | Variable to hypothetically change |
compute_counterfactual | interventionValue | number | Yes | — | Hypothetical value for the intervention |
compute_counterfactual | queryVariable | string | Yes | — | Variable whose counterfactual value to compute |
compute_counterfactual | domains | string[] | No | all 9 | Domains for data collection |
compute_counterfactual | maxResults | number | No | 15 | Max results per actor |
transport_causal_effect | query | string | Yes | — | Query common to both domains |
transport_causal_effect | sourceDomain | string | Yes | — | Domain where the effect was identified |
transport_causal_effect | targetDomain | string | Yes | — | Domain to transport the effect to |
transport_causal_effect | treatment | string | Yes | — | Treatment variable |
transport_causal_effect | outcome | string | Yes | — | Outcome variable |
transport_causal_effect | selectionVariables | string[] | No | — | Variables that differ between domains |
transport_causal_effect | maxResults | number | No | 15 | Max results per actor |
detect_confounders | query | string | Yes | — | Data collection query |
detect_confounders | domains | string[] | No | all 9 | Domains for data collection |
detect_confounders | maxResults | number | No | 15 | Max results per actor |
simulate_causal_agents | query | string | Yes | — | Causal claim or hypothesis to evaluate |
simulate_causal_agents | numStates | number | No | 3 | Number of possible causal states (2–10) |
simulate_causal_agents | numAgents | number | No | 3000 | Number of domain expert agents to simulate |
simulate_causal_agents | domains | string[] | No | all 9 | Domains for data collection |
simulate_causal_agents | maxResults | number | No | 10 | Max results per actor |
optimize_causal_experiment | query | string | Yes | — | Research question or target variable query |
optimize_causal_experiment | targetVariable | string | Yes | — | Variable to learn about |
optimize_causal_experiment | budget | number | No | 100 | Experiment budget (abstract units for cost estimation) |
optimize_causal_experiment | domains | string[] | No | all 9 | Domains for data collection |
optimize_causal_experiment | maxResults | number | No | 15 | Max results per actor |
validate_causal_model | query | string | Yes | — | Data collection query |
validate_causal_model | domains | string[] | No | all 9 | Domains for data collection |
validate_causal_model | algorithm | enum | No | auto | Algorithm to validate: auto, pc, ges, notears |
validate_causal_model | maxResults | number | No | 15 | Max results per actor |
Discover causal structure across economics and health:
{
"query": "inflation unemployment healthcare spending",
"domains": ["economics", "health", "labor"],
"algorithm": "auto",
"alpha": 0.05,
"maxResults": 20
}
Estimate policy treatment effect:
{
"query": "minimum wage employment",
"treatment": "minimum_wage",
"outcome": "employment_rate",
"domains": ["economics", "policy", "labor"],
"maxResults": 15
}
Compute counterfactual for health intervention:
{
"query": "air quality respiratory hospital admissions",
"interventionVariable": "pm25_concentration",
"interventionValue": 12.0,
"queryVariable": "hospital_admissions",
"domains": ["environment", "health"],
"maxResults": 15
}
findClosestNode function uses substring matching, so treatment/outcome variable names like "employment" or "pm25" will match nodes even without exact ID matchesalpha for exploratory work — setting alpha: 0.10 makes the PC algorithm less aggressive in pruning edges, giving a denser skeleton for hypothesis generationvalidate_causal_model after discover_cross_domain_causes — run discovery first, then validation with the same query and domain parameters to get p-values for each model criterion before drawing conclusions{
"algorithm": "NOTEARS",
"totalNodes": 24,
"totalEdges": 31,
"domains": ["economics", "health", "environment", "labor"],
"perDomainGraphs": [
{
"algorithm": "GES",
"nodes": 8,
"edges": 11,
"bicScore": -142.7,
"dagValid": true
},
{
"algorithm": "PC",
"nodes": 6,
"edges": 7,
"bicScore": -98.4,
"dagValid": true
}
],
"crossDomainEdges": [
{
"from": "economics_cpi_inflation",
"to": "health_hospital_admissions",
"weight": 0.64,
"mechanism": "indirect",
"confidence": 0.81
},
{
"from": "environment_pm25",
"to": "labor_absenteeism",
"weight": 0.52,
"mechanism": "direct",
"confidence": 0.74
}
],
"colimitGraph": {
"nodes": 24,
"edges": 31,
"dagValid": true
},
"transferEntropyTopPairs": [
{ "from": "economics", "to": "labor", "entropy": 0.43 },
{ "from": "environment", "to": "health", "entropy": 0.38 }
]
}
{
"treatment": "economics_minimum_wage",
"outcome": "labor_employment_rate",
"averageTreatmentEffect": -0.024,
"confidence": 0.78,
"identificationCriterion": "backdoor",
"adjustmentSet": ["economics_gdp_growth", "policy_labor_regulation"],
"confidenceInterval": [-0.041, -0.007],
"graphAlgorithm": "GES",
"graphNodes": 18,
"graphEdges": 22
}
{
"query": "What would hospital admissions be if PM2.5 had been 12?",
"factualValue": 0.47,
"counterfactualValue": 0.31,
"causalEffect": -0.16,
"probability": 0.83,
"mechanism": "direct structural pathway via environment_pm25 -> health_respiratory",
"exogenousNoiseTerms": 6,
"graphAlgorithm": "NOTEARS",
"graphNodes": 14
}
{
"sourceDomain": "health",
"targetDomain": "economics",
"sourceEffect": 0.38,
"transportable": true,
"sAdmissible": true,
"adjustedEffect": 0.29,
"confidence": 0.71,
"selectionNodes": ["gdp_per_capita", "healthcare_expenditure"],
"sourceGraphNodes": 9,
"targetGraphNodes": 11
}
{
"overallValid": true,
"dagConstraintSatisfied": true,
"markovCompatible": true,
"faithfulnessHolds": false,
"bicScore": -214.3,
"testResults": [
{ "test": "dag_acyclicity", "pValue": 1.0, "passed": true },
{ "test": "markov_compatibility", "pValue": 0.12, "passed": true },
{ "test": "faithfulness", "pValue": 0.03, "passed": false },
{ "test": "bic_goodness_of_fit", "pValue": 0.24, "passed": true }
],
"graphAlgorithm": "PC",
"graphNodes": 16,
"graphEdges": 19
}
| Field | Type | Description |
|---|---|---|
graphAlgorithm | string | Algorithm selected: PC, GES, or NOTEARS |
graphNodes | number | Number of nodes in the merged causal graph |
graphEdges | number | Number of directed edges in the merged causal graph |
| Field | Type | Description |
|---|---|---|
algorithm | string | Algorithm selected by meta-algorithm (best BIC) |
totalNodes | number | Total nodes in the colimit (merged) graph |
totalEdges | number | Total edges in the colimit graph |
domains | string[] | Domains included in this run |
perDomainGraphs[] | object[] | Per-domain graph summary with algorithm, node/edge counts, BIC score, and DAG validity flag |
crossDomainEdges[] | object[] | Edges whose endpoints span different domain graphs |
crossDomainEdges[].from | string | Source node ID (domain-prefixed) |
crossDomainEdges[].to | string | Target node ID (domain-prefixed) |
crossDomainEdges[].weight | number | Edge weight (partial correlation magnitude) |
crossDomainEdges[].mechanism | string | direct or indirect |
crossDomainEdges[].confidence | number | Confidence in direction [0, 1] |
colimitGraph.nodes | number | Total nodes in the merged colimit graph |
colimitGraph.edges | number | Total edges in the merged colimit graph |
colimitGraph.dagValid | boolean | Whether the colimit graph satisfies acyclicity |
transferEntropyTopPairs[] | object[] | Top domain pairs by time-lagged transfer entropy |
| Field | Type | Description |
|---|---|---|
treatment | string | Matched treatment node ID in the graph |
outcome | string | Matched outcome node ID in the graph |
averageTreatmentEffect | number | ATE: E[Y | do(X=x)] - E[Y | do(X=x')] |
confidence | number | Confidence in the ATE estimate [0, 1] |
identificationCriterion | string | backdoor, frontdoor, instrumental, or direct |
adjustmentSet | string[] | Variables used in the adjustment formula |
confidenceInterval | [number, number] | 95% confidence interval bounds for the ATE |
| Field | Type | Description |
|---|---|---|
query | string | Human-readable counterfactual question |
factualValue | number | Observed value of the query variable |
counterfactualValue | number | Estimated value under the hypothetical intervention |
causalEffect | number | Counterfactual effect: counterfactual - factual |
probability | number | Probability of the counterfactual scenario [0, 1] |
mechanism | string | Description of the causal pathway |
exogenousNoiseTerms | number | Number of exogenous noise variables inferred (abduction step) |
| Field | Type | Description |
|---|---|---|
sourceDomain | string | Domain where the effect was identified |
targetDomain | string | Target domain for transport |
sourceEffect | number | Original causal effect in the source domain |
transportable | boolean | Whether the effect can be validly transported |
sAdmissible | boolean | Whether the selection diagram is s-admissible |
adjustedEffect | number | Reweighted effect estimate for the target domain |
selectionNodes | string[] | Selection variables in the transportability diagram |
| Field | Type | Description |
|---|---|---|
totalConfounders | number | Total confounders found in the graph |
confounders[].variable | string | Confounding variable ID |
confounders[].confounds | [string, string] | The pair of variables being confounded |
confounders[].strength | number | Confounding strength (partial correlation magnitude) |
confounders[].adjustable | boolean | Whether the confounder is observed and adjustable |
confounders[].instrumentAvailable | boolean | Whether an instrumental variable exists |
confounders[].instrument | string | null | IV variable name, if available |
| Field | Type | Description |
|---|---|---|
agentsSimulated | number | Number of expert agents in the simulation |
states | number | Number of possible causal states |
convergence | boolean | Whether the persuasion game reached equilibrium |
equilibriumBeliefs | object | Final posterior belief distribution over states |
senderPayoff | number | Optimal sender payoff under the equilibrium signal |
receiverPayoff | number | Receiver payoff at equilibrium |
informationRent | number | Information rent extracted by the sender |
optimalSignals | number | Number of signals in the optimal disclosure policy |
posteriorCount | number | Number of posteriors in the concavified value function |
| Field | Type | Description |
|---|---|---|
targetVariable | string | Matched target variable ID in the graph |
optimalIntervention | string | Variable to intervene on for maximum information gain |
expectedInfoGain | number | Expected reduction in posterior variance |
acquisitionFunction | number | Expected Improvement acquisition function value |
suggestedSampleSize | number | Recommended sample size from power analysis |
estimatedCost | number | Estimated experiment cost in budget units |
candidateVariables | string[] | All candidate intervention variables considered |
| Field | Type | Description |
|---|---|---|
overallValid | boolean | True if all four criteria pass |
dagConstraintSatisfied | boolean | Kahn topological sort succeeds (no cycles) |
markovCompatible | boolean | Implied conditional independencies hold in data |
faithfulnessHolds | boolean | No extra conditional independencies in data |
bicScore | number | Bayesian Information Criterion (lower is better) |
testResults[] | object[] | Individual test results with p-value and pass/fail |
testResults[].test | string | Test name |
testResults[].pValue | number | p-value for the test |
testResults[].passed | boolean | Whether the test passed |
Causal Panopticon uses pay-per-event pricing — you pay $0.04 per tool call. Upstream actor execution costs are billed separately at Apify's standard rates (typically $0.01-0.02 per upstream call). Platform compute is included.
| Scenario | Tool calls | Cost per call | Estimated total |
|---|---|---|---|
| Quick test | 1 | $0.04 | $0.04 |
| Small research session | 10 | $0.04 | $0.40 |
| Full analysis pipeline | 50 | $0.04 | $2.00 |
| Daily automated runs | 200 | $0.04 | $8.00 |
| Enterprise research workflow | 1,000 | $0.04 | $40.00 |
You can set a maximum spending limit per run to control costs. The actor stops when your budget is reached.
The Apify free plan includes $5 of monthly platform credits — enough for approximately 125 tool calls at no cost. Compare this to commercial causal inference platforms that charge $200-2,000/month for access to a single data domain. Causal Panopticon covers 9 domains with no subscription commitment.
from apify_client import ApifyClient
client = ApifyClient("YOUR_API_TOKEN")
# Start the MCP server actor in standby mode and call a tool via HTTP
import urllib.request
import json
url = "https://causal-panopticon-mcp.apify.actor/mcp"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_APIFY_TOKEN"
}
payload = {
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "discover_cross_domain_causes",
"arguments": {
"query": "inflation unemployment health outcomes",
"domains": ["economics", "health", "labor"],
"algorithm": "auto",
"maxResults": 20
}
},
"id": 1
}
data = json.dumps(payload).encode("utf-8")
req = urllib.request.Request(url, data=data, headers=headers, method="POST")
with urllib.request.urlopen(req) as response:
result = json.loads(response.read())
content = result["result"]["content"][0]["text"]
atlas = json.loads(content)
print(f"Algorithm: {atlas['algorithm']}")
print(f"Total nodes: {atlas['totalNodes']}, edges: {atlas['totalEdges']}")
for edge in atlas.get("crossDomainEdges", []):
print(f" {edge['from']} -> {edge['to']} (confidence: {edge['confidence']:.2f})")
const url = "https://causal-panopticon-mcp.apify.actor/mcp";
const response = await fetch(url, {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_APIFY_TOKEN"
},
body: JSON.stringify({
jsonrpc: "2.0",
method: "tools/call",
params: {
name: "estimate_interventional_effect",
arguments: {
query: "minimum wage employment labor market",
treatment: "minimum_wage",
outcome: "employment_rate",
domains: ["economics", "policy", "labor"],
maxResults: 15
}
},
id: 1
})
});
const result = await response.json();
const content = JSON.parse(result.result.content[0].text);
console.log(`ATE: ${content.averageTreatmentEffect.toFixed(4)}`);
console.log(`Identification: ${content.identificationCriterion}`);
console.log(`Adjustment set: ${content.adjustmentSet.join(", ")}`);
console.log(`95% CI: [${content.confidenceInterval[0].toFixed(4)}, ${content.confidenceInterval[1].toFixed(4)}]`);
# Call discover_cross_domain_causes
curl -X POST "https://causal-panopticon-mcp.apify.actor/mcp" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_APIFY_TOKEN" \
-d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "discover_cross_domain_causes",
"arguments": {
"query": "air quality respiratory disease employment",
"domains": ["environment", "health", "labor"],
"algorithm": "auto",
"maxResults": 20
}
},
"id": 1
}'
# List all available tools
curl -X POST "https://causal-panopticon-mcp.apify.actor/mcp" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_APIFY_TOKEN" \
-d '{"jsonrpc": "2.0", "method": "tools/list", "params": {}, "id": 1}'
When a tool is called, the server identifies which domains are active and maps each domain to its upstream actor IDs using the DOMAIN_MAP constant. The economics domain maps to fred, bls, and imf actors; health maps to who, clinicalTrials, and pubmed; and so on. All actor calls fire simultaneously via runActorsParallel, which wraps Promise.all with per-actor 180-second timeouts and empty-array fallbacks. Results are grouped by domain into a domainData record before graph construction.
buildCrossDomainAtlas extracts numeric features from each domain's data items — converting any JSON field resolvable to a float into a CausalNode.values array. For each domain with at least 2 nodes, the function runs all three structural learning algorithms and selects the result with the lowest BIC score. PC algorithm starts with a complete undirected graph and iteratively removes edges where partial correlation is not significant at alpha (Fisher's z-test, Abramowitz-Stegun CDF approximation). GES applies forward greedy edge addition followed by backward deletion, scoring each candidate DAG by BIC = n*ln(RSS/n) + k*ln(n). NOTEARS builds the adjacency using trace(exp(W ∘ W)) - d = 0 as the continuous acyclicity constraint, approximated via 8th-order Taylor series. Topological sort (Kahn's algorithm) validates DAG acyclicity before returning each graph.
Per-domain graphs are merged into a colimit graph by unioning all nodes and edges. Cross-domain edges are inferred by computing Pearson correlations between nodes from different domain graphs using their raw value arrays — pairs above a threshold receive a directed edge from the domain with higher data density to the lower. The transfer entropy matrix is computed for all domain pairs using kernel density estimation of time-lagged mutual information, giving a separate signal for directional information flow that does not depend on the structural equations.
Depending on the tool called, the merged graph feeds into one of five inference procedures. doCalculus searches the graph for a back-door adjustment set (a set of nodes that blocks all back-door paths from treatment to outcome) and computes the adjustment formula; if none exists, it tries front-door paths, then instrumental variables. scmCounterfactual assigns each node a structural equation of the form X_j = sum(beta_ij * X_i) + U_j, infers the noise terms U by regression residualization (abduction), sets the intervention variable to its hypothetical value (action), and propagates in topological order (prediction). transportCausalEffect compares the Markov boundaries of treatment and outcome nodes across source and target graphs to evaluate s-admissibility. bayesianPersuasion applies the Kamenica-Gentzkow concavification by iteratively finding the highest concave lower envelope over the sender's value function on the probability simplex.
Narrow the domain list for focused queries. All-domain runs query all 18 actors, which increases both latency and cost. For a question about economic policy effects on labor markets, ["economics", "policy", "labor"] is sufficient and produces a cleaner causal graph.
Use algorithm: "auto" unless you have a prior reason not to. The meta-algorithm compares PC, GES, and NOTEARS by BIC and picks the best fit for your data's density. Only override to a specific algorithm if you need reproducibility across runs or have domain knowledge about the expected graph structure.
Run detect_confounders before estimate_interventional_effect. Knowing which confounders exist and whether they are adjustable tells you whether the back-door criterion is applicable before running the full treatment effect estimation. If a confounder is non-adjustable and no instrument is available, the identification may fall back to front-door or be unreliable.
Use validate_causal_model to assess statistical confidence. The faithfulnessHolds: false result does not invalidate a graph — it means the data contains extra conditional independencies beyond what the graph implies, which is common with small samples. Examine the individual testResults p-values rather than relying solely on overallValid.
For counterfactual analysis, set interventionValue to a realistic hypothetical. Values far outside the observed data range will produce extrapolated noise estimates with low probability scores. Counterfactuals within the 10th-90th percentile of the treatment variable's observed distribution are most reliable.
Combine optimize_causal_experiment with discover_cross_domain_causes for active causal learning. First run discovery to get the graph structure, then pass the target variable to the experiment optimizer to find which variable to measure or intervene on in the next data collection round.
Increase maxResults for higher-quality graphs. Each upstream actor returns up to maxResults items, and more observations per node improve the statistical power of the partial correlation tests in PC and the BIC scoring in GES. The default of 15-20 is conservative; set to 50 for research-grade results.
| Actor | How to combine |
|---|---|
| Company Deep Research | Feed company intelligence reports as domain data input; use estimate_interventional_effect to identify which business factors causally drive financial outcomes |
| Website Tech Stack Detector | Build a technology adoption dataset across companies, then use discover_cross_domain_causes to find causal links between tech choices and business performance signals |
| Trustpilot Review Analyzer | Extract sentiment scores over time and use compute_counterfactual to estimate what review scores would have been absent a specific product change |
| B2B Lead Qualifier | Score leads with 30+ signals, then pipe signals into detect_confounders to identify which lead-scoring features are genuinely predictive versus confounded by company size |
| SERP Rank Tracker | Track ranking changes over time and use transport_causal_effect to test whether SEO interventions that worked in one market transport to another |
| Regulatory Change Tracker | Use new regulatory data as the policy domain input for estimate_interventional_effect to estimate ATE of specific regulatory changes on industry metrics |
validate_causal_model before acting on them.graphNodes in the response — very low counts indicate data collection issues for that domain.findClosestNode function matches by substring if no exact match is found. Treatment and outcome variable names that are too generic (e.g., "rate") may match unexpected nodes. Use domain-prefixed names or more specific terms (e.g., "employment_rate", "cpi_inflation") for reliable matching.algorithm: "pc" explicitly, as GES and NOTEARS can overfit.simulate_causal_agents tool derives prior beliefs from data density across domains, but the sender/receiver payoffs are modeled abstractly. Results are most useful for directional qualitative analysis of expert disagreement, not precise payoff quantification.estimate_interventional_effect on a schedule and pipe ATE results to Slack or a Google Sheetdiscover_cross_domain_causes and then reason over the returned causal graph structure in a multi-step research loopGraph has very few nodes despite a broad query. Most upstream actors returned empty arrays, either due to query terms that did not match their search APIs or temporary rate limiting. Try a broader query term and specify fewer domains. Check that each domain's typical data format contains numeric fields — text-heavy domains like academia produce sparse graphs when PubMed abstracts are the primary data source.
averageTreatmentEffect is unexpectedly large or small. The ATE is estimated from the linear structural equations fitted to the extracted numeric features. If the upstream data has a very narrow numeric range or high variance, the regression coefficients will reflect that scale. Interpret the ATE as a relative directional effect within the data distribution, not an absolute real-world unit effect.
transportable: false even when domains seem similar. Transportability fails when the Markov boundary of the treatment node in the source graph contains variables that are selection nodes in the target domain — meaning the populations differ on precisely those variables. Try running detect_confounders on the target domain separately and compare the confounder list to understand why s-admissibility is not satisfied.
convergence: false in simulate_causal_agents. The Bayesian persuasion game did not reach a stable equilibrium within the iteration limit. This can happen when the prior beliefs are nearly uniform and the payoff matrices have low contrast. Try increasing numStates to 2 for a binary causal claim, which produces a simpler concavification problem that converges more reliably.
Tool returns a spending limit error. You have reached the per-run spending limit configured in your Apify account or run settings. Increase the maxTotalChargeUsd parameter when starting the actor, or set a higher limit in the Apify console under your account's billing settings.
What is cross-domain causal discovery and why does it require 18 data sources? Causal discovery within a single domain misses relationships that span institutional boundaries. Economic shocks cause health outcomes; climate events cause labor disruptions; cybersecurity incidents cause regulatory changes. Identifying these cross-domain causal pathways requires simultaneous data from economics, health, environment, and other domains. The 18 source actors cover 9 domain groups, giving the meta-algorithm enough heterogeneous data to build a credible cross-domain causal atlas.
Which causal discovery algorithm should I use — PC, GES, or NOTEARS?
Use algorithm: "auto" (the default) to let the server select by BIC score. If you need guidance: PC is best for sparse graphs with strong domain knowledge about which variables can be causally connected; GES handles moderate-density graphs and is computationally faster than NOTEARS for larger node sets; NOTEARS is best when you expect a dense continuous structure and want gradient-based optimization rather than combinatorial search.
Can this server prove causation?
No causal discovery algorithm running on observational data can prove causation. The tools identify candidate causal structures that are statistically consistent with the data under the faithfulness and Markov assumptions. True causal confirmation requires experimental intervention. Use validate_causal_model to check statistical support and optimize_causal_experiment to design a follow-up experiment that would confirm or refute the discovered structure.
How is estimate_interventional_effect different from a regression coefficient?
A regression coefficient measures association conditional on included variables. estimate_interventional_effect uses do-calculus to identify P(Y|do(X)) — the distribution of Y under a hypothetical intervention that sets X to a value, rather than merely observing X at that value. The critical difference is that do-calculus adjusts for confounders using the graph structure, not just the variables included in the regression, and can identify effects even when back-door blocking is impossible (via front-door or IV criteria).
How accurate are the counterfactual estimates?
Accuracy depends on: the quality of numeric data extracted from upstream actors, how well the linear structural equations approximate the true mechanisms, and whether the faithfulness assumption holds. The probability field in compute_counterfactual reflects the plausibility of the inferred exogenous noise scenario. Values above 0.7 indicate the counterfactual is consistent with the observed data; below 0.5 suggests the hypothetical intervention is far from the training distribution.
How long does a typical tool call take?
A full all-domain call (discover_cross_domain_causes with all 9 domains) typically takes 2-4 minutes because it fires up to 18 upstream actors in parallel, each with a 180-second timeout. Single-domain calls or calls with 2-3 domains typically complete in 30-90 seconds. The MCP server remains in standby mode between calls, so there is no cold-start overhead for the server itself.
Can I schedule causal discovery to run periodically to detect structural shifts?
Yes. Use Apify's built-in scheduler to run the MCP server actor on a daily, weekly, or custom interval. Compare the crossDomainEdges from successive runs to detect when causal relationships between domains change — for example, detecting when the economics-health causal link strengthens during a recession.
Is it legal to collect and analyze data from these 18 sources? All 18 upstream data sources are publicly available APIs from US federal agencies (FRED, BLS, Congress, SEC, FEMA, FDA, CPSC, NVD), international organizations (WHO, IMF), research databases (PubMed, OpenAlex), and environmental monitoring networks (NOAA, OpenAQ). Public API usage complies with each source's terms of service. For web scraping legality generally, see Apify's guide.
How is this different from existing causal inference libraries like DoWhy or CausalML? DoWhy and CausalML are Python libraries that require you to supply your own data. Causal Panopticon handles data collection, feature extraction, and graph construction end-to-end, and exposes the entire pipeline as an MCP tool that any AI agent can call. It is designed for agentic workflows where the AI needs to autonomously collect evidence, build a causal model, and return actionable inference results — not for researchers who already have a clean dataset and want fine-grained programmatic control.
Can I use this with Claude, GPT-4, or other AI models?
Yes. Any AI model with MCP client support can connect to this server at https://causal-panopticon-mcp.apify.actor/mcp. Claude Desktop and Cursor have native MCP support. For other models, use an MCP-compatible client library or call the HTTP endpoint directly from your agent's tool-use framework.
What happens if some upstream actors fail during a run?
The runActor function catches all errors and returns an empty array, so the run continues with partial data. The affected domain will contribute no nodes to the causal graph. Monitor graphNodes in the response — if it is much lower than expected given the number of domains specified, one or more upstream actors likely failed. The Apify run log will show which actors returned errors.
Does the server retain my data between calls? No. The MCP server processes each tool call independently and does not persist causal graphs or data between calls. The Apify platform stores run logs and output datasets per-run in your account, which you can access via the Apify console or API for debugging purposes.
If you encounter issues, you can help us debug faster by enabling run sharing in your Apify account:
This lets us see your run details when something goes wrong, so we can fix issues faster. Your data is only visible to the actor developer, not publicly.
Found a bug or have a feature request? Open an issue in the Issues tab on this actor's page. For custom causal inference workflows, multi-domain research pipelines, or enterprise integrations, reach out through the Apify platform.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Causal Panopticon MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/causal-panopticon-mcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

Organize problem solving into revisable, branching thought steps through an MCP tool.

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.