mcp-server

QuantConnect/mcp-server

3.3

If you are the rightful owner of mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The MCP server facilitates local interactions with the QuantConnect API, enabling seamless integration and management of QuantConnect resources through a model context protocol.

Tools
  1. read_account

    Read the organization account status.

mcp-server

Python MCP server for local interactions with the QuantConnect API.

Available Tools (19)

Tools provided by this ServerShort Description
read_accountRead the organization account status.
create_projectCreate a new project in your default organization.
read_projectList the details of a project.
list_projectsList the details of all projects.
update_projectUpdate a project's name or description.
delete_projectDelete a project.
create_project_collaboratorAdd a collaborator to a project.
read_project_collaboratorsList all collaborators on a project.
update_project_collaboratorUpdate collaborator information in a project.
delete_project_collaboratorRemove a collaborator from a project.
read_project_nodesRead the available and selected nodes of a project.
update_project_nodesUpdate the active state of the given nodes to true.
create_compileAsynchronously create a compile job request for a project.
read_compileRead a compile packet job result.
create_fileAdd a file to a given project.
read_fileRead a file from a project, or all files in the project if no file name is provided.
update_file_nameUpdate the name of a file.
update_file_contentsUpdate the contents of a file.
delete_fileDelete a file in a project.

Configuration Examples

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

  1. Install Docker Desktop and Claude Desktop.
  2. Clone this repository to your local machine.
  3. In a terminal, navigate to the project and then run docker build -t mcp-server ..
  4. Add the following JSON to your configuration file:
{
  "mcpServers": {
    "quantconnect": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e", "QUANTCONNECT_USER_ID",
        "-e", "QUANTCONNECT_API_TOKEN",
        "--name",
        "quantconnect-mcp-server",
        "mcp-server"
      ],
      "env": {
        "QUANTCONNECT_USER_ID": "<your_user_id>",
        "QUANTCONNECT_API_TOKEN": "<your_api_token"
      }
    }
  }
}
  1. Open Claude Desktop.

Debugging

Logs

To log to the mcp-server-quantconnect.log file, import sys and then print("Hello world", file=sys.stderr).

Inspector

To start the inspector, run npx @modelcontextprotocol/inspector uv run src/main.py. To pass a model to the inspector tool, use JSON (for example, {"name":"My Project","language":"Py"}).