About Perspective MCP Server
Perspective MCP Server connects MCP clients to Perspective API for text toxicity analysis. It supports multiple toxicity attributes and languages, with score suggestions also listed as a capability.
Key features
- 01Analyze text toxicity
- 02Suggest scores
- 03Support six toxicity attributes
- 04Handle multiple languages
Use cases
- 01Analyze text for toxicity
- 02Check text for threats or insults
- 03Review identity attacks or severe toxicity
MCP support
Provides MCP tools for interacting with Perspective API, including text analysis and score suggestions. The README does not specify the tool names or schemas.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
npx -y @mtane0412/perspective-mcp-serverPERSPECTIVE_API_KEYSecretLocal servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.
Tools
2Saved tool list · updated 3w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| text | string | Yes | Text to analyze |
| attributes | array | No | Attributes to analyze (e.g., TOXICITY, SEVERE_TOXICITY, IDENTITY_ATTACK, INSULT, PROFANITY, THREAT) |
| languages | array | No | Language of the text (e.g., ja, en). Automatically detected if not specified. |
Details
From the project READMEPerspective MCP Server
A Model Context Protocol (MCP) server that provides tools for interacting with Perspective API.
Features
- Text toxicity analysis
- Score suggestions
- Support for multiple attributes (TOXICITY, SEVERE_TOXICITY, IDENTITY_ATTACK, INSULT, PROFANITY, THREAT)
- Multi-language support
Usage
- Get your Perspective API key
- Add the server to your MCP settings file
{
"mcpServers": {
"perspective": {
"command": "npx",
"args": [
"-y",
"@mtane0412/perspective-mcp-server"
],
"env": {
"PERSPECTIVE_API_KEY": "your-api-key"
}
}
}
}
Debugging
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.
License
MIT License
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.