---
title: "Copilot"
description: "Copilot 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/copilot
markdown: https://www.quantconnect.com/docs/v2/ai-assistance/mcp-server/copilot.md
language: python
source: https://github.com/QuantConnect/Documentation/tree/master/09%20AI%20Assistance/08%20MCP%20Server/18%20Copilot
modified: 2026-11-23
index: https://www.quantconnect.com/llms.txt
---

# Copilot

[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) > Copilot

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

## Introduction

Copilot 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 [Copilot Chat](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot-chat) in the [Local Platform](https://www.quantconnect.com/docs/v2/local-platform.md).

## Getting Started

To connect Copilot in Local Platform to the QC MCP Server, follow these steps:

1. In Local Platform, install the [GitHub Copilot Chat](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot-chat) extension.
2. Press **Ctrl+Shift+P** to open the Command Palette, enter **MCP: Open User Configuration**, and then press **Enter**.
3. Edit the mcp.json file that opens to include the following server configuration:
   ```
   {
     "servers": {
       "qc-mcp": {
         "url": "https://www.quantconnect.com/api/v2/mcp",
         "type": "http"
       }
     }
   }
   ```
4. Press **Ctrl+S** to save the mcp.json file.
5. Click **Allow**.
   ![Pop-up to authorize the remote QC MCP Server](https://cdn.quantconnect.com/i/tu/copilot-authenticate-qc-mcp.png)
6. Open the authorization page in the browser that is logged into your QuantConnect account.
   ![Pop-up to open the authorization page for the remote QC MCP Server](https://cdn.quantconnect.com/i/tu/copilot-open-authorization-page.png)
7. In the Authorize MCP Server form, select the organization you want to connect to and then click **Authorize**.
   ![QuantConnect form to Authorize MCP Server connection](https://cdn.quantconnect.com/i/tu/authorize-mcp-server.png)
8. [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).
9. In the top navigation bar, click **View > Chat**.
10. At the bottom of the **Chat** panel that opens, click **Ask > Agent** to switch to Agent mode.
   ![Visualization of the steps to switch from ask mode to agent mode in local platform](https://cdn.quantconnect.com/i/tu/copilot-set-agent.png)

## Models

Copilot 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 Chat panel of VS Code, showing the list of available models.](https://cdn.quantconnect.com/i/tu/copilot-set-model.png)

To view all the available models for each Copilot plan, see [Models](https://docs.github.com/en/copilot/get-started/plans#models) in the GitHub documentation.

## Quotas

There are no quotas on the QuantConnect API, but Copilot and the LLMs have some. To view the quotas, see [Plans for GitHub Copilot](https://docs.github.com/en/copilot/get-started/plans) in the GitHub 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 Copilot, see the [Microsoft Status](https://status.cloud.microsoft/m365/referrer=serviceStatusRedirect) 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 Local Platform, see [Troubleshoot and debug MCP servers](https://code.visualstudio.com/docs/copilot/chat/mcp-servers#_troubleshoot-and-debug-mcp-servers) in the VS Code documentation.

## Examples

The following examples demonstrate the MCP server with Copilot.

### Example 1: Hello World

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

> > Read the open project.

Copilot should call the `read_open_project` tool.

### Example 2: Strategy Development and Deployment

This example uses Copilot Chat in Local Platform to brainstorm new strategy ideas, edit files, run backtests, and deploy to paper trading.

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