Skip to content
VS Code

Canli Paper Trading for VS Code

io.github.arhancanli/canli-paper-trading-mcp

Agent trading on your Alpaca paper account behind pre-trade checks and confirmation tokens.

client:VS Code transport:stdio runtime:npm

Install Canli Paper Trading in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "alpaca-paper-key-id",
      "description": "ALPACA_PAPER_KEY_ID",
      "password": true
    },
    {
      "type": "promptString",
      "id": "alpaca-paper-secret-key",
      "description": "ALPACA_PAPER_SECRET_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "canli-home",
      "description": "CANLI_HOME",
      "password": true
    }
  ],
  "servers": {
    "canli-paper-trading-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "canli-paper-trading-mcp"
      ],
      "env": {
        "ALPACA_PAPER_KEY_ID": "${input:alpaca-paper-key-id}",
        "ALPACA_PAPER_SECRET_KEY": "${input:alpaca-paper-secret-key}",
        "CANLI_HOME": "${input:canli-home}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Canli Paper Trading in other clients