SafePrompt
Detect prompt injection, jailbreaks, and code injection in untrusted text before it reaches an LLM.
Sollte ich dies verwenden
Qualität und Sicherheit
Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.
Kontextkosten
Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.
Installieren
Installation mit einem Klick
Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"@safeprompt.dev/mcp"
]
}
}
}Ausführbare Pakete
0.1.1stdioRemote-Endpunkte
https://mcp.safeprompt.dev/mcpstreamable-httpWas es kann
Tool-Inventar
Tools (2)
🟢validate_prompt(prompt, sensitivity)
Check a single piece of untrusted text (a user message, a retrieved RAG document, tool output, etc.) for prompt injection, jailbreaks, instruction-override, data-exfiltration, and code injection BEFORE passing it to an LLM. Returns a safe/unsafe verdict with confidence, threat category, and reasoning.
Eingabe-Schema
{
"type": "object",
"properties": {
"prompt": {
"type": "string",
"minLength": 1,
"maxLength": 50000,
"description": "The untrusted text to validate."
},
"sensitivity": {
"type": "string",
"enum": [
"strict",
"no_judgement",
"balanced",
"lenient"
],
"description": "Optional. Omit to use the account default. 'no_judgement' blocks only clear attacks, for apps whose users tell the AI exactly what to write. 'balanced' is an older name for it. 'strict' and 'lenient' are accepted for existing callers."
}
},
"required": [
"prompt"
],
"additionalProperties": false
}🟢validate_prompts(prompts, sensitivity)
Validate many pieces of untrusted text in one call (processed in parallel server-side). Use for bulk pre-screening, indexing pipelines, or checking a batch of retrieved documents. Returns one verdict per input, in order.
Eingabe-Schema
{
"type": "object",
"properties": {
"prompts": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 50000
},
"minItems": 1,
"maxItems": 100,
"description": "Array of untrusted texts to validate (max 100)."
},
"sensitivity": {
"type": "string",
"enum": [
"strict",
"no_judgement",
"balanced",
"lenient"
],
"description": "Optional. Omit to use the account default. 'no_judgement' blocks only clear attacks, for apps whose users tell the AI exactly what to write. 'balanced' is an older name for it. 'strict' and 'lenient' are accepted for existing callers."
}
},
"required": [
"prompts"
],
"additionalProperties": false
}Community
Nachweis