QuantConnect MCP Server

QuantConnect MCP Server

The QuantConnect MCP Server is a bridge for AIs (such as Claude and OpenAI o3 Pro) to interact with our cloud platform. When equipped with our MCP, the AI can perform tasks on your behalf through our API such as updating projects, writing strategies, backtesting, and deploying strategies to production live-trading.

362

64 Tools

Packaged by
Add to Docker Desktop

Version 4.43 or later needs to be installed to add the server automatically

About

QuantConnect MCP Server MCP Server

The QuantConnect MCP Server is a bridge for AIs (such as Claude and OpenAI o3 Pro) to interact with our cloud platform. When equipped with our MCP, the AI can perform tasks on your behalf through our API such as updating projects, writing strategies, backtesting, and deploying strategies to production live-trading.

What is an MCP Server?

Characteristics

AttributeDetails
Docker Imagemcp/quantconnect
AuthorQuantConnect
Repositoryhttps://github.com/QuantConnect/mcp-server
Dockerfilehttps://github.com/QuantConnect/mcp-server/blob/master/Dockerfile
Docker Image built byDocker Inc.
Docker Scout Health ScoreDocker Scout Health Score
Verify SignatureCOSIGN_REPOSITORY=mcp/signatures cosign verify mcp/quantconnect --key https://raw.githubusercontent.com/docker/keyring/refs/heads/main/public/mcp/latest.pub
LicenceApache License 2.0

Available Tools (64)

Tools provided by this ServerShort Description
abort_optimizationAbort optimization
authorize_connectionAuthorize external connection
broadcast_live_commandBroadcast live command
check_initialization_errorsCheck initialization errors
check_syntaxCheck syntax
complete_codeComplete code
create_backtestCreate backtest
create_compileCreate compile
create_fileCreate file
create_live_algorithmCreate live algorithm
create_live_commandCreate live command
create_optimizationCreate optimization
create_projectCreate project
create_project_collaboratorCreate project collaborator
delete_backtestDelete backtest
delete_fileDelete file
delete_objectDelete Object Store file
delete_optimizationDelete optimization
delete_projectDelete project
delete_project_collaboratorDelete project collaborator
enhance_error_messageEnhance error message
estimate_optimization_timeEstimate optimization time
liquidate_live_algorithmLiquidate live algorithm
list_backtestsList backtests
list_live_algorithmsList live algorithms
list_object_store_filesList Object Store files
list_optimizationsList optimizations
list_projectsList projects
lock_project_with_collaboratorsLock project with collaborators
patch_filePatch file
read_accountRead account
read_backtestRead backtest
read_backtest_chartRead backtest chart
read_backtest_insightsRead backtest insights
read_backtest_ordersRead backtest orders
read_compileRead compile
read_fileRead file
read_latest_mcp_server_versionRead latest QC MCP Server version
read_lean_versionsRead LEAN versions
read_live_algorithmRead live algorithm
read_live_chartRead live chart
read_live_insightsRead live insights
read_live_logsRead live logs
read_live_ordersRead live orders
read_live_portfolioRead live portfolio
read_mcp_server_versionRead QC MCP Server version
read_object_propertiesRead Object Store file properties
read_object_store_file_download_urlRead Object Store file download URL
read_object_store_file_job_idRead Object Store file job Id
read_optimizationRead optimization
read_projectRead project
read_project_collaboratorsRead project collaborators
read_project_nodesRead project nodes
search_quantconnectSearch QuantConnect
stop_live_algorithmStop live algorithm
update_backtestUpdate backtest
update_code_to_pep8Update code to PEP8
update_file_contentsUpdate file contents
update_file_nameUpdate file name
update_optimizationUpdate optimization
update_projectUpdate project
update_project_collaboratorUpdate project collaborator
update_project_nodesUpdate project nodes
upload_objectUpload Object Store file

Tools Details

Tool: abort_optimization

Abort an optimization.

ParametersTypeDescription
modelstring

Tool: authorize_connection

Authorize an external connection with a live brokerage or data provider.

    This tool automatically opens your browser for you to complete
    the authentication flow. For the flow to work, you must be 
    logged into your QuantConnect account on the browser that opens.
ParametersTypeDescription
modelstring

Tool: broadcast_live_command

Broadcast a live command to all live algorithms in an organization.

ParametersTypeDescription
modelstring

Tool: check_initialization_errors

Run a backtest for a few seconds to initialize the algorithm and get inialization errors if any.

ParametersTypeDescription
modelstring

This tool is read-only. It does not modify its environment.


Tool: check_syntax

Check the syntax of a code.

ParametersTypeDescription
modelstring

This tool is read-only. It does not modify its environment.


Tool: complete_code

Show the code completion for a specific text input.

ParametersTypeDescription
modelstring

This tool is read-only. It does not modify its environment.


Tool: create_backtest

Create a new backtest request and get the backtest Id.

ParametersTypeDescription
modelstring

Tool: create_compile

Asynchronously create a compile job request for a project.

ParametersTypeDescription
modelstring

Tool: create_file

Add a file to a given project.

ParametersTypeDescription
modelstring

Tool: create_live_algorithm

Create a live algorithm.

ParametersTypeDescription
modelstring

Tool: create_live_command

Send a command to a live trading algorithm.

ParametersTypeDescription
modelstring

Tool: create_optimization

Create an optimization with the specified parameters.

ParametersTypeDescription
modelstring

Tool: create_project

Create a new project in your default organization.

ParametersTypeDescription
modelstring

Tool: create_project_collaborator

Add a collaborator to a project.

ParametersTypeDescription
modelstring

Tool: delete_backtest

Delete a backtest from a project.

ParametersTypeDescription
modelstring

Tool: delete_file

Delete a file in a project.

ParametersTypeDescription
modelstring

Tool: delete_object

Delete the Object Store file of a specific organization and key.

ParametersTypeDescription
modelstring

Tool: delete_optimization

Delete an optimization.

ParametersTypeDescription
modelstring

Tool: delete_project

Delete a project.

ParametersTypeDescription
modelstring

Tool: delete_project_collaborator

Remove a collaborator from a project.

ParametersTypeDescription
modelstring

Tool: enhance_error_message

Show additional context and suggestions for error messages.

ParametersTypeDescription
modelstring

This tool is read-only. It does not modify its environment.


Tool: estimate_optimization_time

Estimate the execution time of an optimization with the specified parameters.

ParametersTypeDescription
modelstring

This tool is read-only. It does not modify its environment.


Tool: liquidate_live_algorithm

Liquidate and stop a live algorithm.

ParametersTypeDescription
modelstring

Tool: list_backtests

List all the backtests for the project.

ParametersTypeDescription
modelstring

This tool is read-only. It does not modify its environment.


Tool: list_live_algorithms

List all your past and current live trading deployments.

ParametersTypeDescription
modelstring

Tool: list_object_store_files

List the Object Store files under a specific directory in an organization.

ParametersTypeDescription
modelstring

This tool is read-only. It does not modify its environment.


Tool: list_optimizations

List all the optimizations for a project.

ParametersTypeDescription
modelstring

This tool is read-only. It does not modify its environment.


Tool: list_projects

List the details of all projects.

Tool: lock_project_with_collaborators

Lock a project so you can edit it.

    This is necessary when the project has collaborators or when an 
    LLM is editing files on your behalf via our MCP Server.
ParametersTypeDescription
modelstring

Tool: patch_file

Apply a patch (unified diff) to a file in a project.

ParametersTypeDescription
modelstring

Tool: read_account

Read the organization account status.

Tool: read_backtest

Read the results of a backtest.

ParametersTypeDescription
modelstring

This tool is read-only. It does not modify its environment.


Tool: read_backtest_chart

Read a chart from a backtest.

ParametersTypeDescription
modelstring

This tool is read-only. It does not modify its environment.


Tool: read_backtest_insights

Read out the insights of a backtest.

ParametersTypeDescription
modelstring

This tool is read-only. It does not modify its environment.


Tool: read_backtest_orders

Read out the orders of a backtest.

ParametersTypeDescription
modelstring

This tool is read-only. It does not modify its environment.


Tool: read_compile

Read a compile packet job result.

ParametersTypeDescription
modelstring

This tool is read-only. It does not modify its environment.


Tool: read_file

Read a file from a project, or all files in the project if no file name is provided.

ParametersTypeDescription
modelstring

This tool is read-only. It does not modify its environment.


Tool: read_latest_mcp_server_version

Returns the latest version of the QC MCP Server released.

Tool: read_lean_versions

Returns a list of LEAN versions with basic information for each version.

Tool: read_live_algorithm

Read details of a live algorithm.

ParametersTypeDescription
modelstring

Tool: read_live_chart

Read a chart from a live algorithm.

ParametersTypeDescription
modelstring

Tool: read_live_insights

Read out the insights of a live algorithm.

    The snapshot updates about every 10 minutes.
ParametersTypeDescription
modelstring

Tool: read_live_logs

Get the logs of a live algorithm.

    The snapshot updates about every 5 minutes.
ParametersTypeDescription
modelstring

Tool: read_live_orders

Read out the orders of a live algorithm.

    The snapshot updates about every 10 minutes.
ParametersTypeDescription
modelstring

Tool: read_live_portfolio

Read out the portfolio state of a live algorithm.

    The snapshot updates about every 10 minutes.
ParametersTypeDescription
modelstring

Tool: read_mcp_server_version

Returns the version of the QC MCP Server that's running.

Tool: read_object_properties

Get Object Store properties of a specific organization and key.

    It doesn't work if the key is a directory in the Object Store.
ParametersTypeDescription
modelstring

This tool is read-only. It does not modify its environment.


Tool: read_object_store_file_download_url

Get the URL for downloading files from the Object Store.

ParametersTypeDescription
modelstring

This tool is read-only. It does not modify its environment.


Tool: read_object_store_file_job_id

Create a job to download files from the Object Store and then read the job Id.

ParametersTypeDescription
modelstring

Tool: read_optimization

Read an optimization.

ParametersTypeDescription
modelstring

This tool is read-only. It does not modify its environment.


Tool: read_project

List the details of a project or a set of recent projects.

ParametersTypeDescription
modelstring

This tool is read-only. It does not modify its environment.


Tool: read_project_collaborators

List all collaborators on a project.

ParametersTypeDescription
modelstring

This tool is read-only. It does not modify its environment.


Tool: read_project_nodes

Read the available and selected nodes of a project.

ParametersTypeDescription
modelstring

This tool is read-only. It does not modify its environment.


Tool: search_quantconnect

Search for content in QuantConnect.

ParametersTypeDescription
modelstring

This tool is read-only. It does not modify its environment.


Tool: stop_live_algorithm

Stop a live algorithm.

ParametersTypeDescription
modelstring

Tool: update_backtest

Update the name or note of a backtest.

ParametersTypeDescription
modelstring

Tool: update_code_to_pep8

Update Python code to follow PEP8 style.

ParametersTypeDescription
modelstring

This tool is read-only. It does not modify its environment.


Tool: update_file_contents

Update the contents of a file.

ParametersTypeDescription
modelstring

Tool: update_file_name

Update the name of a file.

ParametersTypeDescription
modelstring

Tool: update_optimization

Update the name of an optimization.

ParametersTypeDescription
modelstring

Tool: update_project

Update a project's name or description.

ParametersTypeDescription
modelstring

Tool: update_project_collaborator

Update collaborator information in a project.

ParametersTypeDescription
modelstring

Tool: update_project_nodes

Update the active state of the given nodes to true.

    If you don't provide any nodes, all the nodes become inactive 
    and autoSelectNode is true.
ParametersTypeDescription
modelstring

Tool: upload_object

Upload files to the Object Store.

ParametersTypeDescription
modelstring

Use this MCP Server

{
  "mcpServers": {
    "quantconnect": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "QUANTCONNECT_USER_ID",
        "-e",
        "QUANTCONNECT_API_TOKEN",
        "-e",
        "AGENT_NAME",
        "mcp/quantconnect"
      ],
      "env": {
        "QUANTCONNECT_USER_ID": "12345678",
        "QUANTCONNECT_API_TOKEN": "61b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8f90",
        "AGENT_NAME": "MCP Server"
      }
    }
  }
}

Why is it safer to run MCP Servers with Docker?

Manual installation

You can install the MCP server using:

Installation for

Related servers