mcpField
S
safeprompt

safeprompt

Local
safeprompt.devSecurity2Updated 1d ago

About safeprompt

Detect prompt injection, jailbreaks, and code injection in untrusted text before it reaches an LLM

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"dev-safeprompt": {
"command": "npx",
"args": [
"-y",
"@safeprompt.dev/mcp"
],
"env": {
"SAFEPROMPT_API_KEY": "<SAFEPROMPT_API_KEY>",
"SAFEPROMPT_PROVIDER": "<SAFEPROMPT_PROVIDER>",
"SAFEPROMPT_USER_IP": "<SAFEPROMPT_USER_IP>"
}
}
}
}
Run commandnpx -y @safeprompt.dev/mcp
Environment variables to set
SAFEPROMPT_API_KEYSecretSafePrompt API key from https://dashboard.safeprompt.dev
SAFEPROMPT_PROVIDERAPI base URL (default https://api.safeprompt.dev)
SAFEPROMPT_USER_IPValue sent as X-User-IP for threat-intel tracking (default 203.0.113.1)

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@safeprompt.dev/mcp0.1.0

Tools

2

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
promptstringYesThe untrusted text to validate.
sensitivityenumNoBlock threshold. 'lenient' (0.95) blocks only high-confidence attacks, 'balanced' (default) is the recommended setting, 'strict' (0.75) blocks aggressively. Omit for balanced.lenient | balanced | strict

Details

The maintainer has not added details yet. Check the README in the repository.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.