RCA-MCP Connector

RCA-MCP Connector

Enables causal root cause analysis with 55 tools covering causal graph construction, 13 RCA model families, multi-model consensus, and report generation. Works with 9 LLM providers including Claude, Ollama, and OpenAI.

Category
Visit Server

README

RCA-MCP Connector

Python License PulseMCP

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.


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/upgrade

Get 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.json

OpenAI 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
rca_graph_create โœ… Create an empty causal DAG
rca_graph_get โœ… Retrieve a graph as JSON / DOT / adjacency
rca_graph_score โœ… Structural quality scoring
rca_graph_discover ๐Ÿ’Ž Auto-discover causal structure from data (PC-algorithm)
rca_graph_merge ๐Ÿ’Ž Merge two graphs for cross-system RCA
rca_graph_list_versions ๐ŸŒŸ List historical graph snapshots
rca_graph_restore_version ๐Ÿ‘‘ Roll back to a historical version (admin)
rca_graph_delete ๐Ÿ‘‘ Delete a graph permanently (admin)

Group B โ€” RCA Models

Tool Plan Description
rca_model_create โœ… Register a model spec (up to plan's model limit)
rca_model_list โœ… List registered models
rca_model_update_status โœ… Advance model lifecycle
rca_model_validate โœ… Validate on hold-out data
rca_model_delete ๐Ÿ‘‘ Delete a model (admin)

Group C โ€” Analysis

Tool Plan Description
rca_analysis_run โœ… Run RCA, get ranked root causes
rca_analysis_run_async ๐Ÿ’Ž Submit a long-running analysis (returns task_id)
rca_analysis_poll_task ๐Ÿ’Ž Poll an async task's status
rca_analysis_ensemble ๐Ÿ’Ž Combine 2-5 models via weighted-vote consensus
rca_analysis_get_result โœ… Retrieve a stored result
rca_analysis_list_results โœ… Paginated result listing
rca_analysis_query_results โœ… Filter results by family/confidence/tags
rca_analysis_compare โœ… Cross-model consensus comparison
rca_analysis_explain โœ… Narrative explanation of a result
rca_analysis_batch ๐ŸŒŸ Batch analysis (5 incidents Starter, 20 Pro+)

Group D โ€” Graph Operations

Tool Plan Description
rca_graph_add_node โœ… Add a typed node
rca_graph_remove_node โœ… Remove a node
rca_graph_add_edge โœ… Add a directed causal edge (cycle-safe)
rca_graph_remove_edge โœ… Remove an edge
rca_graph_score_paths โœ… Rank causal paths to a target node
rca_graph_markov_blanket โœ… Get parents/children/co-parents of a node

Group E โ€” Admin & Auth

Tool Plan Description
rca_auth_generate_token โœ… Generate API key + JWT โ€” call this first
rca_auth_revoke_token ๐Ÿ‘‘ Invalidate a JWT before expiry (admin)
rca_auth_list_keys ๐Ÿ‘‘ List API keys (admin + Pro+ multi-key feature)
rca_auth_rotate_key ๐Ÿ‘‘ Rotate an API key (admin + Pro+ multi-key feature)
rca_admin_health โœ… Server health snapshot
rca_admin_read_audit_log โœ… Read structured audit entries
rca_admin_purge_namespace ๐Ÿ‘‘ Delete all records in a namespace (admin)
rca_admin_show_plan_info โœ… Show current plan, limits, and upgrade options

Group F โ€” Reports & Providers

Tool Plan Description
rca_report_generate โœ…/๐ŸŒŸ/๐Ÿ’Ž Markdown all plans; HTML/PDF Starter+; Excel Pro+
rca_report_compare โœ…/๐ŸŒŸ Comparative report; Markdown all, HTML Starter+
rca_provider_list_configs โœ… Setup instructions for any of the 9 providers

Group G โ€” PyRCA Algorithms [PyRCA โ€” BSD-3-Clause]

Tool Plan Description
rca_pyrca_epsilon_diagnosis ๐ŸŒŸ z-score anomalous metric identification
rca_pyrca_random_walk ๐ŸŒŸ Personalised PageRank root cause localisation
rca_pyrca_ht_diagnosis ๐ŸŒŸ Hypothesis testing with descendant adjustment
rca_pyrca_validate_setup โœ… Check PyRCA strategy and licence compliance

Group H โ€” Equipment Knowledge (Phase 9)

Tool Plan Description
rca_guide_ingest ๐ŸŒŸ Ingest a troubleshooting guide (markdown/plain/json_dtree)
rca_guide_search โœ… Search guides by symptom (TF-IDF); Free capped at 3 results
rca_guide_get โœ… Retrieve a full guide or a specific section
rca_guide_list โœ… List ingested guides with equipment_type/tag filters
rca_dtree_start ๐ŸŒŸ Begin an interactive diagnostic decision-tree session
rca_dtree_answer ๐ŸŒŸ Answer a diagnostic question; returns next question or diagnosis
rca_dtree_list_sessions ๐ŸŒŸ List diagnostic sessions with equipment/status filters
rca_guide_generate_report ๐ŸŒŸ/๐Ÿ’Ž Maintenance report from a resolved session; Markdown Starter+, PDF/HTML Pro+
rca_dtree_generate_from_fmea ๐ŸŒŸ Auto-generate a decision tree from FMEA results
rca_guide_pdf_preview ๐ŸŒŸ Preview PDF quality before ingestion
rca_guide_ingest_pdf ๐ŸŒŸ 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}
}

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured