home / mcp / quantconnect mcp server
Official Python MCP server for local interactions with the QuantConnect API
Configuration
View docs{
"mcpServers": {
"quantconnect-mcp-server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"QUANTCONNECT_USER_ID",
"-e",
"QUANTCONNECT_API_TOKEN",
"-e",
"AGENT_NAME",
"--platform",
"<your_platform>",
"quantconnect/mcp-server"
],
"env": {
"AGENT_NAME": "MCP Server",
"QUANTCONNECT_USER_ID": "<your_user_id>",
"QUANTCONNECT_API_TOKEN": "<your_api_token>"
}
}
}
}The QuantConnect MCP Server is a bridge that lets AI agents interact with your cloud QuantConnect environment. With MCP, an AI can manage projects, write strategies, run backtests, and deploy live strategies through your API tokens in a secure, dockerized workflow.
You connect an MCP client to the server by running the MCP inside a container and pointing your client to it. The official implementation is designed to be multi‑platform and works with Docker. Use a unique agent name for each client to keep requests traceable.
Prerequisites you need before starting: Docker Desktop installed on your machine. If you plan to run on an ARM chip, ensure you use the correct platform flag when pulling or running the image.
1. Install and open Docker Desktop.
2. Install and open Claude Desktop.
3. In Claude Desktop, go to File > Settings > Developer > Edit Config and add the QuantConnect MCP server configuration.
{
"mcpServers": {
"quantconnect": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e", "QUANTCONNECT_USER_ID",
"-e", "QUANTCONNECT_API_TOKEN",
"-e", "AGENT_NAME",
"--platform", "<your_platform>",
"quantconnect/mcp-server"
],
"env": {
"QUANTCONNECT_USER_ID": "<your_user_id>",
"QUANTCONNECT_API_TOKEN": "<your_api_token>",
"AGENT_NAME": "MCP Server"
}
}
}
}Claude Desktop will automatically pull the MCP server image from the container registry and connect once you restart the client.
The MCP server image can be updated by pulling the latest version from the container registry. Use the command shown here to fetch the latest image. If you are on ARM, include the platform flag when pulling.
docker pull quantconnect/mcp-server
```
If you have an ARM chip, add the platform option when pulling.Read the organization account status.
Create a new project in your default organization.
List the details of a project or a set of recent projects.
List the details of all projects.
Update a project's name or description.
Delete a project.
Add a collaborator to a project.
List all collaborators on a project.
Update collaborator information in a project.
Remove a collaborator from a project.
Lock a project so you can edit it.
Read the available and selected nodes of a project.
Update the active state of the given nodes to true.
Asynchronously create a compile job request for a project.
Read a compile packet job result.
Add a file to a given project.
Read a file from a project, or all files in the project if no file name is provided.
Update the name of a file.
Update the contents of a file.
Apply a patch (unified diff) to a file in a project.
Delete a file in a project.
Create a new backtest request and get the backtest Id.
Read the results of a backtest.
List all the backtests for the project.
Read a chart from a backtest.
Read out the orders of a backtest.
Read out the insights of a backtest.
Update the name or note of a backtest.
Delete a backtest from a project.
Estimate the execution time of an optimization with the specified parameters.
Create an optimization with the specified parameters.
Read an optimization.
List all the optimizations for a project.
Update the name of an optimization.
Abort an optimization.
Delete an optimization.
Authorize an external connection with a live brokerage or data provider.
Create a live algorithm.
Read details of a live algorithm.
List all your past and current live trading deployments.
Read a chart from a live algorithm.
Get the logs of a live algorithm.
Read out the portfolio state of a live algorithm.
Read out the orders of a live algorithm.
Read out the insights of a live algorithm.
Stop a live algorithm.
Liquidate and stop a live algorithm.
Send a command to a live trading algorithm.
Broadcast a live command to all live algorithms in an organization.
Upload files to the Object Store.
Get Object Store properties of a specific organization and key.
Create a job to download files from the Object Store and then read the job Id.
Get the URL for downloading files from the Object Store.
List the Object Store files under a specific directory in an organization.
Delete the Object Store file of a specific organization and key.
Returns a list of LEAN versions with basic information for each version.
Run a backtest for a few seconds to initialize the algorithm and get inialization errors if any.
Show the code completion for a specific text input.
Show additional context and suggestions for error messages.
Update Python code to follow PEP8 style.
Check the syntax of a code.
Search for content in QuantConnect.
Returns the version of the QC MCP Server that's running.
Returns the latest version of the QC MCP Server released.