CussCheck
English profanity filter: find and censor swear words, incl. obfuscations. Word list, not AI.
我該用這個嗎
品質與安全性
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"profanity-api": {
"url": "https://profanity-api.mike-tusa.workers.dev/mcp"
}
}
}遠端端點
https://profanity-api.mike-tusa.workers.dev/mcpstreamable-http它能做什麼
工具清單
工具(1)
🟢check_profanity(text, censor, allow, deny)
Detect English profanity in text (word list with leetspeak, look-alike letters, repeated letters, dotted/spaced letters and hidden characters handled) and return the matched terms, their positions (UTF-16 start/end in your text) and, unless censor is false, a censored copy of the same length. Common innocent words (Scunthorpe, cockpit, Shiite, cumin) are whitelisted; it does not understand context and is English only. Text up to 10240 UTF-8 bytes; it is not stored or logged. matches is capped at 50 here (match_count is the full total). Read-only. Same engine, keys and limits as POST /v1/check.
輸入結構描述
{
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "The text to check, at most 10240 UTF-8 bytes.",
"maxLength": 10240
},
"censor": {
"type": "boolean",
"description": "Return a censored copy (default true)."
},
"allow": {
"type": "array",
"description": "Words never to flag, e.g. [\"hell\", \"damn\"]. Allow wins over deny.",
"maxItems": 50,
"items": {
"type": "string",
"minLength": 1,
"maxLength": 40
}
},
"deny": {
"type": "array",
"description": "Extra words to flag on word boundaries, e.g. [\"jerk\"].",
"maxItems": 50,
"items": {
"type": "string",
"minLength": 1,
"maxLength": 40
}
}
},
"required": [
"text"
],
"additionalProperties": false
}輸出結構描述
{
"type": "object",
"properties": {
"has_profanity": {
"type": "boolean"
},
"match_count": {
"type": "integer",
"description": "Total number of matches in the text (not capped)."
},
"terms": {
"type": "array",
"items": {
"type": "string"
}
},
"matches": {
"type": "array",
"items": {
"type": "object",
"properties": {
"term": {
"type": "string"
},
"match": {
"type": "string"
},
"start": {
"type": "integer"
},
"end": {
"type": "integer"
},
"source": {
"type": "string"
},
"obfuscated": {
"type": "boolean"
}
},
"required": [
"term",
"start",
"end"
]
},
"maxItems": 50,
"description": "Matches in text order, at most 50 here (see match_count for the total). start/end are UTF-16 indices into your text."
},
"matches_returned": {
"type": "integer"
},
"truncated": {
"type": "boolean",
"description": "True when matches lists fewer than match_count (over 50 here, or the API's own cap)."
},
"censored": {
"type": "string",
"description": "Your text with each match replaced by asterisks (same length). Omitted when censor is false."
},
"text_bytes": {
"type": "integer"
},
"engine": {
"type": "string"
},
"version": {
"type": "string"
}
},
"required": [
"has_profanity",
"match_count",
"terms",
"matches"
]
}社群
證據