Perspective MCP Server
A Model Context Protocol (MCP) server that provides tools for interacting with Perspective API
Overview
Perspective MCP Server is a Model Context Protocol (MCP) server that provides tools for interacting with the Perspective API, enabling text toxicity analysis and score suggestions.
To use the Perspective MCP Server, you need to obtain a Perspective API key and add the server to your MCP settings file. You can do this by following the provided JSON configuration.
- Text toxicity analysis - Score suggestions - Support for multiple attributes (TOXICITY, SEVERE_TOXICITY, IDENTITY_ATTACK, INSULT, PROFANITY, THREAT) - Multi-language support
- Analyzing user-generated content for toxicity in online platforms.
- Implementing moderation tools in chat applications.
- Enhancing user experience by filtering harmful content.
Add to your AI client
Use these steps to connect Perspective MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"perspective-mcp-server-mtane0412": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-perspective-mcp-server-mtane0412"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"perspective-mcp-server-mtane0412": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-perspective-mcp-server-mtane0412"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"perspective-mcp-server-mtane0412": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-perspective-mcp-server-mtane0412"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"perspective-mcp-server-mtane0412": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-perspective-mcp-server-mtane0412"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"perspective-mcp-server-mtane0412": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-perspective-mcp-server-mtane0412"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"perspective-mcp-server-mtane0412": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-perspective-mcp-server-mtane0412"
]
}
}
}FAQ
What is the Perspective API?
The Perspective API is a tool that uses machine learning to identify the perceived impact a comment might have on a conversation.
How do I get my Perspective API key?
You can obtain your API key by signing up on the Perspective API website.
Is there support for multiple languages?
Yes, the Perspective MCP Server supports multiple languages for toxicity analysis.