---
title: "Cursor"
description: "Cursor is an AI coding assistant that can connect various Large Language Models (LLM) to the QuantConnect MCP Server."
canonical: https://www.quantconnect.com/docs/v2/ai-assistance/mcp-server/cursor
markdown: https://www.quantconnect.com/docs/v2/ai-assistance/mcp-server/cursor.md
language: python
source: https://github.com/QuantConnect/Documentation/tree/master/09%20AI%20Assistance/08%20MCP%20Server/19%20Cursor
modified: 2026-11-22
index: https://www.quantconnect.com/llms.txt
---

# Cursor

[Documentation](https://www.quantconnect.com/docs/v2.md) > [AI Assistance](https://www.quantconnect.com/docs/v2/ai-assistance.md) > [MCP Server](https://www.quantconnect.com/docs/v2/ai-assistance/mcp-server.md) > Cursor

> Code examples are shown in Python. Append `?lang=csharp` to this URL for the C# version of this page.

## Introduction

Cursor is an AI coding assistant that can connect various Large Language Models (LLM) to the [QuantConnect MCP Server](https://www.quantconnect.com/docs/v2/ai-assistance/mcp-server/key-concepts.md). This page explains how to set up and use the server with the Agent in the Cursor IDE. To set up the Agent with the Cursor CLI, see [Using Agent in CLI](https://docs.cursor.com/en/cli/using) in the Cursor documentation.

## Getting Started

To connect the Agent in the Cursor IDE to the QC MCP Server, follow these steps:

1. Install and open [Cursor](https://cursor.com/downloads).
2. In the top navigation bar, click **View > Extensions**.
3. In the **Search Exensions in Marketplace** field, enter **QuantConnect**.
4. Click **Install**.
5. In the primary side bar, click the ![QuantConnect icon in Cursor](https://cdn.quantconnect.com/i/tu/cursor-qc-icon.png) **QuantConnect** icon.
6. In the Initialization Checklist panel, click **Login to QuantConnect**.
   ![Initialization checklist in Cursor, where you can log in to QuantConnect](https://cdn.quantconnect.com/i/tu/cursor-initialization-checklist.png)
7. In the Cursor window, click **Open**.
   ![Pop-up that enables you to open a QC link to login to your account](https://cdn.quantconnect.com/i/tu/cursor-login-to-quantconnect.png)
8. On the Code Extension Login page, click **Grant Access**.
9. In the Select Workspace panel, click **Pull Organization Workspace**.
   ![Select workspace](https://cdn.quantconnect.com/i/tu/select-workspace.png)
10. In the Pull QuantConnect Organization Workspace window, click the cloud workspace ([organization](https://www.quantconnect.com/docs/v2/cloud-platform/organizations.md)) that you want to pull.
   ![Pull cloud organization](https://cdn.quantconnect.com/i/tu/pull-cloud-workspaces-1.png)
11. In the Pull QuantConnect Organization Workspace window, create a directory to serve as the organization workspace and then click **Select**.
   ![Pull cloud workspace](https://cdn.quantconnect.com/i/tu/pull-cloud-workspaces-2.png)
   It takes a few minutes to create a new organization workspace directory and populate it with the [the initial file structure](https://www.quantconnect.com/docs/v2/local-platform/development-environment/organization-workspaces.md#07-Directory-Structure). After the organization workspace is populated with the initial file structure, it pulls your cloud project files.
12. Press **Ctrl+Shift+P** to open the Command Palette, enter **Open Customize**, and then press **Enter**.
13. On the Customize page, click **MCPs > New MCP Server > User**.
14. In the `~ / .cursor / mcp.json` file that opens, add the following configuration:
   ```
   {
     "mcpServers": {
       "qc-mcp": {
         "url": "https://www.quantconnect.com/api/v2/mcp",
         "transport": {
           "type": "Streamable HTTP"
         }
       }
     }
   }
   ```
15. In Cursor, [create a new project](https://www.quantconnect.com/docs/v2/local-platform/projects/getting-started.md#03-Create-Projects) or [open an existing one](https://www.quantconnect.com/docs/v2/local-platform/projects/getting-started.md#04-Open-Projects).
16. Press **Ctrl+Alt+b** to chat with the agent.
17. If the agent asks you to authenticate your QuantConnect account, click **Authenticate**.
   ![Pop-up that asks you to authenticate your QC account](https://cdn.quantconnect.com/i/tu/cursor-authenticate-qc-mcp.png)

To backtest and live trade with the local [Deployment Target](https://www.quantconnect.com/docs/v2/local-platform/key-concepts/deployment-targets.md), install Docker Desktop. The installation process depends on if your machine uses [Windows](https://www.quantconnect.com/docs/v2/local-platform/installation/install-on-windows.md#03-Install-Docker), [macOS](https://www.quantconnect.com/docs/v2/local-platform/installation/install-on-macos.md#03-Install-Docker), or [Linux](https://www.quantconnect.com/docs/v2/local-platform/installation/install-on-linux.md#03-Install-Docker).

## Models

Cursor supports several LLMs that you can use in the **Chat** panel, including GPT, Claude, and Gemini. To change the model, click the model name at the bottom of the **Chat** panel and then click the name of the model to use.

![Arrow clicking the model name in the New Chat panel of Cursor, showing the list of available models.](https://cdn.quantconnect.com/i/tu/cursor-ide-agent-models.png)

To view all the available models, see [Models](https://docs.cursor.com/en/models) in the Cursor documentation.

## Quotas

There are no quotas on the QuantConnect API, but Cursor and the LLMs have some. To view the quotas, see [Pricing](https://docs.cursor.com/en/account/pricing) in the Cursor documentation and see the quotas of the model you use.

## Troubleshooting

The following sections explain some issues you may encounter and how to resolve them.

### Service Outages

The MCP server relies on the QuantConnect API and the client application. To check the status of the QuantConnect API, see our [Status](https://status.quantconnect.com/) page. To check the status of Cursor, see the [Cursor Status](https://status.cursor.com/) page. To check the status of the LLM, see its status page. For example, Claude users can see the [Anthropic Status](https://status.anthropic.com/) page.

### Other Issues

For more information about troubleshooting the MCP server in Cursor, see [Agent](https://docs.cursor.com/en/agent/overview) in the Cursor documentation.

## Examples

The following examples demonstrate the MCP server with Cursor.

### Example 1: Hello World

To test the server and client are working and connected, enter the following prompt into the Cursor chat:

> > Read the open project.

The agent should call the `read_open_project` tool.

### Example 2: Strategy Development and Deployment

This example uses the Cursor Agent to brainstorm new strategy ideas, edit files, run backtests, and deploy to paper trading.

[Video](https://player.vimeo.com/video/1114057847)
