prompt-protection for Cursor
io.github.mughalhere/prompt-protection
Scan prompts, tool definitions and model output for injection, and guard agent tool calls.
client:Cursor
transport:stdio
runtime:npm
Install prompt-protection in Cursor
~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json
{
"mcpServers": {
"prompt-protection": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"prompt-protection"
]
}
}
}
Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs