Skip to main content

RCA-MCP Connector

Python License PulseMCP

⚠️ Early access. RCA-MCP's backend is live and this connector has been verified end-to-end against it. The api.rca-mcp.com custom domain isn't wired up yet — point RCA_MCP_API_URL at the current backend URL below. Tool schemas and documentation may still change before the first stable public launch.

What is RCA-MCP?

The only MCP server purpose-built for causal Root Cause Analysis. 56 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 a key created via the dashboard below

Get an API key at rca-mcp.pages.dev — 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://rcamcp-production.up.railway.app",
        "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).


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   = {v4.1.12}
}

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rca_mcp_connector-4.1.12.tar.gz (22.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rca_mcp_connector-4.1.12-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

Details for the file rca_mcp_connector-4.1.12.tar.gz.

File metadata

  • Download URL: rca_mcp_connector-4.1.12.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for rca_mcp_connector-4.1.12.tar.gz
Algorithm Hash digest
SHA256 bfbfe33aed6db88b3f45f6e415dec345f71e9cf2f24ea5f98268352dd113c091
MD5 155235a7225ad9f3892653b9e0d98045
BLAKE2b-256 6816ce904988023eb2323e64281c620af2d1f2e75d05c43902f957401c5e9dde

See more details on using hashes here.

Provenance

The following attestation bundles were made for rca_mcp_connector-4.1.12.tar.gz:

Publisher: publish.yml on dave1362/rca-mcp-connector

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rca_mcp_connector-4.1.12-py3-none-any.whl.

File metadata

File hashes

Hashes for rca_mcp_connector-4.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 d08db76b1e4e7bd0cbd2b910569434f5a5bf1f0a4d7ff072869246b6b3605196
MD5 d46a14f2d4257f600d9ed4a6693c104c
BLAKE2b-256 85fa4d974928d30e8bb6d333a01cc547a13da4647e1ffc1a6fa61b3544ebacfb

See more details on using hashes here.

Provenance

The following attestation bundles were made for rca_mcp_connector-4.1.12-py3-none-any.whl:

Publisher: publish.yml on dave1362/rca-mcp-connector

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

4.1.13

2 files

This release

4.1.12 This release

2 files

4.1.11

2 files

4.1.10

2 files

4.1.9

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page