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.
Option 1: Extension (Recommended)
The extension provides the smoothest experience with inline warnings and automatic scanning.
Installation
- Open Cursor and press
Ctrl+Shift+X(Windows/Linux) orCmd+Shift+X(Mac) - Search for “AIVory”
- Click Install
- 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.