Perspective API Alternative (Toxicity Detection)
概览
作者提供的说明(英文原文)
Toxicity scores (0-1) for text before an agent posts it. Perspective API compatible. No LLM.
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i3 项中通过 2 项依据公开信息检查;尚未扫描代码
- 使用情况i起步阶段★ –
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在云端运行
- 传输方式: Streamable HTTP
- 分类: 搜索与 AI 记忆
- 你需要填写:Authorization
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:3 项中通过 2 项
- 在作者的服务器上运行:你向它提出的内容会经过他们的服务器。
- 需要你自己填写:
Authorization
标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
- 在云端运行无需安装任何东西,通过互联网连接
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
这个地址需要在请求的 header 中放入密钥,而添加连接器的菜单无法设置。请改用 Claude Code、Cursor 或 VS Code。
在终端中运行这条命令
claude mcp add --transport http perspective-api-alternative https://koyourmoon--perspective-api-alternative.apify.actor/mcp --header 'Authorization: your-value'运行前请先填写空着的值。
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"perspective-api-alternative": {
"url": "https://koyourmoon--perspective-api-alternative.apify.actor/mcp",
"headers": {
"Authorization": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"perspective-api-alternative": {
"type": "http",
"url": "https://koyourmoon--perspective-api-alternative.apify.actor/mcp",
"headers": {
"Authorization": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个地址需要在请求的 header 中放入密钥,而添加连接器的菜单无法设置。请改用 Claude Code、Cursor 或 VS Code。
你的选择通过 Cookie 保存在这台设备上,无需账户。
需要你填写的值
Authorization机密 必填 HTTP headerBearer
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它能做什么
服务器要求先登录,才会列出它的工具。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月10日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 koyourmoon 验证,该账户拥有此仓库
- … 尚未检查
仍在维护
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- ✓ 通过
端点有响应
在 620 毫秒内响应(HTTP 401)
- ! 注意
使用 OAuth 登录
需要你自己复制粘贴密钥或令牌
- … 尚未检查
工具描述中没有隐藏指令
尚未检查;我们会在检查端点时读取工具列表
与“搜索与 AI 记忆”中的其他服务器比较i
- 星标数多于此分类中其他 5862 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 5862 个服务器的 55% 更新
- 基础检查结果等于或优于此分类中其他 5862 个服务器的 41%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Perspective API Alternative (Toxicity Detection) 安全吗?
它在 3 项适用的基础检查中通过了 2 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
你需要填写:Authorization
它在我的电脑上运行还是在云端?
它在作者的云端运行。通过互联网连接,无需安装,但你发送的内容会经过作者的服务器。
它还在维护吗?
GitHub 仓库最后更新于–,最新版本(1.0.9)于31天前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。
有什么可以替代它?
同一分类中有:Context7, Codebase Memory, Exa
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Codebase Memory
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Exa
Connect AI agents to Exa for web search, content fetching, and multi-step research.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Perspective API Alternative: Toxicity Detection MCP Server
This repository contains an MCP server for the stdio transport. The server gives AI agents one tool, analyze_toxicity. Use the tool to examine text before an agent publishes 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 scores come from the open-source Detoxify model. The model is not an LLM. Thus, the same text always gets the same score. English only.
The request and response format is the same as the format of the Google Perspective API. Google stops the Perspective API on December 31, 2026.
How the server operates
The server implementation is server.py in this repository. It uses only the Python standard library (Python 3.9 or later).
- The server reads JSON-RPC messages from stdin and writes the responses to stdout.
- The server answers
initialize,pingandtools/listitself. These messages do not need a token. - For
tools/call, the server sends the texts to the toxicity API on Apify, and returns the scores. - The toxicity API runs the Detoxify model. You pay for each call through your Apify account.
Requirements
- Python 3.9 or later, or Docker
- An Apify API token in the
APIFY_TOKENenvironment variable
To get a token, open the Apify Console. Then go to Settings > API & Integrations.
Installation
Python
- Clone the repository:
git clone https://github.com/koyourmoon/perspective-api-alternative-mcp.git
- Add the server to the configuration of your MCP client:
{
"mcpServers": { "perspective-api-alternative": { "command": "python", "args": ["/path/to/perspective-api-alternative-mcp/server.py"], "env": { "APIFY_TOKEN": " " } } } }
Docker
- Build the image:
docker build -t perspective-api-alternative-mcp .
- Add the server to the configuration of your MCP client:
{
"mcpServers": { "perspective-api-alternative": { "command": "docker", "args": ["run", "-i", "--rm", "-e", "APIFY_TOKEN", "perspective-api-alternative-mcp"], "env": { "APIFY_TOKEN": " " } } } }
Tool: analyze_toxicity
| Parameter | Type | Description |
|---|---|---|
texts | array of strings, required | 1 to 100 English texts to score |
attributes | array of strings | Attributes to return. The default is all six. |
threshold | number | TOXICITY score at which a text is flagged. The default is 0.5. |
Example result for one text:
{
"results": [ { "text": "You are an idiot.", "scores": { "TOXICITY": 0.98, "INSULT": 0.95, "PROFANITY": 0.62 }, "flagged": true, "billed_units": 1 } ] }
If a text looks non-English, the result has a warning field. The scores for that text are not reliable.
Environment variables
| Name | Required | Description |
|---|---|---|
APIFY_TOKEN | Yes, for tools/call | Your Apify API token |
PERSPECTIVE_ALT_URL | No | A different URL for the toxicity API |
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 call after an idle period of 60 seconds can take 10 to 30 seconds (cold start).
Remote connection (optional)
You can also connect your MCP client directly to the toxicity API. This connection does not use server.py.
| Item | Value |
|---|---|
| Transport | Streamable HTTP |
| URL | https://koyourmoon--perspective-api-alternative.apify.actor/mcp |
| Authentication | Authorization: Bearer |
Files
| File | Content |
|---|---|
server.py | The MCP server |
Dockerfile | The container image for the server |
glama.json | The maintainer data for Glama |
server.json | The entry for the official MCP Registry |
Links
- Apify Store page: https://apify.com/koyourmoon/perspective-api-alternative
- Batch Actor for large jobs: https://apify.com/koyourmoon/toxicity-detector
License
MIT. This project is not affiliated with Google or Jigsaw. "Perspective API" is a trademark of Google LLC.