Skip to main content
Glama

@mhdd_24/ai-safety-mcp

MCP server for Evaluate unsafe/problematic model outputs.

Same architecture as @mhdd_24/sublime-mcp.

Full documentation: docs/WIKI.md


How it works (30 seconds)

You (chat) → MCP client → ai-safety-mcp → AI Safety APIs / CLIs / local tools

Related MCP server: agentguard

Prerequisites

Requirement

Notes

Node.js 18+

ESM TypeScript MCP server

Credentials / CLIs

See environment variables below


Install

Option A — npm (after publish)

npm install -g @mhdd_24/ai-safety-mcp

Option B — npx

npx @mhdd_24/ai-safety-mcp

Option C — clone and build

git clone https://github.com/Mhdd-24/AI-Safety-MCP.git
cd AI-Safety-MCP
npm install
npm run build
node dist/index.js

Configure Cursor

Edit ~/.cursor/mcp.json:

{
  "mcpServers": {
    "aisafety": {
      "command": "npx",
      "args": ["-y", "@mhdd_24/ai-safety-mcp"],
      "env": {
        "_": "optional"
      }
    }
  }
}

Local development:

{
  "command": "node",
  "args": ["/absolute/path/to/AI-Safety-MCP/dist/index.js"]
}

Environment variables

Variable

Description

—

No required env


Tools

Tool

Description

aisafety_status

Show Evaluate unsafe/problematic model outputs configuration / health.

aisafety_scan

Scan text for policy/safety issues.

aisafety_suite

Generate a test suite outline.


License

ISC

Available Tools

3 tools
aisafety_scanC

Scan text for policy/safety issues.

Inputs: text (required).

aisafety_statusC

Show Evaluate unsafe/problematic model outputs configuration / health.

Inputs: no named parameters.

aisafety_suiteC

Generate a test suite outline.

Inputs: policy (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool addresses a clearly distinct activity: checking health/configuration, scanning text for issues, and generating a test suite outline. There is no meaningful overlap between these operations.

    Naming Consistency4/5

    All tool names share the consistent 'aisafety_' prefix and are concise, but the naming style mixes nouns (status, suite) with an action-like word (scan). 'aisafety_suite' especially omits an explicit verb such as 'generate' or 'create'.

    Tool Count5/5

    Three tools is a well-scoped count for a focused AI safety utility server. Each tool earns its place and covers a distinct core capability without unnecessary bloat.

    Completeness4/5

    The toolset covers core safety workflow needs: health check, scanning, and test suite generation. Minor gaps exist, such as the absence of a dedicated tool for detailed policy management or report retrieval, but the core surface is not incomplete.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Enables testing AI safety classifier robustness against query decomposition, obfuscation, and multi-agent attacks. Provides tools for full evaluation pipelines, query previews, and status checks.
      4
      6
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables scanning of AI agent code for security vulnerabilities such as prompt injection, tool abuse, and data exfiltration, directly from MCP-compatible clients like Claude Code.
      53 PyPI
      3
      LGPL 3.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables scanning LLM prompts and responses for prompt injection, jailbreaks, PII leakage, secret leakage, and other malicious content using deterministic rules, returning verdicts and safe redacted text.
      1
      MIT