A Model Context Protocol (MCP) server that provides tools for interacting with Perspective API.
- Text toxicity analysis
- Score suggestions
- Support for multiple attributes (TOXICITY, SEVERE_TOXICITY, IDENTITY_ATTACK, INSULT, PROFANITY, THREAT)
- Multi-language support
npm install
npm run build
- Get your Perspective API key
- Add the server to your MCP settings file
{
"mcpServers": {
"perspective": {
"command": "node",
"args": ["path/to/perspective-mcp-server/build/index.js"],
"env": {
"PERSPECTIVE_API_KEY": "your-api-key"
}
}
}
}
npm run watch
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
npm run inspect
The Inspector will provide a URL to access debugging tools in your browser.
MIT License