Atlas / MCP servers / quantconnect / QuantConnect

QuantConnectSAFE

mcp/quantconnect/quantconnect

Official Python MCP server for local interactions with the QuantConnect API

Verdict
SAFE
Grade
B
Trust score
89 /100
Exposed tools
64 34r · 24w · 6d
Transport
—
License
Apache-2.0
Stars
77
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

See https://www.quantconnect.com/docs/v2/ai-assistance/mcp-server/key-concepts

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.

This is the OFFICIAL implementation of QuantConnect's MCP, maintained by the QuantConnect team. We recommend using the official version to ensure security of your code and API tokens. Our implementation is tested and dockerized for easy cross-platform deployment.

Getting Started

To connect local MCP clients (like Claude Desktop) to the QC MCP Server, follow these steps:

  1. Install and open Docker Desktop.
  2. Install and open Claude Desktop.
  3. In Claude Desktop, click File > Settings > Developer > Edit Config.
  4. Edit the claude_desktop_config.json file to include the following quantconnect configuration:
{
"mcpServers": {
"quantconnect": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e", "QUANTCONNECT_USER_ID",
"-e", "QUANTCONNECT_API_TOKEN",
"-e", "AGENT_NAME",
"--platform", "",
"quantconnect/mcp-server"
],
"env": {
"QUANTCONNECT_USER_ID": "",
"QUANTCONNECT_API_TOKEN": "",
"AGENT_NAME": "MCP Server"
}
}
}
}

To get your user Id and API token, see [Request API Token](https://www.quantconnect.com/docs/v2/cloud-platform/com

Read from source at commit fbbd823aad27OBSERVED · 2026-10-07
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code
claude mcp add mcp-server --env QUANTCONNECT_API_TOKEN=${QUANTCONNECT_API_TOKEN} -- uvx mcp-server
claude-desktop
{
  "mcpServers": {
    "mcp-server": {
      "command": "uvx",
      "args": [
        "mcp-server"
      ],
      "env": {
        "QUANTCONNECT_API_TOKEN": "${QUANTCONNECT_API_TOKEN}"
      }
    }
  }
}
03

Exposed tools (64)

34 read · 24 write · 6 destructive. Blast radius: 6 tools can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.

ToolRiskDescription
abort_optimizationreadAbort an optimization.
authorize_connectionreadAuthorize an external connection with a live brokerage or
broadcast_live_commandreadBroadcast a live command to all live algorithms in an
check_initialization_errorswriteRun a backtest for a few seconds to initialize the algorithm
check_syntaxreadCheck the syntax of a code.
complete_codereadShow the code completion for a specific text input.
create_backtestwriteCreate a new backtest request and get the backtest Id.
create_compilewriteAsynchronously create a compile job request for a project.
create_filewriteAdd a file to a given project.
create_live_algorithmwriteCreate a live algorithm.
create_live_commandwriteSend a command to a live trading algorithm.
create_optimizationwriteCreate an optimization with the specified parameters.
create_projectwriteCreate a new project in your default organization.
create_project_collaboratorwriteAdd a collaborator to a project.
delete_backtestdestructiveDelete a backtest from a project.
delete_filedestructiveDelete a file in a project.
delete_objectdestructiveDelete the Object Store file of a specific organization and
delete_optimizationdestructiveDelete an optimization.
delete_projectdestructiveDelete a project.
delete_project_collaboratordestructiveRemove a collaborator from a project.
enhance_error_messagereadShow additional context and suggestions for error messages.
estimate_optimization_timereadEstimate the execution time of an optimization with the
liquidate_live_algorithmwriteLiquidate and stop a live algorithm.
list_backtestsreadList all the backtests for the project.
list_live_algorithmsreadList all your past and current live trading deployments.
list_object_store_filesreadList the Object Store files under a specific directory in
list_optimizationsreadList all the optimizations for a project.
list_projectsreadList the details of all projects.
lock_project_with_collaboratorswriteLock a project so you can edit it.
patch_filewriteApply a patch (unified diff) to a file in a project.
read_accountreadRead the organization account status.
read_backtestreadRead the results of a backtest.
read_backtest_chartreadRead a chart from a backtest.
read_backtest_insightsreadRead out the insights of a backtest.
read_backtest_ordersreadRead out the orders of a backtest.
read_compilereadRead a compile packet job result.
read_filereadRead a file from a project, or all files in the project if
read_latest_mcp_server_versionreadReturns the latest version of the QC MCP Server released.
read_lean_versionsreadReturns a list of LEAN versions with basic information for
read_live_algorithmreadRead details of a live algorithm.
read_live_chartreadRead a chart from a live algorithm.
read_live_insightsreadRead out the insights of a live algorithm.
read_live_logsreadGet the logs of a live algorithm.
read_live_ordersreadRead out the orders of a live algorithm.
read_live_portfolioreadRead out the portfolio state of a live algorithm.
read_mcp_server_versionreadReturns the version of the QC MCP Server that
read_object_propertiesreadGet Object Store properties of a specific organization and
read_object_store_file_download_urlreadGet the URL for downloading files from the Object Store.
read_object_store_file_job_idwriteCreate a job to download files from the Object Store and
read_optimizationreadRead an optimization.
read_projectwriteList the details of a project or a set of recent projects.
read_project_collaboratorsreadList all collaborators on a project.
read_project_nodesreadRead the available and selected nodes of a project.
search_quantconnectreadSearch for content in QuantConnect.
stop_live_algorithmwriteStop a live algorithm.
update_backtestwriteUpdate the name or note of a backtest.
update_code_to_pep8writeUpdate Python code to follow PEP8 style.
update_file_contentswriteUpdate the contents of a file.
update_file_namewriteUpdate the name of a file.
update_optimizationwriteUpdate the name of an optimization.
update_projectwriteUpdate a project
update_project_collaboratorwriteUpdate collaborator information in a project.
update_project_nodeswriteUpdate the active state of the given nodes to true.
upload_objectwriteUpload files to the Object Store.
04

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codePASS
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfaceWARN
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (1 observation(s))
Network
declared (4 observation(s))
Shell
none-observed
Dependencies
pinned
Secrets in source
none-found

Findings (1)

MEDIUMFilesystem / path · mcp.destructive_tools · CWE-22, CWE-59
delete_backtest, delete_file, delete_object, delete_optimization, delete_project, delete_project_collaborator
Why it matters. 6 tool(s) can delete or overwrite
Fix. prefer a read-only mode or scoped tokens; the page states the blast radius

Gates applied: no_behavioural_pass.

Audited 2026-10-07 · audit v0.4.1 · source sha fbbd823aad27full audit observations/trust-audit/mcp-server/quantconnect__quantconnect.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-07fbbd823aad27SAFEB89first audit
06

Questions

What is the QuantConnect MCP server?

Official Python MCP server for local interactions with the QuantConnect API

What tools does QuantConnect expose?

64 in total: 34 read-only, 24 that write, and 6 that can delete or overwrite (delete_backtest, delete_file, delete_object, delete_optimization, delete_project). Every one is listed on this page with its risk.

Is QuantConnect safe to connect to an agent?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B. Separately from the audit: 6 of its tools can destroy data, so scope the token you give it to what you actually need.

What credentials does QuantConnect need?

It reads QUANTCONNECT_API_TOKEN from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How current is this page?

The grade is for one exact copy of the source (fbbd823aad27), read on 2026-10-07. The repository is watched and re-audited when it changes.

Advertisement