MCP-Bastion for Cursor
io.github.vaquarkhan/mcp-bastion
Security middleware for MCP. Blocks prompt injection, PII leakage, and resource exhaustion.
client:Cursor
transport:stdio
runtime:pypi
Install MCP-Bastion in Cursor
~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json
{
"mcpServers": {
"mcp-bastion": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-bastion-python"
]
}
}
}
Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs