RCA-MCP Connector
# RCA-MCP Connector
<!-- mcp-name: io.github.dave1362/rca-mcp-connector -->
  
> **Note:** the `api.rca-mcp.com` custom domain isn't wired up yet — point
> `RCA_MCP_API_URL` at the current backend URL below instead.
## What is RCA-MCP?
The only MCP server purpose-built for causal Root Cause Analysis. 76 tools covering
causal graph construction, 10 RCA model families plus 3 dedicated PyRCA algorithms
(Salesforce PyRCA, BSD-3-Clause), multi-model consensus, PDF/HTML/Excel/Markdown
report generation, manufacturing quality tools (Pareto, SPC control charts and
process capability, 8D case workflow, OEE and six-big-losses RCA), AEC structural/
safety investigation (Pro plan and above), and CPM delay/schedule analysis — SCL
Protocol's Time Impact Analysis and Windows Analysis, Primavera P6/MS Project
ingestion (Enterprise plan). Works with Claude, Ollama, Groq, OpenAI, Gemini,
LangChain, Cursor — 10 providers.
---
## Quick Start (2 minutes)
`rca-mcp-connector` is a published PyPI package — no clone needed. Point any MCP
client at it with `uvx` (or `pip install rca-mcp-connector` if you'd rather manage
the install yourself):
```bash
uvx rca-mcp-connector
```
Get a free API key at [rcamcp.datalizedglb.cloud](https://rcamcp.datalizedglb.cloud) — no credit
card required — then set `RCA_MCP_API_KEY` in your MCP client's config (examples
below).
---
## Claude Code Setup
Add to `.mcp.json` in your workspace root:
```json
{
"mcpServers": {
"rca-mcp": {
"command": "uvx",
"args": ["rca-mcp-connector"],
"env": {
"RCA_MCP_API_URL": "https://rcamcp-production.up.railway.app",
"RCA_MCP_API_KEY": "your_api_key_here"
}
}
}
}
```
## Ollama Setup
```bash
go install github.com/mark3labs/mcphost@latest
mcphost -m ollama:qwen3:14b --config providers/mcp-servers.json
```
## OpenAI Agents SDK
```python
from agents import Agent, MCPServerStdio
import asyncio
async def main():
async with MCPServerStdio(
params={
"command": "uvx",
"args": ["rca-mcp-connector"],
"env": {
"RCA_MCP_API_URL": "https://rcamcp-production.up.railway.app",
"RCA_MCP_API_KEY": "your_api_key_here",
},
}
) as rca_server:
agent = Agent(name="RCA Agent", model="gpt-4o", mcp_servers=[rca_server])
result = await agent.run("Find the root cause of the API latency spike.")
print(result.final_output)
asyncio.run(main())
```
## LangChain
```python
from langchain_mcp_adapters.client import MultiServerMCPClient
from langchain_anthropic import ChatAnthropic
from langgraph.prebuilt import create_react_agent
import asyncio
async def main():
async with MultiServerMCPClient({
"rca-mcp": {
"command": "uvx", "args": ["rca-mcp-connector"],
"env": {
"RCA_MCP_API_URL": "https://rcamcp-production.up.railway.app",
"RCA_MCP_API_KEY": "your_api_key_here",
},
"transport": "stdio",
}
}) as client:
tools = await client.get_tools()
agent = create_react_agent(ChatAnthropic(model="claude-sonnet-4-6"), tools)
result = await agent.ainvoke({"messages": [{"role": "user", "content": "Run an FMEA analysis"}]})
print(result["messages"][-1].content)
asyncio.run(main())
```
See `providers/` for ready-to-use config templates and full examples (Groq, Gemini,
OpenRouter, Claude Desktop).
---
## Third-Party Licences
**PyRCA (Salesforce):** BSD-3-Clause
Copyright (c) 2022, salesforce.com, inc.
https://github.com/salesforce/PyRCA
Algorithms in `rca_pyrca_*` tools are independently-written adaptations of PyRCA's
published methods (Zheng et al. 2023, arXiv:2306.11417), not direct copies of PyRCA
source code, per the private API's `models/pyrca_adapter.py`.
---
## Citing RCA-MCP
```bibtex
@software{rcamcp2026,
title = {RCA-MCP: An MCP Server for Causal Root Cause Analysis},
author = {dave1362},
year = {2026},
url = {https://github.com/dave1362/rca-mcp-connector},
note = {v4.4.0}
}
```
TDQS
Scored across 76 tools
Tools are cleanly domain-prefixed (graph, model, analysis, guide, dtree, 8d, delay, spc, pyrca, admin), and paired tools like compare-vs-report_compare or time_impact-vs-windows explicitly point at each other. The main friction is the cluster of RCA entry points (rca_analysis_run, _ensemble, _batch, rca_pyrca_*, rca_8d_root_cause_analyze, rca_structural_investigate, rca_safety_incident_investigate, rca_oee_loss_rca), which differ by method/domain rather than by obvious surface cues and could be misselected by an agent unfamiliar with the taxonomy.
Every tool follows rca_<domain>_<action>_<object> in snake_case, with stable domain buckets and consistent verb vocabularies (create/get/list/delete/ingest/analyze) inside each bucket. Verb-object ordering occasionally flips (rca_guide_generate_report vs rca_report_generate) but this tracks the domain prefix and stays predictable.
76 tools is a very large surface, and much of the count comes from plan-tier variants of the same operation (sync/async/batch/ensemble analysis, report vs report_compare, guide_ingest vs ingest_pdf, three PyrCA algorithms, three delay methods). The domain is genuinely broad, but the set far exceeds what an agent can reliably scan and choose from.
Coverage is unusually thorough: full CRUD on graphs, models, guides, sessions, 8D cases and schedules, plus lifecycle, reporting, auth, admin, and domain verticals. Gaps are mostly minor and self-documented — no per-item delete for analysis results, no retrieval tool for saved reports, and no way to update an ingested guide short of delete-and-reingest.