Skip to content

QuantConnect/mcp-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mcp-server

Python MCP server for local interactions with the QuantConnect API.

Available Tools (1)

Tools provided by this Server Short Description
read_account Read the organization account status.

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"}).

About

Python MCP server for local interactions with the QuantConnect API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •