RCA-MCP Connector
Integrates with LangChain to enable AI agents to use RCA-MCP tools for root cause analysis within LangChain workflows.
Integrates with LangGraph to create reactive agents that can perform root cause analysis using RCA-MCP tools.
Allows local Ollama models to run root cause analysis via the RCA-MCP server with support for causal graphs and 13 RCA model families.
Integrates with OpenAI Agents SDK to let AI agents find root causes, run analyses, and generate reports using RCA-MCP tools.
Provides access to Salesforce's PyRCA algorithms for anomaly detection and root cause localization (BSD-3-Clause licensed adaptation).
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@RCA-MCP ConnectorFind root cause of payment failures spike"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
RCA-MCP Connector
⚠️ Pre-release. RCA-MCP is still in active development and testing. The private API backend (
api.rca-mcp.com) is not yet deployed, so this connector cannot be used end-to-end yet. Tool schemas and documentation below reflect the current development snapshot and may change before the first public launch. Watch this repo or check rca-mcp.com for launch updates.
What is RCA-MCP?
The only MCP server purpose-built for causal Root Cause Analysis. 55 tools covering causal graph construction, 13 RCA model families (including Salesforce PyRCA algorithms), multi-model consensus, and PDF/HTML/Excel/Markdown report generation. Works with Claude, Ollama, Groq, OpenAI, Gemini, LangChain — 9 providers.
Related MCP server: Clear Thought 1.5
Quick Start (2 minutes)
git clone https://github.com/dave1362/rca-mcp-connector.git
cd rca-mcp-connector
pip install -r requirements.txt
cp .env.example .env
# Edit .env: set RCA_MCP_API_KEY to your key from https://rca-mcp.com/upgradeGet an API key at rca-mcp.com — a free tier is available, no credit card required.
Claude Code Setup
Add to .mcp.json in your workspace root:
{
"mcpServers": {
"rca-mcp": {
"command": "python",
"args": ["/absolute/path/to/rca-mcp-connector/connector/server.py"],
"env": {
"RCA_MCP_API_URL": "https://api.rca-mcp.com",
"RCA_MCP_API_KEY": "your_api_key_here"
}
}
}
}Ollama Setup
go install github.com/mark3labs/mcphost@latest
mcphost -m ollama:qwen3:14b --config providers/mcp-servers.jsonOpenAI Agents SDK
from agents import Agent, MCPServerStdio
import asyncio
async def main():
async with MCPServerStdio(
params={
"command": "python",
"args": ["connector/server.py"],
"env": {"RCA_MCP_API_KEY": "your_key"},
}
) 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
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": "python", "args": ["connector/server.py"],
"env": {"RCA_MCP_API_KEY": "your_key"}, "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).
All 55 Tools
See rca-mcp.com/pricing for full tier details and limits.
Legend: ✅ All plans · 🌟 Starter+ · 💎 Pro+ · 👑 Enterprise only
Group A — Causal Graph
Tool | Plan | Description |
| ✅ | Create an empty causal DAG |
| ✅ | Retrieve a graph as JSON / DOT / adjacency |
| ✅ | Structural quality scoring |
| 💎 | Auto-discover causal structure from data (PC-algorithm) |
| 💎 | Merge two graphs for cross-system RCA |
| 🌟 | List historical graph snapshots |
| 👑 | Roll back to a historical version (admin) |
| 👑 | Delete a graph permanently (admin) |
Group B — RCA Models
Tool | Plan | Description |
| ✅ | Register a model spec (up to plan's model limit) |
| ✅ | List registered models |
| ✅ | Advance model lifecycle |
| ✅ | Validate on hold-out data |
| 👑 | Delete a model (admin) |
Group C — Analysis
Tool | Plan | Description |
| ✅ | Run RCA, get ranked root causes |
| 💎 | Submit a long-running analysis (returns task_id) |
| 💎 | Poll an async task's status |
| 💎 | Combine 2-5 models via weighted-vote consensus |
| ✅ | Retrieve a stored result |
| ✅ | Paginated result listing |
| ✅ | Filter results by family/confidence/tags |
| ✅ | Cross-model consensus comparison |
| ✅ | Narrative explanation of a result |
| 🌟 | Batch analysis (5 incidents Starter, 20 Pro+) |
Group D — Graph Operations
Tool | Plan | Description |
| ✅ | Add a typed node |
| ✅ | Remove a node |
| ✅ | Add a directed causal edge (cycle-safe) |
| ✅ | Remove an edge |
| ✅ | Rank causal paths to a target node |
| ✅ | Get parents/children/co-parents of a node |
Group E — Admin & Auth
Tool | Plan | Description |
| ✅ | Generate API key + JWT — call this first |
| 👑 | Invalidate a JWT before expiry (admin) |
| 👑 | List API keys (admin + Pro+ multi-key feature) |
| 👑 | Rotate an API key (admin + Pro+ multi-key feature) |
| ✅ | Server health snapshot |
| ✅ | Read structured audit entries |
| 👑 | Delete all records in a namespace (admin) |
| ✅ | Show current plan, limits, and upgrade options |
Group F — Reports & Providers
Tool | Plan | Description |
| ✅/🌟/💎 | Markdown all plans; HTML/PDF Starter+; Excel Pro+ |
| ✅/🌟 | Comparative report; Markdown all, HTML Starter+ |
| ✅ | Setup instructions for any of the 9 providers |
Group G — PyRCA Algorithms [PyRCA — BSD-3-Clause]
Tool | Plan | Description |
| 🌟 | z-score anomalous metric identification |
| 🌟 | Personalised PageRank root cause localisation |
| 🌟 | Hypothesis testing with descendant adjustment |
| ✅ | Check PyRCA strategy and licence compliance |
Group H — Equipment Knowledge (Phase 9)
Tool | Plan | Description |
| 🌟 | Ingest a troubleshooting guide (markdown/plain/json_dtree) |
| ✅ | Search guides by symptom (TF-IDF); Free capped at 3 results |
| ✅ | Retrieve a full guide or a specific section |
| ✅ | List ingested guides with equipment_type/tag filters |
| 🌟 | Begin an interactive diagnostic decision-tree session |
| 🌟 | Answer a diagnostic question; returns next question or diagnosis |
| 🌟 | List diagnostic sessions with equipment/status filters |
| 🌟/💎 | Maintenance report from a resolved session; Markdown Starter+, PDF/HTML Pro+ |
| 🌟 | Auto-generate a decision tree from FMEA results |
| 🌟 | Preview PDF quality before ingestion |
| 🌟 | Parse a PDF equipment manual → knowledge base |
Ships with 4 built-in sample guides (pump, vacuum interface valve, ML pipeline, CFD solver) auto-loaded on first startup, and supports 26 equipment types. PDF ingestion supports 4 parsing strategies (text_native, ocr, table, mixed).
Get an API Key
rca-mcp.com/upgrade — Free tier available, plans from $19/month (Starter), $79/month (Pro), $399/month (Enterprise).
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
@software{rcamcp2026,
title = {RCA-MCP: An MCP Server for Causal Root Cause Analysis},
author = {davetj},
year = {2026},
url = {https://github.com/dave1362/rca-mcp-connector},
note = {v3.0.0}
}This server cannot be installed
Maintenance
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dave1362/rca-mcp-connector'
If you have feedback or need assistance with the MCP directory API, please join our Discord server