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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
040c90851963d6319ad6da2cae73657a4495fca40169800a21a77f364b055bb9
|
|
| MD5 |
5c183581c5cac2d3a9249caac9ab9561
|
|
| BLAKE2b-256 |
c839fe3c40f64a458af0bbd070443564f45bff216f65cebd70c583e64a7eb820
|
File details
Details for the file promptdefend_mcp-1.0.0-py3-none-any.whl.
File metadata
- Download URL: promptdefend_mcp-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1175dea1a64cde822104bfad77576c34db102290c9819d24ad1ad99e3a9bb777
|
|
| MD5 |
44bc16c10ae4cbbb74e3f62cbf1453ca
|
|
| BLAKE2b-256 |
2e5e23c87b882ff9890dad194ee40ca353e61ed041a016566fcab151546cbe06
|