K
koyourmoon/perspective-api-alternative-mcp
MCP server (stdio, Python, no dependencies): toxicity scores (0-1) for text before an AI agent posts it. Google Perspective API compatible. No LLM.
无 SECURITY.md
在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网
安装与配置
远端端点(Claude Desktop / Cursor / Windsurf 共用 mcpServers)
{
"mcpServers": {
"koyourmoon-perspective-api-alternative-m": {
"url": "https://koyourmoon--perspective-api-alternative.apify.actor/mcp"
}
}
}把这段粘进 Claude Desktop / Cursor 的 mcpServers 配置即可。端点来自公开证据,我们没有替你安装或托管它。 官方 Registry 记录:这个端点列了【必填】请求头 Authorization(Bearer <your Apify API token>)。用它要带上你自己的凭据。
VS Code(.vscode/mcp.json —— 键名是 servers,远程要 type: http)
{
"servers": {
"koyourmoon-perspective-api-alternative-m": {
"type": "http",
"url": "https://koyourmoon--perspective-api-alternative.apify.actor/mcp"
}
}
}VS Code 的配置文件和另外三家不同:顶层键是 <code>servers</code>,远程端点还要写 <code>"type": "http"</code>。复制到 .vscode/mcp.json。
Claude Code(命令行)
claude mcp add --transport http koyourmoon-perspective-api-alternative-m https://koyourmoon--perspective-api-alternative.apify.actor/mcp
Claude Code 不收 JSON 文件,用这条命令直接加。
配置项的键名以你的客户端为准:客户端与 CLI
- ★ 数取值
- 0 ★ · koyourmoon/perspective-api-alternative-mcp · 取自 GitHub 搜索 API · (2026-11-13 20:00:50 核对)
- 来源明细
- 收录自 punkpeye/awesome-mcp-servers 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
- 收录与活跃
- 收录于 2026-10-23 · 最近见到 2026-11-14 · 共见到 26 次 · 被 23 个来源列出
- 评分构成
- 综合分 2,300 · 23 个来源 · mcp
常见问题(答案都来自我们的记录)
怎么安装?
我们【没有】从该仓库取到安装命令(我们的 install 覆盖率只有约 4%)。请看它的 README 或 releases 页。
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库
koyourmoon/perspective-api-alternative-mcp;我们收录于 2026-10-23;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。# Perspective API Alternative: Toxicity Detection MCP Server
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
This repository contains an MCP server for the stdio transport. The server gives AI agents one tool, analyzetoxicity. 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, SEVERETOXICITY, INSULT, PROFANITY, THREAT, IDENTITYATTACK
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, ping and tools/list itself. 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 APIFYTOKEN environment variable
To get a token, open the Apify Console. Then go to Settings > API & Integrations.
## Installation
### Python
1. Clone the repository:
bash
git clone https://github.com/koyourmoon/perspective-api-alternative-mcp.git
2. Add the server to the configuration of your MCP client:
json
"mcpServers": {
"perspective-api-alternative": {
"command": "python",
"args": ["/path/to/perspective-api-alternative-mcp/server.py"],
"env": { "APIFYTOKEN": " " }
### Docker
1. Build the image:
bash
docker build -t perspective-api-alternative-mcp .
2. Add the server to the configuration of your MCP client:
json
"mcpServers": {
"perspective-api-alternative": {
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "APIFYTOKEN", "perspective-api-alternative-mcp"],
"env": { "APIFYTOKEN": " " }
## Tool: analyzetoxicity
| 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:
json
"results": [
"text": "You are an idiot.",
"scores": { "TOXICITY": 0.98, "INSULT": 0.95, "PROFANITY": 0.62 },
"flagged": true,
"billedunits": 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 |
| APIFYTOKEN | Yes, for tools/call | Your Apify API token |
| PERSPECTIVEALTURL | 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.
The tool returns six scores from 0 to 1 and a flagged value for each text:
TOXICITY, SEVERETOXICITY, INSULT, PROFANITY, THREAT, IDENTITYATTACK
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, ping and tools/list itself. 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 APIFYTOKEN environment variable
To get a token, open the Apify Console. Then go to Settings > API & Integrations.
## Installation
### Python
1. Clone the repository:
bash
git clone https://github.com/koyourmoon/perspective-api-alternative-mcp.git
2. Add the server to the configuration of your MCP client:
json
"mcpServers": {
"perspective-api-alternative": {
"command": "python",
"args": ["/path/to/perspective-api-alternative-mcp/server.py"],
"env": { "APIFYTOKEN": " " }
### Docker
1. Build the image:
bash
docker build -t perspective-api-alternative-mcp .
2. Add the server to the configuration of your MCP client:
json
"mcpServers": {
"perspective-api-alternative": {
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "APIFYTOKEN", "perspective-api-alternative-mcp"],
"env": { "APIFYTOKEN": " " }
## Tool: analyzetoxicity
| 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:
json
"results": [
"text": "You are an idiot.",
"scores": { "TOXICITY": 0.98, "INSULT": 0.95, "PROFANITY": 0.62 },
"flagged": true,
"billedunits": 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 |
| APIFYTOKEN | Yes, for tools/call | Your Apify API token |
| PERSPECTIVEALTURL | 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.
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[](https://anclum.com/zh/s/koyourmoon-perspective-api-alternative-mcp/)
- 来源
- awesome · https://github.com/koyourmoon/perspective-api-alternative-mcp
- 按领域浏览
- MCP 服务
- 收录来源
- 23 个独立来源
- 收录于
- 今天
- 安全策略
- 我们没在该仓库根目录找到
SECURITY.md(这不代表不安全)
同类推荐
所属领域与标签
每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。