Skip to content
MCP server

Promptrejectormcp

Security gateway for AI agents: detects prompt injections, jailbreaks, and common…

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
1.0.1
Listing updated
5 days ago

About Promptrejectormcp

Promptrejectormcp is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Security gateway for AI agents: detects prompt injections, jailbreaks, and common vulnerabilities.

Install

Run in a terminal

claude mcp add promptrejectormcp --env YOUR_API_KEY='<YOUR_API_KEY>' -- npx -y prompt-rejector

Add to claude_desktop_config.json

{
  "mcpServers": {
    "promptrejectormcp": {
      "command": "npx",
      "args": [
        "-y",
        "prompt-rejector"
      ],
      "env": {
        "YOUR_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "promptrejectormcp": {
      "command": "npx",
      "args": [
        "-y",
        "prompt-rejector"
      ],
      "env": {
        "YOUR_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "promptrejectormcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "prompt-rejector"
      ],
      "env": {
        "YOUR_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "promptrejectormcp": {
      "command": "npx",
      "args": [
        "-y",
        "prompt-rejector"
      ],
      "env": {
        "YOUR_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "promptrejectormcp": {
      "command": "npx",
      "args": [
        "-y",
        "prompt-rejector"
      ],
      "env": {
        "YOUR_API_KEY": "<YOUR_API_KEY>"
      }
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Configuration

  • YOUR_API_KEYYour API key for the serviceRequired

Pricing

Open source

Promptrejectormcp FAQ

Is Promptrejectormcp free?

Yes. Promptrejectormcp is open source, so you can use and self-host it for free.

How do I add Promptrejectormcp to Claude Code?

Run this command in your terminal: claude mcp add promptrejectormcp --env YOUR_API_KEY='<YOUR_API_KEY>' -- npx -y prompt-rejector

Where this comes from

  • Description: from the official MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers