perspective-api-alternative-mcp
This is a toxicity detection server based on MCP (stdio transport), for AI agents to perform content moderation before publishing text. It provides the analyze_toxicity tool, which returns six scores from 0 to 1 for TOXICITY, SEVERE_TOXICITY, INSULT, PROFANITY, THREAT, and IDENTITY_ATTACK, along with a flagged marker; the request and response formats are compatible with the Google Perspective API. Scores come from the open-source Detoxify model (not an LLM), so the same text yields stable results, and only English is supported. The server is implemented with the Python standard library (requires Python 3.9+), and can also run with Docker; tools/call calls the toxicity API on Apify, requiring APIFY_TOKEN to be configured and pay-per-call billing.