@mtane0412/perspective-mcp-server

0.1.2 • Public • Published

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

Installation

npm install

Build

npm run build

Usage

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

Development

Start Development Server

npm run watch

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

Readme

Keywords

none

Package Sidebar

Install

npm i @mtane0412/perspective-mcp-server

Weekly Downloads

8

Version

0.1.2

License

MIT

Unpacked Size

11.5 kB

Total Files

4

Last publish

Collaborators

  • mtane0412