RCA-MCP

io.github.dave1362由 GitHub 帳號 dave1362 發布v4.1.20更新於 Oct 24, 2026

Causal root-cause analysis MCP server -- 56 tools across graphs, RCA models, PyRCA.

已驗證STDIO僅桌面資料與分析AI 與機器學習

概覽

AI 產生的概覽

本機 MCP 連接器,為助理提供 56 個因果根因分析工具:建立因果圖、執行 RCA 模型與 PyRCA 演算法並產生報告。

可以做什麼
建立並操作用於根因分析的因果圖。執行 10 類 RCA 模型及 3 種基於 PyRCA 的演算法,並進行多模型共識比較。產生 PDF、HTML、Excel 與 Markdown 格式的報告。
適用情境
適合排查系統、服務或指標異常的原因,需要助理建立因果圖、執行根因模型並輸出報告,而不只是彙整日誌的情境。
執行需求
以本機 Python 套件(rca-mcp-connector)執行,可透過 uvx 或 pip 啟動。需要 RCA_MCP_API_KEY 中的 API 金鑰,並需存取後端網路,後端位址由 RCA_MCP_API_URL 設定。README 說明預設自訂網域尚未啟用,需設定目前的後端位址。
安裝前請注意
需要 API 金鑰(RCA_MCP_API_KEY),該金鑰會傳送給第三方後端,應視為機密。分析資料由該遠端服務處理。README 稱金鑰免費且不需信用卡,但使用前應確認目前條款。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 RCA-MCP,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

RCA-MCP Connector

[Python] [License] [PulseMCP]

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. 56 tools covering causal graph construction, 10 RCA model families plus 3 dedicated PyRCA algorithms (Salesforce PyRCA, BSD-3-Clause), multi-model consensus, and PDF/HTML/Excel/Markdown report generation. 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 — 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@latestmcphost -m ollama:qwen3:14b --config providers/mcp-servers.json

OpenAI Agents SDK

python
from agents import Agent, MCPServerStdioimport 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 MultiServerMCPClientfrom langchain_anthropic import ChatAnthropicfrom langgraph.prebuilt import create_react_agentimport 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.1.20}}

來源:README.md,提交 25a2a64

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v4.1.20最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分