Performance Co-Pilot

io.github.major由 GitHub 帳號 major 發布v1.5.1更新於 Oct 24, 2026

Query system performance metrics via MCP - CPU, memory, disk I/O, network, processes

發布方自己的服務:QuickBooks Connector by Meridian

概覽

AI 產生的概覽

此 MCP 伺服器讓助理查詢 Performance Co-Pilot 系統效能指標——CPU、記憶體、磁碟 I/O、網路與行程,支援本機或遠端主機。

可以做什麼
  • 取得某一時刻的系統快照,涵蓋 CPU、記憶體、磁碟、網路與負載
  • 依 CPU、記憶體或 I/O 使用量列出排名前面的行程
  • 讀取指定 PCP 指標的目前數值
  • 依名稱樣式搜尋可用指標並檢視指標的詳細中繼資料
適用情境
適合在已執行 PCP 的機器上,讓助理協助排查效能問題、對伺服器做健康檢查,或分析容量與資源使用趨勢。
執行需求
以本機 Python 套件形式執行(需 Python 3.10+),可透過 uvx 或 pip 安裝。需要已安裝並執行 Performance Co-Pilot 的 pmcd 與 pmproxy 且可連線。透過環境變數設定,如 PCP_HOST、PCP_PORT、PCP_TARGET_HOST;選用的 PCP_USERNAME 與 PCP_PASSWORD 用於 HTTP 基本驗證,另有 TLS 相關設定。
安裝前請注意
選用的 HTTP 基本驗證憑證透過 PCP_USERNAME 與 PCP_PASSWORD 提供,請勿寫入共用的設定檔。將 PCP_TARGET_HOST 或 PCP_HOST 指向遠端主機時,指標查詢會經網路送到該 pmproxy 執行個體。工具本身為唯讀指標查詢,但會揭露詳細的行程與系統資訊。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

pcp-mcp

MCP server for Performance Co-Pilot (PCP) metrics.

Query system performance metrics via the Model Context Protocol - CPU, memory, disk I/O, network, processes, and more.

📖 Full Documentation | 🚀 Getting Started

[CI] [codecov] [PyPI version] [Python 3.10+] [License: MIT]

🚀 Quick Start (No Install)

Run immediately with uvx — no installation required:

bash
uvx pcp-mcp

Or install as a persistent global tool:

bash
uvx tool install pcp-mcppcp-mcp

📦 Installation

bash
pip install pcp-mcp

Or with uv:

bash
uv add pcp-mcp

📋 Requirements

  • Python: 3.10+
  • PCP: Performance Co-Pilot with pmcd and pmproxy running
    bash
    # Fedora/RHEL/CentOSsudo dnf install pcpsudo systemctl enable --now pmcd pmproxy
    # Ubuntu/Debiansudo apt install pcpsudo systemctl enable --now pmcd pmproxy

⚙️ Configuration

Configure via environment variables:

VariableDescriptionDefault
PCP_HOSTpmproxy hostlocalhost
PCP_PORTpmproxy port44322
PCP_TARGET_HOSTTarget pmcd host to monitorlocalhost
PCP_USE_TLSUse HTTPS for pmproxyfalse
PCP_TLS_VERIFYVerify TLS certificatestrue
PCP_TLS_CA_BUNDLEPath to custom CA bundle(optional)
PCP_TIMEOUTRequest timeout (seconds)30
PCP_USERNAMEHTTP basic auth user(optional)
PCP_PASSWORDHTTP basic auth password(optional)
PCP_ALLOWED_HOSTSHostspecs allowed via host param(optional)

🎯 Usage

Monitor localhost (default)

bash
pcp-mcp

Monitor a remote host

bash
PCP_TARGET_HOST=webserver1.example.com pcp-mcp

Or use the CLI flag:

bash
pcp-mcp --target-host webserver1.example.com

Connect to remote pmproxy

bash
PCP_HOST=metrics.example.com pcp-mcp

Use SSE transport

bash
pcp-mcp --transport sse

🔌 MCP Client Configuration

Claude Desktop

Add to ~/.config/claude/claude_desktop_config.json:

json
{  "mcpServers": {    "pcp": {      "command": "uvx",      "args": ["pcp-mcp"]    }  }}

For remote monitoring:

json
{  "mcpServers": {    "pcp": {      "command": "uvx",      "args": ["pcp-mcp", "--target-host", "webserver1.example.com"]    }  }}

💡 Using uvx means you don't need pcp-mcp installed — it runs directly from PyPI.

🛠️ Available Tools

System Monitoring

  • get_system_snapshot - Point-in-time system overview (CPU, memory, disk, network, load)
  • get_process_top - Top processes by CPU, memory, or I/O usage
  • query_metrics - Fetch current values for specific PCP metrics
  • search_metrics - Discover available metrics by name pattern
  • describe_metric - Get detailed metadata about a metric

Example Queries

"What's the current CPU usage?"→ Uses get_system_snapshot
"Show me the top 10 processes by memory usage"→ Uses get_process_top(sort_by="memory", limit=10)
"What metrics are available for network traffic?"→ Uses search_metrics(pattern="network")
"Get detailed info about kernel.all.load"→ Uses describe_metric(name="kernel.all.load")

💡 Use Cases

Performance Troubleshooting

Ask Claude to:

  • "Analyze current system performance and identify bottlenecks"
  • "Why is my disk I/O so high?"
  • "Which processes are consuming the most CPU?"

System Monitoring

  • "Give me a health check of the production server"
  • "Compare CPU usage over the last minute"
  • "Monitor network traffic on eth0"

Capacity Planning

  • "What's the memory utilization trend?"
  • "Show me disk usage across all filesystems"
  • "Analyze process resource consumption patterns"

🏗️ Architecture

┌─────────┐         ┌─────────┐          ┌─────────┐         ┌─────────┐│   LLM   │ ◄─MCP─► │ pcp-mcp │ ◄─HTTP─► │ pmproxy │ ◄─────► │  pmcd   │└─────────┘         └─────────┘          └─────────┘         └─────────┘                                         (REST API)          (metrics)
  • pcp-mcp: FastMCP server exposing PCP metrics via MCP tools
  • pmproxy: PCP's REST API server (runs on port 44322 by default)
  • pmcd: PCP metrics collector daemon
  • Remote monitoring: Set PCP_TARGET_HOST to query a different pmcd instance via pmproxy

🔧 Development

bash
# Install dependenciesuv sync --dev
# Run all checksmake check
# Individual commandsmake lint       # ruff checkmake format     # ruff formatmake typecheck  # ty checkmake test       # pytest with coverage

📖 Documentation

Full documentation at https://major.github.io/pcp-mcp

📄 License

MIT

來源:README.md,提交 19abe21

工具

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

版本歷史

1
  1. v1.5.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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

其他 Pilot 整合