Perf Mcp

io.github.Perf-AI由 GitHub 帳號 Perf-AI 發布v0.1.1更新於 Nov 10, 2026

Fact-check and fix AI outputs. Hallucination detection, schema validation, auto-repair.

已驗證STDIO僅桌面開發者工具AI 與機器學習

概覽

AI 產生的概覽

查核並修正 AI 產生的輸出:偵測幻覺、依 schema 驗證並自動修復 JSON,還能把對話請求路由到合適的模型。

可以做什麼
  • 查核 LLM 產生的文字,回傳修正後的说法與信心分數
  • 依 schema 驗證產生的 JSON,並自動修復型別、列舉與缺漏欄位錯誤
  • 對一般輸出做糾錯,先判定錯誤類型(幻覺、schema 違規、語意不一致、指令偏離)
  • 以 OpenAI 相容格式把對話請求路由到 20 多個模型之一
適用情境
適合在助理輸出要呈現給使用者或交給下游系統之前,再做一次事實與 JSON 格式檢查的情境。也適合想用同一介面依請求自動挑選模型的使用者。
執行需求
透過 npx 在本機執行,需要 Node.js。需要 Perf API 金鑰,放在 PERF_API_KEY 環境變數中;可選用 PERF_BASE_URL 覆寫 API 位址。需要能連線到 Perf 服務的網路。
安裝前請注意
送出的內容會傳到 Perf 服務進行查核,請勿傳送機密或受監管資料。按用量計費:一次工具呼叫消耗一個額度,免費額度為 200 次查核,超過後需付費方案或按次付費。請勿把 API 金鑰寫進共用的設定檔。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

perf-mcp

Fact-check and fix AI outputs. Catches hallucinations, repairs broken JSON, corrects errors — before they reach users.

Works with Claude Code, Cursor, Windsurf, Cline, and any MCP-compatible client.

Quick Start

Add to your MCP client config:

json
{  "mcpServers": {    "perf": {      "command": "npx",      "args": ["-y", "perf-mcp"],      "env": {        "PERF_API_KEY": "pk_live_xxx"      }    }  }}

Get your API key at dashboard.withperf.pro — 200 free verifications, no credit card.

Tools

perf_verify

Detect and repair hallucinations in LLM-generated text. Uses multi-channel verification (web search, NLI models, cross-reference) — not just another LLM check.

perf_verify({ content: "The Eiffel Tower was built in 1887." })→ Corrected: "built in 1887" → "inaugurated in 1889" (89% confidence)

perf_validate

Validate LLM-generated JSON against a schema and auto-repair violations. Fixes malformed enums, wrong types, missing fields, hallucinated properties.

perf_validate({  content: '{"name": "John", "age": "twenty"}',  target_schema: { type: "object", properties: { name: { type: "string" }, age: { type: "number" } } }})→ Rejected: /age must be number

perf_correct

General-purpose output correction. Classifies the error type and applies the right fix — hallucination, schema violation, semantic inconsistency, or instruction drift.

perf_correct({ content: "The Great Wall was built in 1950.", correction_budget: "fast" })→ Corrected: temporal_error + factual_error detected (87% confidence)

perf_chat

Route LLM requests to the optimal model automatically. Selects between GPT-4o, Claude, Gemini, and 20+ models based on task complexity. OpenAI-compatible format.

Setup by Client

Claude Code

Add to your project's .mcp.json:

json
{  "mcpServers": {    "perf": {      "command": "npx",      "args": ["-y", "perf-mcp"],      "env": {        "PERF_API_KEY": "pk_live_xxx"      }    }  }}

Cursor

Settings → MCP → Add Server:

json
{  "mcpServers": {    "perf": {      "command": "npx",      "args": ["-y", "perf-mcp"],      "env": {        "PERF_API_KEY": "pk_live_xxx"      }    }  }}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

json
{  "mcpServers": {    "perf": {      "command": "npx",      "args": ["-y", "perf-mcp"],      "env": {        "PERF_API_KEY": "pk_live_xxx"      }    }  }}

Environment Variables

VariableRequiredDescription
PERF_API_KEYYesYour Perf API key (pk_live_xxx)
PERF_BASE_URLNoOverride API URL (for testing)

Pricing

PlanCreditsPrice
Free200 verifications$0 (never expires)
Pro1,000/mo$19/mo
Pay-as-you-goUnlimited$0.02/verification

1 tool call = 1 credit. Get started at dashboard.withperf.pro.

License

MIT

來源:README.md,提交 e0e678a

工具

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

版本歷史

1
  1. v0.1.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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