mcp for Cursor
dev.safeprompt/mcp
Detect prompt injection, jailbreaks, and code injection in untrusted text before it reaches an LLM.
client:Cursor
transport:stdio
runtime:npm
Install mcp in Cursor
~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json
{
"mcpServers": {
"mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@safeprompt.dev/mcp"
],
"env": {
"SAFEPROMPT_API_KEY": "<SAFEPROMPT_API_KEY>",
"SAFEPROMPT_PROVIDER": "<SAFEPROMPT_PROVIDER>",
"SAFEPROMPT_USER_IP": "<SAFEPROMPT_USER_IP>"
}
}
}
}
Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs