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.

已验证Streamable HTTP可网页运行AI & MLSecurity & Monitoring

概览

AI 生成的概览

在助手发布文本前对其做毒性评分,返回六项 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 端点的网络。
安装前请注意
Authorization 请求头携带 Apify API 令牌,这是会产生费用的凭据,请保密且不要分享。使用需付费:每 1,000 个文本单位 0.50 美元,每个文本单位按每满 1,000 个字符计,Apify 付费套餐价格更低。提交的文本会发送到 Apify 托管的第三方服务。空闲 60 秒后的首次请求可能需要 10 到 30 秒。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Perspective API Alternative (Toxicity Detection),将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

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

ItemValue
TransportStreamable HTTP
URLhttps://koyourmoon--perspective-api-alternative.apify.actor/mcp
AuthenticationAuthorization: Bearer <APIFY_TOKEN>

Get an Apify token in the Apify Console: Settings > API & Integrations.

Client configuration (example)

json
{  "mcpServers": {    "perspective-api-alternative": {      "type": "http",      "url": "https://koyourmoon--perspective-api-alternative.apify.actor/mcp",      "headers": { "Authorization": "Bearer <APIFY_TOKEN>" }    }  }}

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

来源:README.md,提交 b661433

工具

0
工具元数据尚未被收录。

版本历史

1
  1. v1.0.9最新Oct 10, 2026