Skip to content
Cursor

injectshield for Cursor

io.github.bch1212/injectshield

Prompt-injection firewall for AI agents — scan untrusted text before LLM calls.

client:Cursor transport:stdio runtime:npm

Install injectshield in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "injectshield": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@injectshield/mcp"
      ],
      "env": {
        "INJECTSHIELD_API_KEY": "<INJECTSHIELD_API_KEY>",
        "INJECTSHIELD_API_BASE": "<INJECTSHIELD_API_BASE>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

injectshield in other clients