Guard

Cursor Integration

AIVory Guard integrates seamlessly with Cursor through both an extension and MCP server, giving you real-time compliance scanning in your AI-powered editor.

  • Two integration options - Extension for visual feedback, MCP for AI chat integration
  • Real-time scanning - Catch compliance issues as you code
  • Cursor AI integration - Teach Cursor’s AI to automatically use AIVory
  • Free tier available - Start scanning without an API key

Choose Your Integration

Extension
Real-time inline warnings, automatic scanning, visual indicators in the editor
MCP Integration
Integration with Cursor’s AI chat, programmatic access, terminal scanning
Note You can use both integrations simultaneously for the best experience - the extension for visual feedback and MCP for AI-assisted scanning.

The extension provides the smoothest experience with inline warnings and automatic scanning.

Installation

  1. Open Cursor and press Ctrl+Shift+X (Windows/Linux) or Cmd+Shift+X (Mac)
  2. Search for “AIVory”
  3. Click Install
  4. Configure your API token in Settings > Extensions > AIVory
Note Get your API key from app.aivory.net/tokens

For complete extension documentation including Composer, Tab, and Chat integration, see the Cursor Extension documentation.

Configure .cursorrules for AI Assistance

Create .cursorrules in your project root to instruct Cursor’s AI to automatically use AIVory:

# AIVory Compliance Rules

When writing or modifying code:
1. ALWAYS scan code with AIVory Guard before completing
2. Fix all critical and high-severity violations
3. Re-scan to verify fixes

Compliance Standards:
- OWASP Top 10
- GDPR
- HIPAA (if applicable)
- PCI-DSS (if applicable)
- SOC 2

When AIVory reports violations:
- Explain the security issue
- Provide secure alternative
- Document why the change improves security

This configuration teaches Cursor’s AI to proactively check code for compliance issues.


Option 2: MCP Integration

For Cursor’s AI chat and programmatic access, configure the MCP server.

Create .cursor/mcp.json in your project root:

{
  "mcpServers": {
    "aivory": {
      "command": "npx",
      "args": ["--yes", "@aivorynet/guard"],
      "env": {
        "AIVORY_API_KEY": "your_api_key_here"
      }
    }
  }
}
Free Tier Configuration (No API Key)

For the free tier without an API key:

{
  "mcpServers": {
    "aivory": {
      "command": "npx",
      "args": ["--yes", "@aivorynet/guard"]
    }
  }
}
Warning Restart Cursor after modifying the MCP configuration for changes to take effect.

Next Steps