Python MCP server for local interactions with the QuantConnect API.
Tools provided by this Server | Short Description |
---|---|
read_account |
Read the organization account status. |
To connect local MCP clients (like Claude Desktop) to the QC MCP Server, follow these steps:
- Install Docker Desktop and Claude Desktop.
- Clone this repository to your local machine.
- In a terminal, navigate to the project and then run
docker build -t mcp-server .
. - 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"
}
}
}
}
- Open Claude Desktop.
To log to the mcp-server-quantconnect.log
file, import sys
and then print("Hello world", file=sys.stderr)
.
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"}
).