Skip to content
Cursor

import guardian for Cursor

io.github.baneado98/import-guardian

Catch AI-hallucinated (slopsquatted) npm imports in generated code before npm install.

client:Cursor transport:stdio runtime:npm

Install import guardian in Cursor

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

{
  "mcpServers": {
    "import-guardian": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "import-guardian-mcp"
      ]
    }
  }
}

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

import guardian in other clients