Perspective MCP Server

by mtane0412

222 downloads
Not rated
GitHub

About

A Model Context Protocol (MCP) server that provides tools for interacting with Perspective API

Details

Author
mtane0412
Downloads
222
Categories
Other

- Text toxicity analysis using Perspective API
- Score suggestions for moderation decisions
- Support for multiple attributes (TOXICITY, SEVERE_TOXICITY, IDENTITY_ATTACK, INSULT, PROFANITY, THREAT)
- Multi-language support

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Perspective MCP Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Add the server to your MCP settings file with the command npx -y @mtane0412/perspective-mcp-server and set the PERSPECTIVE_API_KEY environment variable to your Perspective API key. The server communicates over stdio.

analyze_text

テキストを分析し、有害性などのスコアを返します

suggest_score

テキストに対する新しいスコアを提案します

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "perspective mcp server": {
            "perspective": {
                "command": "npx",
                "args": [
                    "-y",
                    "@mtane0412/perspective-mcp-server"
                ],
                "env": {
                    "PERSPECTIVE_API_KEY": "your-api-key"
                }
            }
        }
    }
}

McpServers

{
    "perspective": {
        "command": "npx",
        "args": [
            "-y",
            "@mtane0412/perspective-mcp-server"
        ],
        "env": {
            "PERSPECTIVE_API_KEY": "your-api-key"
        }
    }
}

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

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.