mcpField
P
Perspective MCP Server

Perspective MCP Server

Local
github.com/mtane0412Security0Updated 90w ago

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

  1. 01Analyze text toxicity
  2. 02Suggest scores
  3. 03Support six toxicity attributes
  4. 04Handle multiple languages

Use cases

  1. 01Analyze text for toxicity
  2. 02Check text for threats or insults
  3. 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.

mcp.json · Universal config
{
"mcpServers": {
"perspective": {
"command": "npx",
"args": [
"-y",
"@mtane0412/perspective-mcp-server"
],
"env": {
"PERSPECTIVE_API_KEY": "<PERSPECTIVE_API_KEY>"
}
}
}
}
Run commandnpx -y @mtane0412/perspective-mcp-server
Environment variables to set
PERSPECTIVE_API_KEYSecret

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@mtane0412/perspective-mcp-server

Tools

2

Saved tool list · updated 3w ago

ParameterTypeRequiredDescription
textstringYesText to analyze
attributesarrayNoAttributes to analyze (e.g., TOXICITY, SEVERE_TOXICITY, IDENTITY_ATTACK, INSULT, PROFANITY, THREAT)
languagesarrayNoLanguage of the text (e.g., ja, en). Automatically detected if not specified.

Details

From the project README

Perspective 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

  1. Get your Perspective API key
  2. 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

Markdown supported

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.