Skip to main content

Prompt Defend MCP Server - 16-Layer Guardrails for AI Agents

Project description

Prompt Defend MCP Server (Python)

A Model Context Protocol (MCP) server that exposes Prompt Defend's 16-layer guardrail system as tools for AI agents.

Installation

pip install promptdefend-mcp

Or install from source:

cd framework/promptdefend-mcp/python
pip install -e .

Quick Start

As a Standalone Server

promptdefend-mcp --api-key your-api-key

With Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "promptdefend": {
      "command": "promptdefend-mcp",
      "args": ["--api-key", "your-api-key"]
    }
  }
}

Available Tools

scan_prompt

Scan a prompt for security threats using 16-layer guardrails.

Input:

{
  "prompt": "string - The prompt to scan"
}

Output:

{
  "safe": true,
  "reason": "No threats detected",
  "details": {...}
}

check_blocklist

Check if a prompt contains known attack keywords.

Input:

{
  "prompt": "string - The prompt to check"
}

check_allowlist

Check if a prompt matches safe/educational phrases.

Input:

{
  "prompt": "string - The prompt to check"
}

Environment Variables

Variable Description
PROMPTDEFEND_API_KEY Your Prompt Defend API key
PROMPTDEFEND_BASE_URL Custom API endpoint (optional)

License

Proprietary - See LICENSE for details.


© 2026 Prompt Defend. All Rights Reserved.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

promptdefend_mcp-1.0.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

promptdefend_mcp-1.0.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file promptdefend_mcp-1.0.0.tar.gz.

File metadata

  • Download URL: promptdefend_mcp-1.0.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for promptdefend_mcp-1.0.0.tar.gz
Algorithm Hash digest
SHA256 040c90851963d6319ad6da2cae73657a4495fca40169800a21a77f364b055bb9
MD5 5c183581c5cac2d3a9249caac9ab9561
BLAKE2b-256 c839fe3c40f64a458af0bbd070443564f45bff216f65cebd70c583e64a7eb820

See more details on using hashes here.

File details

Details for the file promptdefend_mcp-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for promptdefend_mcp-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1175dea1a64cde822104bfad77576c34db102290c9819d24ad1ad99e3a9bb777
MD5 44bc16c10ae4cbbb74e3f62cbf1453ca
BLAKE2b-256 2e5e23c87b882ff9890dad194ee40ca353e61ed041a016566fcab151546cbe06

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page