Orcho MCP Server for Cursor
Risk assessment for AI coding prompts - Automatically analyze your coding requests for security and safety risks before execution.
π Quick Install
Click this link to automatically install in Cursor:
How to use:
Copy the link above
Paste it into your browser's address bar and press Enter
Cursor will open and automatically configure the MCP server
Replace the test API key with your real key (see API Configuration)
Restart Cursor to activate
Replace the test API key with your real key (see API Configuration)
Restart Cursor to activate the MCP server
What is Orcho??
Orcho analyzes your coding prompts in real-time to identify potential security risks, dangerous operations, and safety concerns before code is generated or executed.
Features
π Real-time Risk Assessment - Analyze prompts using Orcho's risk analysis API
π Context-Aware - Automatically includes file context for accurate blast radius and complexity analysis
π‘οΈ Security First - Identifies high-risk prompts before execution
π Seamless Integration - Works natively with Cursor's Model Context Protocol
Installation
Option 1: One-Click Install (Recommended)
Copy and paste this link into your browser:
This automatically:
β Configures the MCP server in Cursor
β Sets up auto-installation via npx
β οΈ Next step: Replace the test API key with your real key (see below)
β οΈ Then: Restart Cursor
Option 2: Manual Installation
Install the package:
npm install -g @orcho_risk/mcp-serverConfigure Cursor:
Create or edit
~/.cursor/mcp.json(Windows:C:\Users\<YourUsername>\.cursor\mcp.json):{ "mcpServers": { "orcho": { "command": "npx", "args": ["-y", "@orcho_risk/mcp-server"], "env": { "ORCHO_API_KEY": "your-api-key-here" } } } }Restart Cursor completely (quit and reopen)
API Configuration
Get Your API Key
Sign up at app.orcho.ai
Navigate to API Settings (Dashboard β API Keys)
Create or copy your API key
Update your file:
Location:
~/.cursor/mcp.json(orC:\Users\<YourUsername>\.cursor\mcp.jsonon Windows)Replace
test_key_orcho_12345with your actual API key
Test API Key
For initial testing, you can use:
Note: The test key has limited functionality and rate limits. Get your own API key from app.orcho.ai for production use.
Security Best Practices
β Store API keys only in
~/.cursor/mcp.json(not in your project)β Never commit API keys to version control
β Rotate keys immediately if accidentally exposed
Usage
Manual Assessment
In Cursor chat, type:
Automatic Assessment (Recommended)
Enable automatic risk assessment for all prompts by adding a Cursor rule to your project.
Option 1: Project Rules (Modern - Recommended)
Copy the rule file to your project:
Or manually copy from:
Option 2: Legacy .cursorrules File
Copy the example rules file:
Note: Project Rules (Option 1) are the modern approach and support more features.
How It Works
Context-Aware Assessment
Orcho automatically gathers context when available:
Current File: Detects the file open in your editor
Other Files: Analyzes which files will be modified by the prompt
Dependency Graph: Optional project dependency information
Blast Radius: Calculates impact scope of changes
Example
Tool Parameters
task(required): The prompt to assesscurrent_file(recommended): Path to currently open fileother_files(recommended): Array of files that will be modifieddependency_graph(optional): Project dependency graphweights(optional): Custom risk calculation weightsaiignore_file(optional): Path to .aiignore file
Troubleshooting
MCP Server Not Loading
Check
Mac/Linux:
~/.cursor/mcp.jsonWindows:
C:\Users\<YourUsername>\.cursor\mcp.json
Verify Node.js is installed:
node --version # Requires v18+Check Cursor Developer Tools:
Help β Toggle Developer Tools
Look for MCP-related errors in Console
API Errors
Invalid API Key: Verify the key is correct in
mcp.jsonRate Limits: Check your account quota at app.orcho.ai
No API Key: The server will use the test key by default (limited functionality)
Still Having Issues?
Check that Cursor is fully restarted (quit and reopen)
Verify your API key is valid at app.orcho.ai
Ensure you have internet connectivity
License
MIT
Support
For issues and questions:
GitHub Issues: [Your Repo URL]
Orcho Support: [Support URL]