
Perspective API Alternative (Toxicity Detection)
io.github.koyourmoonv1.0.9更新於 Oct 10, 2026
Toxicity scores (0-1) for text before an agent posts it. Perspective API compatible. No LLM.
概覽
在助理發布文字前對其做毒性評分,回傳六項 0-1 分數與一個標記值。
- 功能
- 這個遠端 MCP 伺服器為助理提供一個工具,在發布文字前先做檢查。對每段文字回傳六項 0 到 1 的分數以及一個標記值:TOXICITY、SEVERE_TOXICITY、INSULT、PROFANITY、THREAT 和 IDENTITY_ATTACK。它使用開源 Detoxify 模型,不是大型語言模型,因此同一段文字的分數始終一致。它被描述為 Google Perspective API 的直接替代品,且僅支援英文。
- 適用情境
- 當助理起草或送出面向使用者的文字,而你希望在內容發出前做一次確定性的審核檢查時適用,例如留言、回覆或產生的訊息。也適合正在替換 Google Perspective API 的團隊,README 稱該 API 將於 2026 年 12 月 31 日停止服務。
- 執行需求
- 遠端 streamable HTTP 端點,不需要本機套件或執行環境。需要 Apify API 權杖,透過 Authorization 標頭以 Bearer 形式送出;README 說明可在 Apify 主控台的 Settings 下的 API & Integrations 取得。需要能連線至 Apify actor 端點的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Perspective API Alternative (Toxicity Detection),將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"perspective-api-alternative": {
"type": "http",
"url": "https://koyourmoon--perspective-api-alternative.apify.actor/mcp"
}
}
}README
Perspective API Alternative: Toxicity Detection MCP Server
This MCP server gives AI agents a tool to examine text before they publish it. The tool returns six scores from 0 to 1 and a flagged value for each text:
TOXICITY,SEVERE_TOXICITY,INSULT,PROFANITY,THREAT,IDENTITY_ATTACK
The model is the open-source Detoxify model. It is not an LLM. Thus, the same text always gets the same score. English only.
The same server is also a direct replacement for the Google Perspective API. Google stops the Perspective API on December 31, 2026.
This repository holds the data that MCP directories show. The server runs on Apify: https://apify.com/koyourmoon/perspective-api-alternative
Connection
Get an Apify token in the Apify Console: Settings > API & Integrations.
Client configuration (example)
Prices
- $0.50 for 1,000 text units. A text unit is each started 1,000 characters of a text. Most comments are 1 unit.
- Lower prices for Apify Bronze, Silver and Gold plans.
- The first request after an idle period of 60 seconds can take 10 to 30 seconds (cold start).
Links
- Apify Store page: https://apify.com/koyourmoon/perspective-api-alternative
- Batch Actor for large jobs: https://apify.com/koyourmoon/toxicity-detector
來源:README.md,提交 b661433
工具
0版本歷史
1- v1.0.9最新Oct 10, 2026


