ai-guardrails

Cloudflare Workers MCP server: ai-guardrails

我該用這個嗎

品質與安全性

B
說明品質
76%
結構描述完整度
84%
命名品質
88%
汙染風險
80%
權限相符程度
100%
協定合規性
100%

發現項目(5)

  • HIGHTool poisoning patterns detected
  • MEDIUMTool 'redact_pii' description contains placeholder text在 redact_pii 中
  • LOWTool 'redact_pii' description lacks action verb在 redact_pii 中
  • LOWTool 'check_hallucination' description lacks action verb在 check_hallucination 中
  • INFOTool description contains placeholder or incomplete text在 redact_pii 中

根據工具定義與協定合規性的自動化分析。

上下文成本

~380Token(工具定義)
~363 B典型回應大小
極小的注意力影響(128k 上下文的 0.30%)

這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。

安裝

一鍵安裝

將以下內容加入你的 `claude_desktop_config.json` 檔案:

{
  "mcpServers": {
    "ai-guardrails": {
      "url": "https://api.lazy-mac.com/ai-guardrails/mcp"
    }
  }
}

遠端端點

https://api.lazy-mac.com/ai-guardrails/mcpstreamable-http

它能做什麼

工具清單

工具(5)

🟢 唯讀🟡 寫入🔴 刪除⚪ 未知
⚪detect_pii(text)

Detect personally identifiable information (email, phone, SSN, credit card, IP, URL, API key) in a text string.

輸入結構描述

{
  "type": "object",
  "properties": {
    "text": {
      "type": "string",
      "description": "Text to scan for PII"
    }
  },
  "required": [
    "text"
  ]
}
⚪redact_pii(text, mode)

Redact PII from text. mode=mask replaces with [REDACTED]; mode=tag uses typed placeholders like [EMAIL].

輸入結構描述

{
  "type": "object",
  "properties": {
    "text": {
      "type": "string"
    },
    "mode": {
      "type": "string",
      "enum": [
        "mask",
        "tag"
      ],
      "default": "mask"
    }
  },
  "required": [
    "text"
  ]
}
🟢check_safety(text)

Check text for harmful content using weighted keyword detection. Returns a 0–1 score and verdict (safe/caution/unsafe).

輸入結構描述

{
  "type": "object",
  "properties": {
    "text": {
      "type": "string"
    }
  },
  "required": [
    "text"
  ]
}
🟢check_hallucination(text)

Heuristic scoring of LLM hedge phrases that correlate with hallucinated outputs. Returns score 0–1 and risk level.

輸入結構描述

{
  "type": "object",
  "properties": {
    "text": {
      "type": "string"
    }
  },
  "required": [
    "text"
  ]
}
🟢full_check(text, checks)

Run pii, safety, and/or hallucination checks in one call. Default: pii + safety. Specify checks=["pii","safety","hallucination"] to run all.

輸入結構描述

{
  "type": "object",
  "properties": {
    "text": {
      "type": "string"
    },
    "checks": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "pii",
          "safety",
          "hallucination"
        ]
      },
      "default": [
        "pii",
        "safety"
      ]
    }
  },
  "required": [
    "text"
  ]
}

社群

為此伺服器評分

證據

近期觀測

已驗證未記錄版本5 個工具
已驗證未記錄版本5 個工具
已驗證未記錄版本5 個工具