Skip to main content
Cursor is an AI-first code editor built for pair programming with AI. Connect the Orq MCP server to access the Orq.ai workspace from Cursor’s chat interface, and route Cursor’s chat model calls through the AI Gateway.

Orq MCP

Access the Orq.ai workspace directly from Cursor. Manage experiments, query traces, and configure agents using natural language.

MCP Gateway

Reach the tools, resources and prompts of the MCP servers behind a gateway.

AI Gateway

Route Cursor’s chat model calls through the AI Gateway for unified tracing and cost tracking.

Orq MCP

With the Orq MCP integration, access the Orq.ai workspace directly from Cursor’s chat interface and coding environment.

Prerequisites

Installation

Add MCP Server

  1. Open Cursor Settings by clicking Cursor → Settings in the top-left menu
  2. Click Tools & MCP in the sidebar
  3. Click New MCP Server to open an empty mcp.json editor
  4. Paste the following configuration:
  1. Replace YOUR_ORQ_API_KEY with your actual API key from Workspace Settings → API Keys
  2. Save the configuration
The Orq MCP server should automatically connect and show a green indicator. All Orq.ai tools will be available immediately.

Verification

Open Cursor’s chat panel and ask:
If the integration is working, a list of AI models from the Orq.ai workspace will appear.
Cursor IDE showing the Orq MCP server connected with a green indicator in the Tools and MCP settings panel

Successfully connected Orq MCP in Cursor

Available Commands

Use natural language to ask Cursor to perform these operations:
  • Create an agent with custom instructions and tools
  • Get agent configuration for [agent-key]
  • Update agent [agent-key] with new instructions or model
  • Configure agent with evaluators and guardrails
  • Invoke agent [agent-key] with input [message]
  • Retrieve agent response [response-id]
  • Create a deployment called [deployment-key]
  • Get deployment configuration for [deployment-key]
  • Create a skill called [skill-key]
  • List all skills in my workspace
  • Get skill [skill-key]
  • Update skill [skill-key]
  • Delete skill [skill-key]
  • Get analytics overview for my workspace
  • Show me workspace metrics for the last 7 days
  • Query analytics filtered by deployment ID
  • Create a dataset called "customer-queries"
  • List all datapoints in dataset [dataset-key]
  • Add datapoints to dataset [dataset-key]
  • Update datapoint [datapoint-id]
  • Delete specific datapoints in dataset [dataset-key]
  • Delete dataset [dataset-key]
  • Create an experiment from dataset [dataset-key]
  • List all experiment runs
  • Export experiment run [run-id] as CSV
  • Run experiment and auto-evaluate results
  • Get evaluator configuration for [evaluator-key]
  • Create an LLM-as-a-Judge evaluator for tone
  • Create a Python evaluator to check response length
  • Add evaluator to experiment [experiment-key]
  • Update evaluator [evaluator-key] with a new prompt
  • Update Python evaluator [evaluator-key] with revised code
  • List traces from the last 24 hours
  • Show me traces with errors
  • Get span details for trace [trace-id]
  • Find the slowest traces from today
  • Show all traces for thread [thread-id]
  • List all available chat models
  • List all available embedding models
  • Invoke model [model-id] with prompt [message]
  • Search for datasets named "customer"
  • Find experiments in project [project-id]
  • List directories in project [project-id]
  • Search the Orq.ai docs for [topic]
  • Delete agent [agent-key]
  • Delete experiment [experiment-key]
  • Delete evaluator [evaluator-key]
  • Delete prompt [prompt-key]
  • Delete knowledge base [knowledge-base-key]
Use delete_dataset to delete a dataset along with all its datapoints.
See the MCP Quickstart for the full tool reference and examples.

Troubleshooting

  1. Check Cursor’s Orq MCP status in Settings
  2. Verify the API key is correct
  3. Restart Cursor
  4. Check the Developer Console (Help > Toggle Developer Tools)
  1. Confirm the API key is valid
  2. Ensure the API key has the necessary permissions
  3. Try regenerating the API key
  1. Verify the Orq MCP server is running in Settings
  2. Check network connectivity
  3. Review any error messages in the Developer Console

Skills

Orq Skills add pre-built agentic workflows to Cursor for the full Build, Evaluate, Optimize lifecycle.

Installation

Set an API key and connect the Orq MCP server first. Skills are then triggered by describing what is needed.

Orq Skills

The full catalogue of skills and slash commands.
Slash commands (/orq:orq-quickstart, /orq:traces, and others) are only available in Claude Code.

MCP Gateway

The MCP Gateway serves the tools, resources and prompts of the MCP Servers linked to it. Add it in Cursor Settings → Tools & MCP → New MCP Server.
Enable the server in Tools & MCP, then complete the browser sign-in Cursor starts on the first 401.

AI Gateway

Route Cursor’s chat model calls through the Orq.ai AI Gateway by overriding the OpenAI base URL in Cursor Settings. Requests appear in Traces automatically.
Cursor Pro is required. Since 2026, Cursor Free plans can only use Auto and block custom models, even with a custom API key or base URL override. Upgrade to Cursor Pro or higher to route through the AI Gateway.
Select the custom model in Cursor’s chat panel. Tab completion uses Cursor’s built-in models.

Prerequisites

Setup

1

Open Cursor Settings and navigate to Models

Open Cursor Settings (+, / Ctrl+,) and select the Models tab.
2

Set the base URL

Expand API Keys. Under OpenAI API Key, turn on Override OpenAI Base URL and enter the gateway base URL for the workspace.
3

Enter the API key

Paste the Orq.ai API key in the OpenAI API Key section and turn on Use OpenAI API Key.
4

Add a model

In Add or search model, enter a provider-prefixed model ID such as anthropic/claude-sonnet-5-5. Choose Add Custom Model, then click Add.Add each AI Gateway model manually, then select the custom model in the chat model picker.

Reasoning effort

Add a custom model with a supported reasoning suffix to set its effort. For Claude Sonnet 5.5, add one of these IDs in Cursor Settings → Models and select it in the chat model picker.
Enable the base ID, anthropic/claude-sonnet-5-5, in Supported Models. The AI Gateway applies the suffix when Cursor sends the request. Use the base ID in Cursor for the default reasoning behavior.

Automatic prompt caching

A workspace admin can turn on Automatic prompt caching in the AI Gateway. Cursor uses the existing gateway connection. Continue the same chat to reuse an eligible prompt prefix. Open the follow-up request in Traces and check the model span for cached input tokens.

Verification

Send a message with the custom model selected in the chat model picker. Confirm the response appears in Cursor and the request appears in Traces.

Troubleshooting

Confirm Use OpenAI API Key is on and the API key belongs to the workspace served by the configured base URL.
Check that the provider prefix and base model ID match an enabled model in Supported Models.
Confirm Override OpenAI Base URL is on and the custom model is selected in the chat model picker.
Add the model manually in Cursor Settings → Models and confirm its toggle is on.