Overview
Cursor is an AI-first code editor built for pair programming with AI. With the Orq MCP integration, you can access your Orq.ai workspace directly from Cursor’s chat interface and coding environment.Prerequisites
- Cursor IDE installed
- Active Orq.ai account
- Orq.ai API key
Installation
Add MCP Server
- Open Cursor Settings (⌘ + , on Mac, Ctrl + , on Windows/Linux)
- Navigate to Features → Model Context Protocol
- Add the Orq MCP server configuration:
- Replace
YOUR_ORQ_API_KEYwith your actual API key - Save the configuration
Verify Installation
Open Cursor’s chat panel and type:Available Commands
Use natural language to ask Cursor to perform these operations:Analytics
Analytics
get analytics overview for my workspaceshow me workspace metrics for the last 7 daysquery analytics filtered by deployment ID
Datasets
Datasets
create a dataset called "customer-queries"list all datapoints in dataset [dataset-id]add datapoints to dataset [dataset-id]update datapoint [datapoint-id]delete dataset [dataset-id]
Experiments
Experiments
create an experiment from dataset [dataset-id]list all experiment runsexport experiment run [run-id] as CSVrun experiment and auto-evaluate results
Evaluators
Evaluators
create an LLM-as-a-Judge evaluator for tonecreate a Python evaluator to check response lengthadd evaluator to experiment [experiment-id]
Traces
Traces
list traces from the last 24 hoursshow me traces with errorsget span details for trace [trace-id]find the slowest traces from today
Models & Search
Models & Search
list all available AI modelssearch for datasets named "customer"find experiments in project [project-id]list registry keys for filtering traces
Usage Examples
Chat Panel Commands
Use natural language in Cursor’s chat panel:- Generate 20 synthetic API request examples
- Use
create_datasetto create a new dataset named “API Tests” - Use
create_datapointsto add all examples to the dataset - Confirm creation with the dataset ID
- Calculate the time range for the last 24 hours
- Use
list_traceswith error status filter - Display trace IDs, error messages, and timestamps
- Provide a summary of error types and frequency
- Search for the “user-queries” dataset using
search_entities - Use
create_experimentwith two configurations (one for GPT-5.2, one for Claude Sonnet 4.6) - Run the experiment against all datapoints in the dataset
- Display the experiment ID and status
Inline Code Integration
Cursor can use the MCP context while you’re coding:- Select code in your editor
- Open chat (⌘ + L)
- Ask about traces or analytics related to your code
- Extract the deployment key from the selected code
- Use
query_analyticswith the deployment filter - Set time range to the last 7 days
- Analyze performance metrics (requests, errors, latency, tokens)
- Provide insights and recommendations based on the data
Dataset Creation from Code
- Parse the JSON array from your code
- Use
create_datasetto create a new dataset with an auto-generated name - Use
create_datapointsto add each entry as a datapoint - Confirm the dataset ID and number of datapoints added
Experiment Analysis
- Search for the “customer-feedback” dataset using
search_entities - Use
create_experimentwith two prompt variants (empathy-focused and brevity-focused) and auto-run enabled - Execute both variants against all datapoints automatically via the auto-run option
- Use
get_experiment_runto retrieve evaluation metrics - Compare the two variants and provide a summary of which performed better
Performance Investigation
- Use
list_traceswith today’s date filter - Sort traces by duration (descending)
- Retrieve the top 5 slowest traces
- Use
list_spansto fetch span information for each trace - Display latency breakdowns, bottlenecks, and performance insights
Synthetic Data Generation
- Generate 50 synthetic customer support questions and expected responses
- Use
create_datasetto create a dataset named “Support Training Data” - Use
create_datapointsto add all 50 examples to the dataset - Confirm creation with the dataset ID and sample of generated questions
Troubleshooting
MCP Not Responding
MCP Not Responding
- Check Cursor’s MCP status in Settings
- Verify your API key is correct
- Restart Cursor
- Check the Developer Console (Help > Toggle Developer Tools)
Authentication Errors
Authentication Errors
- Confirm your API key is valid
- Ensure the API key has the necessary permissions
- Try regenerating the API key
Tools Not Available
Tools Not Available
- Verify the MCP server is running in Settings
- Check network connectivity
- Review any error messages in the Developer Console